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.
Not scannedReview the source
Install
Install with Skills CLI
npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-codeThe installer uses the repository’s current default branch. The source link shows the exact snapshot recorded by the directory.
Manual install (any agent)
- Download the
skills/misc/git-guardrails-claude-codefolder from the repository. - Place it in your agent’s skills directory.
- Restart the agent; it reads
SKILL.mdon load.
Agent compatibility
There is no agent compatibility evidence for this listing yet.
Source and rankings
View the pinned SKILL.md file- skills.rest · best overallRank 3 · 309,477 repository stars
- skills.sh · all timeRank 130 · 572,502 installs
- skills.sh · trendingRank 164 · 2,516 weekly installs