Block risky Git commands before Claude Code runs them.
Installs safety hooks that block dangerous Git commands before Claude Code executes them.
When to use it
Use when the user wants to prevent destructive Git operations or add Git safety hooks in Claude Code.
Choose protection for the current project or all projects; it installs the hook and asks whether to customize the blocked patterns.
Requires jq to extract the command from the hook's JSON input.
This skill
.claude/settings.json
Adds project Git safety hooks
~/.claude/settings.json
Adds global Git safety hooks