safe-change
Installation
SKILL.md
Skill: safe-change
When to use
Modifying any function, class, or module called from more than one place.
Steps
- Run
impact-checkskill — get list of all callers and dependents. - Note current observable behaviour (return values, side effects).
- Make the minimal change. Do not touch adjacent code.
- For each caller from step 1: verify backward-compatible or explicitly update the caller.
CHECK: ls <test-dir>/*<module>* 2>/dev/null | head -3— if tests exist,RUN: <test-cmd>. If none, note explicitly in commit message.- Confirm: "Changed X. Verified Y still works." Then invoke
verify-before-commit.
Rules
- If backward compatibility is impossible, surface to user before proceeding.
- Touch only what the task requires — no opportunistic refactoring.
- If no tests exist, that is acceptable to note — do not add tests outside task scope.