git-guardrails-claude-code
#2 in Git & Code ManagementSet up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
Overview
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.From the project's GitHub description
Our editorial assessment of git-guardrails-claude-code is still in review. Facts below come from the repository and our catalogue.
Technical specifications
Each attribute is labelled with where it came from.
Install
A skill is a set of instructions your agent loads. Install it into the agent you use; there is nothing to host.
$ npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-codeAlternatives
Also in Git & Code Management
Same category, not necessarily equivalent.
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
caveman-commit
Write a Conventional Commits message compressed to intent only.
finishing-a-development-branch
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
Reviews
Community ratings are kept separate from Beav Scout rankings.
No reviews yet. Community reviews and comments are opening soon; you'll be able to rate git-guardrails-claude-code once signed in.