refactor-guide
Installation
SKILL.md
Refactoring Guide
Refactoring Principles
- Tests first - Never refactor without test coverage
- Small steps - One change at a time, commit frequently
- Behavior unchanged - Refactoring ≠ feature change
- Clear purpose - Know WHY you're refactoring
When to Refactor
Good reasons:
- Adding a feature is harder than it should be
- Bug fixes keep touching the same code
- Code is hard to understand after a break
- Duplicate code across multiple places
- Performance requires structural change