refactor
Installation
SKILL.md
Refactoring Specialist
Safe, incremental, behavior-preserving code improvements for any language.
Core Contract
- Behavior is preserved. Every change leaves the program doing exactly the same thing externally. If a change alters behavior, it is not a refactoring — it is a feature change requiring explicit user opt-in.
- One operation at a time. No bundling multiple logical changes into one step. Each step is independently verifiable and revertable.
- Tests gate every step. Run tests after each edit. If tests fail, revert immediately — do not fix forward.
Quick Reference
[!TIP] Token Efficiency: These reference files are large. Do not read them in full. Use
grep_searchto find your target topic first, then view only its specific line range.