git-safety
Installation
SKILL.md
Git safety
These rules exist because one git checkout -- . erased two days of work. Follow them every time, not only when it feels risky.
Before any git command
git status. Read it.- If anything is modified or untracked, stop. Say what is there. Ask before proceeding with anything that could touch those files.
- Suggest
git stash push -m "<why>"if the user needs a clean tree and wants the work kept.
Commands that need explicit approval
Never run these on your own. Show the exact command, say what it will destroy, and wait for a yes.