git-guardrails-claude-code
Installation
SKILL.md
Before repository-facing work, read ../../WORK-ROUTING.md. It is the shared routing source for project documents, lane selection, plan ownership, and closeout.
Setup Git Guardrails
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
What Gets Blocked
git push(all variants including--force)git reset --hardgit clean -f/git clean -fdgit branch -Dgit checkout ./git restore .
When blocked, Claude sees a message telling it that it does not have authority to access these commands.