git-guardrails-claude-code
Installation
SKILL.md
Git Guardrails for Claude Code
Prevent Claude Code from executing destructive git operations via PreToolUse hooks.
When to use this skill
- Protecting critical repositories from accidental destructive git commands
- Setting up safety nets before giving Claude Code broad git permissions
- After an incident involving unintended git destructive operations
When not to use this skill
- General git workflow guidance → use
git-workflow - Non-Claude-Code platforms → hooks are Claude Code-specific