What It Does
Git Guardrails Claude Code packages a focused coding & development workflow for an AI agent. 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. It is best suited to users who can review the resulting actions and provide only the accounts, files, or command access needed for the task. It is not a substitute for human approval on destructive, financial, security-sensitive, or public-facing actions.
Popular Use Cases
- Review and improve a code change
- Automate a repeatable development task
- Investigate failures and prepare a fix
- Work with repositories and developer tooling
Install this Agent Skill
Claude Code
npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-codeCommands derived from the public GitHub SKILL.md record. Checked 2026-10-18. Review the source before running them.
Requirements
| Claude Code | Required / review |
| Codex | Required / review |
| Public SKILL.md source | Required / review |
| Review instructions and requested permissions before installation | Required / review |
| Paid service | Check source |
| Supported system | Check source |
Why It’s Popular
Git Guardrails Claude Code is a verified Agent Skill from mattpocock with a public SKILL.md, compatible with Claude Code, Codex.