vibehacker

Git Guardrails for Claude Code

Skill

Install a hook that stops Claude Code from running git push, reset --hard, clean, and other destructive commands.

by mattpocockCoding & Dev ToolsAgents & Automation Listed Feb 3, 2026

Clone or download it from github.com, then drop the folder into ~/.claude/skills/ (Claude Code) or your agent's skills directory.

Product badge

Share this product's name and rating in your README or on your website.

Git Guardrails for Claude Code: rating on VibeHacker

Updates may be delayed by image caching.

Git Guardrails for Claude Code cover

About Git Guardrails for Claude Code

From Matt Pocock's skills collection.

Sets up a PreToolUse hook that blocks risky git commands before they run, including pushes, hard resets, force cleans, branch deletes, and wholesale checkouts or restores. You choose whether it applies to one project or all of them. A cheap safety net if you let an agent loose in your repo.

Used Git Guardrails for Claude Code?

Log in to write a review.

No reviews yet

Used it? Write the first review.

Similar skills

View all

ASP.NET Core

Skill

Build and review ASP.NET Core apps with current official guidance