Git Guardrails (Claude Code skill)

Setup skill that drops a `PreToolUse` hook into Claude Code to block destructive git commands upfront: `git push` (incl. `--force`), `git reset --hard`, `git clean -f`, `git branch -D`, `git checkout .`, `git restore .`. When Claude tries any of them, the hook replies with a 'no authority' message and aborts. Installs per-project (`.claude/settings.json`) or global (`~/.claude/settings.json`).

Strengths

Limitations

Best for

View on Coeurdar