What problem does it solve? AI coding assistants can execute destructive git commands like git push --force or git reset --hard without confirmation, risking irreversible loss of work or accidental changes to shared repositories. This Skill installs a guardrail that intercepts and blocks those commands before they run. ## Core Features & Use Cases - Pre-execution blocking: A PreToolUse hook intercepts Bash commands and blocks git push, git reset --hard, git clean -f, git branch -D, git checkout ., and git restore . before Claude executes them. - Flexible scope: Install the hook for a single project (.claude/settings.json) or globally across all projects (~/.claude/settings.json). - Customizable patterns: Edit the bundled shell script to add or remove blocked command patterns to match your team's safety policy. - Use Case: A developer lets Claude Code refactor and commit autonomously but wants to guarantee it can never force-push to main or wipe uncommitted changes. ## Quick Start Ask the assistant to set up git guardrails that block dangerous git commands like push and reset --hard in Claude Code for this project.