Pocock Git Guardrails

Use when working in a git repo and the user wants to prevent destructive git operations — says "add git safety hooks", "block git push/reset", "set up git guardrails", or asks to protect against accidental pushes/force-resets/branch deletes. Installs a PreToolUse hook that blocks dangerous git commands (push, reset --hard, clean -f, branch -D, checkout ., restore .) before they execute.

danmestas ac5e775 2 files · 2.9 KB Updated

File contents

danmestas/wardrobe/tree/main/skills/pocock-git-guardrails commit ac5e775660

Frequently asked questions

npx skillmds@latest add danmestas/pocock-git-guardrails