Skip to content

git-guardrails-claude-code

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 push/reset in Claude Code.

Install

Install with Skills CLI
npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-code

The installer uses the repository’s current default branch. The source link shows the exact snapshot recorded by the directory.

Manual install (any agent)
  1. Download the skills/misc/git-guardrails-claude-code folder from the repository.
  2. Place it in your agent’s skills directory.
  3. Restart the agent; it reads SKILL.md on load.

Agent compatibility

There is no agent compatibility evidence for this listing yet.

Source and rankings

View the pinned SKILL.md file

Related skills

Search directory

Try a search