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 push and force-push variants
  • git reset --hard
  • git clean -f / git clean -fd
  • git branch -D
  • git checkout .
  • git restore .
Installs
4
GitHub Stars
2
First Seen
Apr 12, 2026