Patterns · Vol. 02

Pattern

git-guardrails-claude-code

Configure Claude Code hooks that block dangerous git commands (push, reset –hard, clean -f, push -f) before they execute.

Classification — Methodology skill — destructive-action guard

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.