Skip to content
G

git-guardrails-claude-code

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

by vinvcnFree

#4487in AI Skills
0In stores

Description

git-guardrails-claude-code is an agent skill from the vinvcn/mattpocock-skills-zh-cn repository, listed on skills.sh. It sets up a PreToolUs…

Highlights

  • Blocks git push, reset --hard and clean -f
  • Blocks branch deletion and whole-tree checkout
  • Project-only or all-projects install
  • Uses a Claude Code PreToolUse hook

Ratings & Reviews

No ratings yet

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

People also visit

G

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands

AI Skills
Get
C

Claude Code Safety Net

by kenryu42 - A coding agent CLI hook

AI Skills
Get
S

safety-hooks

Provides safety guards to block or require confirmation

AI Skills
Get
B

block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents

AI Skills
Get
C

create-hook

Create and configure git hooks

AI Skills
Get
C

code-review-expert

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

AI Skills
Get

git-guardrails-claude-code FAQ

What does git-guardrails-claude-code do?

It sets up a Claude Code hook that blocks dangerous git commands before they run.

How do I install it?

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

Which commands are blocked?

git push including force, git reset --hard, git clean -f or -fd, git branch -D, and git checkout or restore on the whole tree.

Can I install it for one project only?

Yes. The skill asks whether to install it for the current project or for all projects.

What does Claude see when a command is blocked?

A message saying it does not have permission to use that command.

What do the security audits say?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

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

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

Developer Stuff

Badges