Destructive Op Guard

Design or audit a PreToolUse hook that intercepts high-blast-radius shell operations (DROP TABLE, rm -rf, git push --force to main, kubectl delete, docker system prune, etc.) and requires explicit authorization before they execute. Use when adding a safety hook to a Claude Code project, reviewing an existing hook's coverage, or after an incident where an autonomous agent ran an irreversible operation unchecked.

m2ai-portfolio Updated 4 repo stars

File contents

m2ai-portfolio/m2ai-skills-pack commit 1ee3e50bed

Frequently asked questions

npx get-skill add m2ai-portfolio/destructive-op-guard