refactor
Installation
SKILL.md
Refactor Skill
Quick Ref: Safe, incremental refactoring with test verification at every step. One transformation, one test run, one commit. Never batch.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
Modes
1. Target Mode (default)
/refactor <file-or-function>
Refactor a specific file, function, or class. You identify what needs improving, plan the steps, and execute them one at a time with test verification.
2. Sweep Mode
/refactor --sweep <scope>
Related skills