← LeaderboardThe Skill Leaderboard
git-guardrails-claude-code
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.
Published by mattpocock ↗mattpocock/skillsTry your first task
git-guardrails-claude-code
Start a fresh conversation. Replace the highlighted placeholders.
Use git-guardrails-claude-code to set up dangerous-git-command guardrails for [project or all projects]; ask me to choose the scope and any blocked-pattern changes before editing settings.
Required inputs
- [project or all projects]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