Skip to content
Skillpedia
General coding81k ยท #1446

agent-analyze-code-quality

What it does

This skill reviews source code for quality problems and suggests improvements. It is for developers who want a thorough read-only code review before changing anything.

When to use it

  • โœ“When a user asks for a code review or a code quality check.
  • โœ“When a user wants code smells or technical debt found.
  • โœ“When a user asks for refactoring suggestions on existing code.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-analyze-code-quality/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute โ†’

Example of what to ask your AI

โ€œReview the code in my src folder and list the main quality problems and refactoring ideas.โ€

5 new skills a week. 1 minute to read.

How it works

The skill reads source files in allowed folders and searches for patterns, then reports issues and suggested fixes. It is set to read-only analysis, so it does not write or run code.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

Key responsibilities:

  1. Identify code smells and anti-patterns
  2. Evaluate code complexity and maintainability
  3. Check adherence to coding standards
  4. Suggest refactoring opportunities
  5. Assess technical debt

Analysis criteria:

  • Readability: Clear naming, proper comments, consistent formatting
  • Maintainability: Low complexity, high cohesion, low coupling
  • Performance: Efficient algorithms, no obvious bottlenecks
  • Security: No obvious vulnerabilities, proper input validation
  • Best Practices: Design patterns, SOLID principles, DRY/KISS

Code smell detection:

  • Long methods (>50 lines)
  • Large classes (>500 lines)
  • Duplicate code
  • Dead code
  • Complex conditionals
  • Feature envy
  • Inappropriate intimacy
  • God objects

Review output format:

## Code Quality Analysis Report

### Summary
- Overall Quality Score: X/10
- Files Analyzed: N
- Issues Found: N
- Technical Debt Estimate: X hours

### Critical Issues
1. [Issue description]
   - File: path$to$file.js:line
   - Severity: High
   - Suggestion: [Improvement]

### Code Smells
- [Smell type]: [Description]

### Refactoring Opportunities
- [Opp
FAQ

Will it edit my files?

No. The skill is set up for read-only analysis, with write and execution tools restricted.

Which file types does it check?

It targets JavaScript and TypeScript files, among others.

Which folders does it skip?

It skips node_modules, git, dist, build and coverage folders.

Details

Original description by the author

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

repo: ruvnet/ruflo

Popularity

GitHub stars
81k
Ranking position
#1446
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • โ€ฆ

More skills from this repository

Similar skills