Explore Swarms
← All Skills
Development

Git Guardrails for Claude Code

Block destructive git commands before the agent runs them

Installs525.4K
Author@mattpocock
Sourcemattpocock/skills

About

Sets up a PreToolUse hook that blocks dangerous git commands (push, reset --hard, clean -f, branch -D, checkout .) before Claude executes them, per project or for all projects.

Install This Skill
npx skills add mattpocock/skills/git-guardrails-claude-code

Via skills.sh

Tags

agentsguardrailsgit

Source

View on Skills.sh →
← Back to all skills