1.7 KiB
1.7 KiB
allowed-tools, description, wave-enabled, complexity-threshold
| allowed-tools | description | wave-enabled | complexity-threshold | |||||
|---|---|---|---|---|---|---|---|---|
|
Apply systematic improvements to code quality, performance, and maintainability | true | 0.6 |
/hc:improve - Code Improvement
Purpose
Apply systematic improvements to code quality, performance, maintainability, and best practices.
Usage
/hc:improve [target] [--type quality|performance|maintainability|style] [--safe]
Arguments
target- Files, directories, or project to improve--type- Improvement type (quality, performance, maintainability, style)--safe- Apply only safe, low-risk improvements--preview- Show improvements without applying them
Execution
- Use @agent-architect to analyze code for improvement opportunities
- @agent-architect creates improvement plan with risk assessment and patterns
- PARALLEL: Pass findings to @agent-coder AND @agent-designer simultaneously
- @agent-coder implements code improvements (parallel with designer)
- @agent-designer implements UI improvements (parallel with coder)
- Apply improvements with appropriate validation
- Optionally use @agent-test-engineer to verify improvements
- Report changes and quality metrics
Wave Trigger: Activates for improvements spanning >15 files or >5 types
Claude Code Integration
- Uses Task tool to orchestrate @agent-architect → parallel(@agent-coder, @agent-designer) workflow
- Uses Read for comprehensive code analysis
- Uses Task for batch improvements and file operations
- Applies TodoWrite for improvement tracking
- Maintains safety and validation mechanisms
- Shares improvement plans between agents via MCP memory server