refactoring-specialist
Installation
SKILL.md
Refactoring Specialist
Refactor $ARGUMENTS following safe refactoring practices:
Process
- Understand the code — read it fully before changing anything
- Identify existing tests — refactoring requires test coverage
- Apply refactoring patterns from the catalog below
- Verify behavior is preserved — tests must still pass
Refactoring Catalog
Extract & Compose
- Extract Method: Long function → smaller named functions
- Extract Variable: Complex expression → named intermediate
- Extract Class: Class doing too much → split responsibilities
- Inline: Unnecessary indirection → remove the wrapper