JavaScript is disabled. Some features may not work.
git-guardrails-claude-code — ★ 143.3K GitHub Stars — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

git-guardrails-claude-code

★ 143K repomlSafeIntermediateClaude
🤖 AI Summary

Intercepts git commands in Claude Code's PreToolUse hook, blocking dangerous operations like force pushes, branch deletions, or destructive rebases before execution.

How to Install

Claude Code:
git clone --depth 1 https://github.com/mattpocock/skills.git && cp skills/skills/misc/git-guardrails-claude-code ~/.claude/skills/git-guardrails-claude-code -r
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.

Details

Category AI/ML → ml
Sourcemattpocock/skills
SKILL.mdView on GitHub →
Repo Stars★ 143.3K
Est. per Skill~3.2K (shared across 45 skills from this repo)
DifficultyIntermediate
Risk LevelSafe

Related Skills

Works Well With

Skills from the same repository — often designed to work together