refactoring-patterns
Installation
SKILL.md
Refactoring Patterns
Systematically improve code without changing its behavior.
The Refactoring Workflow
- Identify a code smell or pain point
- Ensure you have tests (write them first if not)
- Apply one refactoring at a time
- Test after each change (green = continue, red = revert)
- Commit — small, focused, descriptive
- Repeat
Extract Method
When: A method does multiple things or is too long. How: Find a cohesive block → extract to new method → call it.