safe-code-change
Installation
SKILL.md
Safe Code Change
After a code change is made, find and fix affected tests before running validation.
Rules
- The code change is already done. Do not modify production code.
- Only update tests to match the new behavior, not the other way around.
- Do not reformat or lint-fix during test updates. Save that for validation.
- If a test change is ambiguous (unclear what the new expected behavior is), ask the user.
Step 1: Identify What Changed
git diff --name-only
git diff --stat
List the modified production files (ignore test files, configs, docs).
Related skills