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 --hard
  • git clean -f / git clean -fd
  • git branch -D
  • git checkout . / git restore .

When blocked, Claude sees a message telling it that it does not have authority to access these commands.

Steps

1. Ask scope

Installs
7
Repository
eszxcvfd/skills
GitHub Stars
1
First Seen
Jul 24, 2026
git-guardrails-claude-code — eszxcvfd/skills