Refactoring Skill
Restructure code safely while preserving behavior.
Workflow
1. Verify Test Coverage
Before refactoring, ensure tests exist:
# Run existing tests
npm test
pytest
go test ./...
If no tests cover the code:
- Write characterization tests first
- These capture current behavior (even if buggy)
- Then refactor with confidence
2. Understand Current Structure
Map the code:
- What are the dependencies?
- Who calls this code?
- What does it depe
[Description truncada. Veja o README completo no GitHub.]