
Code Quality Analyzer
FreeComprehensive analysis for better code quality.
Free ยท Opens the source repo
What Code Quality Analyzer does
The Code Quality Analyzer is an advanced agent skill designed to perform thorough code reviews and quality assessments. It specializes in identifying code smells, evaluating maintainability, and suggesting refactoring opportunities. By analyzing various programming languages such as JavaScript, TypeScript, Python, and Java, this skill provides developers with actionable insights to improve their codebase. The analyzer focuses on several criteria including readability, maintainability, performance, security, and adherence to best practices.
When invoked, the Code Quality Analyzer scans the specified project structure, excluding unnecessary paths like 'node_modules' and '.git'. It generates a detailed analysis report that includes an overall quality score, identified issues, and technical debt estimates. The skill is autonomous and operates in a read-only mode, ensuring that it does not modify the code but rather provides recommendations for improvement. This makes it particularly suitable for teams looking to enhance their code quality without the risk of introducing changes during the analysis process.
The skill is designed for developers and teams who prioritize code quality and are looking for a systematic way to evaluate their code. It is particularly useful during code reviews, before major releases, or when onboarding new team members to ensure that the codebase adheres to established standards. By leveraging this tool, teams can reduce technical debt and improve the overall maintainability of their projects, leading to more efficient development cycles.
However, it's important to note that the Code Quality Analyzer is not a substitute for human judgment. While it provides valuable insights, it cannot replace the nuanced understanding that experienced developers bring to code reviews. Additionally, it operates under strict constraints, such as a maximum file size and a limit on the types of files it can analyze, which may not cover every scenario in a large or diverse codebase.
When to use it
Use this tool when conducting code reviews, assessing technical debt, or preparing for refactoring efforts.
When not to use it
It is not suitable for real-time code editing or scenarios requiring immediate code modifications.
What you can build with it
Reviewing a new feature implementation
Before merging a new feature, run the analyzer to ensure code quality and adherence to standards.
Assessing legacy code
Use the analyzer to identify technical debt in legacy code, helping prioritize refactoring efforts.
Conducting regular code health checks
Integrate the analyzer into your CI/CD pipeline to perform regular checks on code quality as part of your development workflow.
How to install Code Quality Analyzer
View source1. Install with the skills CLI
npx skills add ruvnet/ruflo/agent-analyze-code-quality --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by ruvnetname: "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:
- Identify code smells and anti-patterns
- Evaluate code complexity and maintainability
- Check adherence to coding standards
- Suggest refactoring opportunities
- 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
- [Opportunity]: [Benefit]
### Positive Findings
- [Good practice observed]
Frequently asked questions about Code Quality Analyzer
Similar skills
Quality Playbook Generator
Run comprehensive quality audits on any codebase.
PR Draft Summary
Automate PR summary generation for openai-agents-python.
Final Release Review
Streamline your release candidate audits with ease.
Unit Test Vue Pinia
Efficiently write and review unit tests for Vue 3 applications.
Slang Shader Expert
Optimize and integrate Slang shaders with ease.
Telemetry Standards
Ensure consistent event tracking in Supabase Studio.
