Try Bifrost Enterprise free for 14 days.
Request access
[ SECURITY SKILL ]

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.

324.4K installsmattpocock/skills

[ INSTALL ]

Install this skill

Use the open skills CLI to add this package to Claude Code, Codex, Cursor, or other skill-aware agents. Bifrost does not host or serve this public skill; always install from the upstream source.

npx skills add mattpocock/skills

[ ABOUT ]

What this skill is for

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. Teams typically use it when they want reusable agent instructions without rewriting prompts for every session. Review the full SKILL.md on the source repository before installing in production environments.

PropertyDetails
Namegit-guardrails-claude-code
Sourcemattpocock/skills
Ownermattpocock
CategorySecurity
Installs324.4K
LicenseSee upstream repository

[ Skills Repository ]

Need a private skill registry for your team?

Bifrost lets your team create, version, and publish private Agent Skills, then register as a marketplace for Claude Code and Codex.