refactor-safely
Installation
SKILL.md
Refactor Safely
Structural code changes without breaking behavior. The constraint is absolute: a refactor commit must not change what the code does.
The Core Rule
One concern per commit. Never mix structure changes with behavior changes.
If you need to fix a bug and extract a function: fix the bug first, commit, then extract. If you need to rename and add a feature: rename first, commit, then add.
Mixing them makes the diff unreadable, breaks bisect, and makes rollback destructive.