refactor-code
Installation
SKILL.md
Refactor Code
Improve readability, cohesion, and maintainability without changing behavior.
The code engine of the refactoring vertical (/refactor code). Draws on
typescript-refactor for type-architecture work and react-refactor for component
architecture. For mechanical AI-slop removal use de-slop; for a read-only structural
review use structural-review.
Triggers
- Function > 50 lines
- File > 300 lines
- Duplicate code (3+ instances)
- Complex conditionals (> 3 levels deep)
anytypes- Hard to test or understand
- Vague naming and mixed responsibilities
- Dead abstractions, dead code, or misleading comments