Sign inGet started

git-guardrails-claude-code

by mattpocock/skills · Security & Compliance

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

completeness
7.0/10
clarity
8.0/10
trigger quality
8.0/10
examples
6.0/10
structure
8.0/10
overall
7.0/10

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