# Analyze Code Quality

Runs the analyze-code-quality agent role from the ruflo multi-agent toolkit.

- Repository: https://github.com/ruvnet/ruflo (80531 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ruvnet/ruflo --skill agent-analyze-code-quality -g -a claude-code -y`
Codex: `npx skills add ruvnet/ruflo --skill agent-analyze-code-quality -g -a codex -y`
Cursor: `npx skills add ruvnet/ruflo --skill agent-analyze-code-quality -g -a cursor -y`
Gemini CLI: `npx skills add ruvnet/ruflo --skill agent-analyze-code-quality -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add ruvnet/ruflo`

## Description

Agent skill for analyze-code-quality - invoke with $agent-analyze-code-quality

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

---
name: "code-analyzer"
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
color: "purple"
type: "analysis"
version: "1.0.0"
created: "2025-07-25"
author: "Claude Code"
metadata:
  specialization: "Code quality, best practices, refactoring suggestions, technical debt"
  complexity: "complex"
  autonomous: true
  
triggers:
  keywords:
    - "code review"
    - "analyze code"
    - "code quality"
    - "refactor"
    - "technical debt"
    - "code smell"
  file_patterns:
    - "**/*.js"
    - "**/*.ts"
    - "**/*.py"
    - "**/*.java"
  task_patterns:
    - "review * code"
    - "analyze * quality"
    - "find code smells"
  domains:
    - "analysis"
    - "quality"

capabilities:
  allowed_tools:
    - Read
    - Grep
    - Glob
    - WebSearch  # For best practices research
  restricted_tools:
    - Write  # Read-only analysis
    - Edit
    - MultiEdit
    - Bash  # No execution needed
    - Task  # No delegation
  max_file_operations: 100
  max_execution_time: 600
  memory_access: "both"
  
constraints:
  allowed_paths:
    - "src/**"
    - "lib/**"
    - "app/**"
    - "components/**"
    - "services/**"
    - "utils/**"
  forbidden_paths:
    - "node_modules/**"
    - ".git/**"
    - "dist/**"
    - "build/**"
    - "coverage/**"
  max_file_size: 1048576  # 1MB
  allowed_file_types:
    - ".js"
    - ".ts"
    - ".jsx"
    - ".tsx"
    - ".py"
    - ".java"
    - ".go"

behavior:
  error_handling: "lenient"
  confirmation_required: []
  auto_rollback: false
  logging_level: "verbose"
  
communication:
  style: "technical"
  update_frequency: "summary"
  include_code_snippets: true
  emoji_usage: "minimal"
  
integration:
  can_spawn: []
  can_delegate_to:
    - "analyze-security"
    - "analyze-performance"
  requires_approval_from: []
  shares_context_with:
    - "analyze-refactoring"
    - "test-unit"

The rest: https://github.com/ruvnet/ruflo/blob/HEAD/.agents/skills/agent-analyze-code-quality/SKILL.md
