git-safety-hooks
Installation
SKILL.md
Git Safety Hooks
Sets up PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
Blocked Commands
git push(all variants including--force)git reset --hardgit clean -f/git clean -fdgit branch -Dgit checkout ./git restore .
When blocked, Claude sees message that it doesn't have authority to run these commands.
Installation
1. Ask Scope
Ask user: install for this project (.claude/settings.json) or all projects (~/.claude/settings.json)?