Download

skill · AI & ML

Git Guardrails Claude Code

by mattpocock

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git…

Calyban is a free desktop app. It checks Git Guardrails Claude Code for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Git Guardrails Claude Code manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

git clone --depth 1 https://github.com/mattpocock/skills.git calyban-tmp-git-guardrails-claude-code
mkdir -p ~/.claude/skills
cp -r calyban-tmp-git-guardrails-claude-code/skills/misc/git-guardrails-claude-code ~/.claude/skills/git-guardrails-claude-code
rm -rf calyban-tmp-git-guardrails-claude-code

Codex

git clone --depth 1 https://github.com/mattpocock/skills.git calyban-tmp-git-guardrails-claude-code
mkdir -p ~/.codex/skills
cp -r calyban-tmp-git-guardrails-claude-code/skills/misc/git-guardrails-claude-code ~/.codex/skills/git-guardrails-claude-code
rm -rf calyban-tmp-git-guardrails-claude-code

Start a new Claude Code, Codex & more session afterwards so it picks up the change.

Similar skills

All skills →

Guides

Listed in the public Calyban catalog. Git Guardrails Claude Code is made by mattpocock, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.