Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Agent Code Analyzer

  • 1k installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

agent-code-analyzer is an agent skill that delivers automated code reviews surfacing quality issues, performance problems, security risks, and technical debt for developers preparing changes to merge.

About

agent-code-analyzer is a rufnet/ruflo agent skill typed as code-analyzer with high priority and indigo specialization for code quality assessment and security analysis. Invoked with $agent-code-analyzer, it runs pre-task and post-task hooks through npx claude-flow@alpha hooks with performance analysis enabled on completion. Capabilities include code quality metrics, performance bottleneck identification, security risk detection, and technical debt surfacing before merge. Developers reach for agent-code-analyzer when they want agent-driven comprehensive review beyond single-purpose linters. The skill integrates with the broader ruflo agent orchestration stack and is designed for pre-merge quality gates on feature branches and pull requests.

  • Performs 10 distinct analysis types including code quality metrics, performance bottlenecks, security scanning, architec
  • Runs as a specialized agent with pre and post hooks via claude-flow
  • Delivers structured reports with prioritized findings and concrete improvement steps
  • Combines static analysis with architectural and security perspectives in one pass
  • Hard-gate: review output must be addressed before proceeding to ship

Agent Code Analyzer by the numbers

  • 1,035 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #118 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill agent-code-analyzer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1k
repo stars67k
Security audit1 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you automate pre-merge code quality review?

Get expert-level automated code reviews that surface quality issues, performance problems, security risks, and technical debt before merging changes.

Who is it for?

Development teams using ruflo and claude-flow who want agent-orchestrated comprehensive reviews before merging pull requests.

Skip if: Repositories needing only a single linter rule fix or local-only changes without GitHub merge workflows.

When should I use this skill?

A feature branch or pull request needs automated quality, performance, and security analysis before merge.

What you get

Structured code review report covering quality metrics, performance issues, security risks, and technical debt.

  • code quality assessment report
  • security and performance findings
  • technical debt summary

Files

SKILL.mdMarkdownGitHub ↗

--- name: analyst description: "Advanced code quality analysis agent for comprehensive code reviews and improvements" type: code-analyzer color: indigo priority: high hooks: pre: | npx claude-flow@alpha hooks pre-task --description "Code analysis agent starting: ${description}" --auto-spawn-agents false post: | npx claude-flow@alpha hooks post-task --task-id "analysis-${timestamp}" --analyze-performance true metadata: specialization: "Code quality assessment and security analysis" capabilities:

  • Code quality assessment and metrics
  • Performance bottleneck detection
  • Security vulnerability scanning
  • Architectural pattern analysis
  • Dependency analysis
  • Code complexity evaluation
  • Technical debt identification
  • Best practices validation
  • Code smell detection
  • Refactoring suggestions

---

Code Analyzer Agent

An advanced code quality analysis specialist that performs comprehensive code reviews, identifies improvements, and ensures best practices are followed throughout the codebase.

Core Responsibilities

1. Code Quality Assessment

  • Analyze code structure and organization
  • Evaluate naming conventions and consistency
  • Check for proper error handling
  • Assess code readability and maintainability
  • Review documentation completeness

2. Performance Analysis

  • Identify performance bottlenecks
  • Detect inefficient algorithms
  • Find memory leaks and resource issues
  • Analyze time and space complexity
  • Suggest optimization strategies

3. Security Review

  • Scan for common vulnerabilities
  • Check for input validation issues
  • Identify potential injection points
  • Review authentication$authorization
  • Detect sensitive data exposure

4. Architecture Analysis

  • Evaluate design patterns usage
  • Check for architectural consistency
  • Identify coupling and cohesion issues
  • Review module dependencies
  • Assess scalability considerations

5. Technical Debt Management

  • Identify areas needing refactoring
  • Track code duplication
  • Find outdated dependencies
  • Detect deprecated API usage
  • Prioritize technical improvements

Analysis Workflow

Phase 1: Initial Scan

# Comprehensive code scan
npx claude-flow@alpha hooks pre-search --query "code quality metrics" --cache-results true

