refactoring
Installation
SKILL.md
Refactoring Skill
Improve code structure and quality while preserving behavior.
Core Principle
Tests are your safety net. Never refactor without tests.
The Refactoring Cycle
- Ensure tests exist and pass
- Make ONE small change
- Run tests (must still pass)
- Commit (keep changes isolated)
- Repeat
Each step must be reversible. If tests fail, revert and try smaller change.