Skip to content
git-guardrails-claude-code

Open source alternatives to git-guardrails-claude-code

No open source apps like git-guardrails-claude-code yet.

About git-guardrails-claude-code

G

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands

git-guardrails-claude-code is an agent skill from Matt Pocock's skills collection, listed on skills.sh. It sets up a Claude Code hook that blocks dangerous git commands before they run: git push (including --force), reset --hard, clean -f, branch -D and checkout or restore of everything. You choose whether it applies to one project or all of them. A skill is a SKILL.md file of instructions (sometimes with scripts and reference notes) that an AI agent loads only when a task calls for it, so the agent knows the steps to follow and what to avoid. It is free and open source.

Price
Free
Made by
mattpocock
Category
AI Skills
Website
github.com/mattpocock/skills/git-guardrails-claude-code