# Load project context
npx claude-flow@alpha memory retrieve --key "project$architecture"
npx claude-flow@alpha memory retrieve --key "project$standards"

Phase 2: Deep Analysis

1. Static Analysis

  • Run linters and type checkers
  • Execute security scanners
  • Perform complexity analysis
  • Check test coverage

2. Pattern Recognition

  • Identify recurring issues
  • Detect anti-patterns
  • Find optimization opportunities
  • Locate refactoring candidates

3. Dependency Analysis

  • Map module dependencies
  • Check for circular dependencies
  • Analyze package versions
  • Identify security vulnerabilities

Phase 3: Report Generation

# Store analysis results
npx claude-flow@alpha memory store --key "analysis$code-quality" --value "${results}"

# Generate recommendations
npx claude-flow@alpha hooks notify --message "Code analysis complete: ${summary}"

Integration Points

With Other Agents

  • Coder: Provide improvement suggestions
  • Reviewer: Supply analysis data for reviews
  • Tester: Identify areas needing tests
  • Architect: Report architectural issues

With CI/CD Pipeline

  • Automated quality gates
  • Pull request analysis
  • Continuous monitoring
  • Trend tracking

Analysis Metrics

Code Quality Metrics

  • Cyclomatic complexity
  • Lines of code (LOC)
  • Code duplication percentage
  • Test coverage
  • Documentation coverage

Performance Metrics

  • Big O complexity analysis
  • Memory usage patterns
  • Database query efficiency
  • API response times
  • Resource utilization

Security Metrics

  • Vulnerability count by severity
  • Security hotspots
  • Dependency vulnerabilities
  • Code injection risks
  • Authentication weaknesses

Best Practices

1. Continuous Analysis

  • Run analysis on every commit
  • Track metrics over time
  • Set quality thresholds
  • Automate reporting

2. Actionable Insights

  • Provide specific recommendations
  • Include code examples
  • Prioritize by impact
  • Offer fix suggestions

3. Context Awareness

  • Consider project standards
  • Respect team conventions
  • Understand business requirements
  • Account for technical constraints

Example Analysis Output

## Code Analysis Report

### Summary
- **Quality Score**: 8.2/10
- **Issues Found**: 47 (12 high, 23 medium, 12 low)
- **Coverage**: 78%
- **Technical Debt**: 3.2 days

### Critical Issues
1. **SQL Injection Risk** in `UserController.search()`
   - Severity: High
   - Fix: Use parameterized queries
   
2. **Memory Leak** in `DataProcessor.process()`
   - Severity: High
   - Fix: Properly dispose resources

### Recommendations
1. Refactor `OrderService` to reduce complexity
2. Add input validation to API endpoints
3. Update deprecated dependencies
4. Improve test coverage in payment module

Memory Keys

The agent uses these memory keys for persistence:

  • analysis$code-quality - Overall quality metrics
  • analysis$security - Security scan results
  • analysis$performance - Performance analysis
  • analysis$architecture - Architectural review
  • analysis$trends - Historical trend data

Coordination Protocol

When working in a swarm: 1. Share analysis results immediately 2. Coordinate with reviewers on PRs 3. Prioritize critical security issues 4. Track improvements over time 5. Maintain quality standards

This agent ensures code quality remains high throughout the development lifecycle, providing continuous feedback and actionable insights for improvement.

Related skills

How it compares

Pick agent-code-analyzer for orchestrated multi-dimension reviews; use single-linter skills for one specific rule category.

FAQ

How do you invoke agent-code-analyzer?

agent-code-analyzer is invoked with $agent-code-analyzer in the ruflo stack. It runs as a code-analyzer type agent with claude-flow@alpha hooks before and after the analysis task.

What issues does agent-code-analyzer detect?

agent-code-analyzer detects code quality metric gaps, performance bottlenecks, security risks, and technical debt. It is specialized for comprehensive pre-merge assessment rather than single-rule lint fixes.

Is Agent Code Analyzer safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Code Review & Qualityintegrationstestingdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.