–
git-guardrails-claude-code
Installs Claude Code hooks that block dangerous git commands like push, reset --hard, and clean before they run.
Lift · GLM-5.3-flash—untestable in our sandbox · why ↓
85
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP
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.
#automation#claude-code#git#hooks#safety
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