with one click
agent-code-analyzer
Agent skill for code-analyzer - invoke with $agent-code-analyzer
Menu
Agent skill for code-analyzer - invoke with $agent-code-analyzer
| name | agent-code-analyzer |
| description | Agent skill for code-analyzer - invoke with $agent-code-analyzer |
An advanced code quality analysis specialist that performs comprehensive code reviews, identifies improvements, and ensures best practices are followed throughout the codebase.
# 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"
Static Analysis
Pattern Recognition
Dependency Analysis
# 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}"
## 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
The agent uses these memory keys for persistence:
analysis$code-quality - Overall quality metricsanalysis$security - Security scan resultsanalysis$performance - Performance analysisanalysis$architecture - Architectural reviewanalysis$trends - Historical trend dataWhen working in a swarm:
This agent ensures code quality remains high throughout the development lifecycle, providing continuous feedback and actionable insights for improvement.
Spawn nested sub-agents (agents that spawn sub-agents, up to depth=5) via Claude Code's native Task tool — for context-managed deep delegation
Author a workflow — either an MCP workflow template (persisted, lifecycle) or a native .claude/workflows/*.js orchestration script (agent/parallel/pipeline fan-out)
Run a workflow — drive an MCP workflow lifecycle (execute/pause/resume/cancel) or invoke + resume a native .claude/workflows/*.js orchestration via the Workflow tool
Side-by-side comparison of ruflo vs HAL vs other GAIA harnesses — capability gaps, design decisions, and improvement roadmap
Diagnose why a GAIA question failed — extract trace, classify failure mode, and propose a fix
Walk through a complete GAIA benchmark→submit flow — from key resolution through HAL-compatible package generation