What problem does it solve? AI coding agents can accidentally run destructive git commands like git push --force, git reset --hard, or git clean -fd, causing irreversible loss of work or unintended changes to remote repositories. This Skill installs a deterministic guard that intercepts and blocks such commands before they execute. ## Core Features & Use Cases - Pre-execution blocking: Installs a PreToolUse hook that intercepts Bash tool calls and blocks git push, git reset --hard, git clean -f/-fd, git branch -D, git checkout ., and git restore .. - Flexible scope: Supports project-level installation (.claude/settings.json) or global installation across all projects (~/.claude/settings.json). - Customizable blocklist: The shell script's pattern list can be edited to add or remove blocked commands. - Use Case: A team lets Claude Code run autonomously on a repository but wants to guarantee it can never force-push to main or wipe uncommitted changes; the hook returns exit code 2 with a BLOCKED message whenever a dangerous pattern is detected. ## Quick Start Ask Claude to install git guardrails that block dangerous git commands like push and reset --hard for this project.