git-guardrails-claude-code
🤖 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 -rSets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
Details
| Category | AI/ML → ml |
| Source | mattpocock/skills |
| SKILL.md | View on GitHub → |
| Repo Stars | ★ 143.3K |
| Est. per Skill | ~3.2K (shared across 45 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | Safe |
Related Skills
context-degradation
Context Degradation Patterns Diagnose and fix context failures before they cascade. Context degradat
claude-settings-audit
Claude Settings Audit Analyze this repository and generate recommended Claude Code settings.json per
daily
When to Use You are building a real-time voice or multimodal AI application that uses Daily or Pipec
max
Max — The Optimizer Max cleans up and improves existing code only when explicitly requested. He is n
Works Well With
Skills from the same repository — often designed to work together
qa
Run an interactive QA session. The user describes problems they're encountering. You clarify, explor
tdd
Test-Driven Development When to Use Use when this workflow matches the user request: Use this skill
triage
Triage When to Use Use when this workflow matches the user request: Move issues and external PRs thr