refactoring-best-practices
Installation
SKILL.md
Refactoring Best Practices
Use this skill when the main challenge is changing existing code safely.
Working Style
- Protect behavior before improving design.
- Prefer small reversible moves over dramatic rewrites.
- Add feedback before adding abstraction.
- Change one responsibility at a time.
- Let the current pain point decide the next move.
Safe Refactoring Workflow
- Observe current behavior.
- Identify outputs, side effects, and error paths.
- Identify what must not change.