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.
uses shell commands
Type: Agent skill (SKILL.md) · Category: Git & Code Review · Source: https://github.com/mattpocock/skills/tree/HEAD/skills/misc/git-guardrails-claude
| Capabilities (fewer powerful permissions = higher) | 40/50 |
| Maintenance | 35/35 |
| Documentation | 15/15 |
Always review files before installing. How scores work. Request a correction