git-guardrails
Installation
SKILL.md
Git Guardrails
Install a repo-local guard script that blocks destructive git commands before they run.
Requirements
- Bash
- Python 3 (
python3 --version)
The bundled script uses only the Python standard library. If python3 is missing, install it with your OS package manager before wiring the guard into an agent hook.
What this protects against
git pushand force-push variantsgit reset --hardgit clean -f/git clean -fdgit branch -Dgit checkout .git restore .