git-guardrails-claude-code
Installation
SKILL.md
Setup Git & GitHub CLI Guardrails
Sets up a PreToolUse hook that intercepts and blocks dangerous git and gh CLI commands before Claude executes them.
What Gets Blocked
Git commands
git push(all variants including--force)git reset --hardgit clean -f/git clean -fdgit branch -Dgit checkout ./git restore .