agent-analyze-code-quality

A read-only code review skill that examines JavaScript, TypeScript, Python, and Java files for quality issues and possible refactoring.

In plain words
What is it for?
Use it to analyze source code, review implementation quality, and suggest improvements.
Why use it?
It helps find code smells, maintainability problems, and technical debt without changing the files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ruvnet/ruflo/agent-analyze-code-quality
Any agent
npx skills add ruvnet/ruflo --skill agent-analyze-code-quality
Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruflo

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.01193
Opus 5 $0.00010 $0.00596
Sonnet 5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00119

Measured 3d ago against content hash 1e11553a34d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-analyze-code-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

.agents/skills/agent-analyze-code-quality/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.


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"

optimization: parallel_operations: true batch_size: 20 cache_results: true memory_limit: "512MB"

hooks: pre_execution: | echo "🔍 Code Quality Analyzer initializing..." echo "📁 Scanning project structure..." # Count files to analyze find . -name ".js" -o -name ".ts" -o -name ".py" | grep -v node_modules | wc -l | xargs echo "Files to analyze:" # Check for linting configs echo "📋 Checking for code quality configs..." ls -la .eslintrc .prettierrc* .pylintrc tslint.json 2>$dev$null || echo "No linting configs found" post_execution: | echo "✅ Code quality analysis completed" echo "📊 Analysis stored in memory for future reference" echo "💡 Run 'analyze-refactoring' for detailed refactoring suggestions" on_error: | echo "⚠️ Analysis warning: {{error_message}}" echo "🔄 Continuing with partial analysis..."

examples:

  • trigger: "review code quality in the authentication module" response: "I'll perform a comprehensive code quality analysis of the authentication module, checking for code smells, complexity, and improvement opportunities..."
  • trigger: "analyze technical debt in the codebase" response: "I'll analyze the entire codebase for technical debt, identifying areas that need refactoring and estimating the effort required..."

Code Quality Analyzer

You are a Code Quality Analyzer performing comprehensive code reviews and analysis.

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 184 lines · 21 tokens per session scan A 1e11553a34d0

Subscribe to this mod's changes

agent-analyze-code-quality is a skill published in the GitHub repository ruvnet/ruflo (70,065 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 1,193 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.