
git-guardrails-claude-code
Installs Claude Code hooks that block dangerous git commands like push, reset --hard, and clean before they run.
Lift—not yet benchmarked
87
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITmetadata + link-out
What it does
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
#git#hooks#safety#claude-code#automation
Quality judgment
Well-structured, actionable steps with concrete JSON configs and a verification test. Weaknesses: the actual hook script contents are not shown, no troubleshooting or edge cases (e.g., bypass patterns, Windows compatibility), and the blocked-pattern matching logic is unexplained.
Files (4)
agents/openai.yaml · 0.1 KBLICENSE · 1.0 KBscripts/block-dangerous-git.sh · 0.5 KBSKILL.md · 2.3 KB