Skip to content
G

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands

by mattpocockFree

#83in AI Skills
1In stores

Description

git-guardrails-claude-code is an agent skill from Matt Pocock's skills collection, listed on skills.sh. It sets up a Claude Code hook that b…

Highlights

  • Blocks git push and force-push
  • Blocks reset --hard, clean -f and branch -D
  • Project or global install

Ratings & Reviews

No ratings yet

Be the first to rate git-guardrails-claude-code.

People also visit

C

Claude Code Safety Net

by kenryu42 - A coding agent CLI hook

AI Skills
Get
C

create-hook

Create and configure git hooks

AI Skills
Get
G

git-guardrails-claude-code

设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D

AI Skills
Get
B

block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents

AI Skills
Get
C

code-review-expert

Expert code review of current git changes with a senior engineer lens

AI Skills
Get
G

git-master

Complete Git expertise for ALL operations with 2025 features

AI Skills
Get

git-guardrails-claude-code FAQ

What does the git-guardrails-claude-code skill do?

It sets up a Claude Code hook that blocks dangerous git commands before they run: git push (including --force), reset --hard, clean -f, branch -D and checkout or restore of everything.

How do I install the git-guardrails-claude-code skill?

Run: npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-code

Is it free?

Yes. It is free and open source.

What is an agent skill?

A SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent such as Claude Code loads when a task needs it, so it handles that task the same careful way every time.

Has it been checked for security?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass. A Warn is worth reading before you install.

What are the best git-guardrails-claude-code alternatives?

Popular alternatives to git-guardrails-claude-code include Claude Code Safety Net, create-hook and git-guardrails-claude-code. See all git-guardrails-claude-code alternatives

Developer Stuff

Badges