What problem does it solve? AI coding agents can run destructive git commands like git push, git reset --hard, or git clean -f without human approval, risking lost work or unwanted remote changes. This Skill installs a hook that intercepts and blocks those commands before they execute. ## Core Features & Use Cases - PreToolUse Hook Setup: Copies a bundled bash script and registers it in Claude Code settings, either per-project (.claude/settings.json) or globally (~/.claude/settings.json). - Dangerous Command Blocking: Blocks git push (including --force), git reset --hard, git clean -f/-fd, git branch -D, and git checkout ./git restore .. - Primary Branch Guard: When the dev plugin is enabled, blocks branch switching in the primary checkout while keeping commits, worktrees, and read-only git operations allowed. - Use Case: A team lets Claude Code run autonomously on a repository but wants to guarantee the agent can never force-push to main or wipe uncommitted changes. ## Quick Start Ask the AI to set up git guardrails that block dangerous git commands like push and reset --hard in Claude Code for this project.