refactoring
Installation
SKILL.md
Refactoring Skill
Structured approach to technical debt remediation. Improve code structure while maintaining behavior through incremental, safe changes.
When to Use
| Trigger | Description |
|---|---|
| Guardrail Violations | Functions >50 lines, files >300 lines |
| Complexity Threshold | Cyclomatic complexity >10 |
| Code Duplication | Same logic in 3+ places |
| Quarterly Review | Regular technical debt assessment |
| Pre-Feature | Before adding features to messy code |
| Post-Incident | After bugs caused by confusing code |
Related skills