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.
Install as a plugin
Install the mattpocock-skills plugin
Copy: Install the mattpocock-skills plugin/plugin install mattpocock-skills@claude-plugins-officialThe official marketplace is already added in Claude Code. The command opens the plugin's page in /plugin, where you pick a scope and confirm.
From your shell instead
Copy: Add the marketplaceclaude plugin marketplace add anthropics/claude-plugins-officialOnly on a machine that never ran an interactive Claude Code session: the first session adds the official marketplace by itself.
Copy: Install itclaude plugin install mattpocock-skills@claude-plugins-official
Then ask Claude for what it does: it loads the skill when your request matches the description. Or call it directly with /mattpocock-skills:git-guardrails-claude-code.
See which of your apps makes money
- Revenue from Stripe, Paddle and others next to visits, per app
- Search Console and the analytics you already use, on one screen
- Which channel your paying customers came from

From its SKILL.md
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them. git push (all variants including --force) git reset --hard git clean -f / git clean -fd git branch -D git checkout . / git restore .