block-destructive-commands
87 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
Best-effort guard against destructive commands, read as parsed commands (bash -c and cd chains included, echo excluded): rm -rf on absolute, home ($HOME/~) or root-adjacent paths (and PowerShell Remove-Item -Recurse); git push --force (not --force-with-lease), reset --hard, clean -f; kubectl delete; terraform destroy; aws s3 rm --recursive / rb --force; dropdb; helm uninstall/delete; docker volume rm/prune and system prune; gcloud ... delete; find -delete / -exec rm; shred; truncate; wipefs -a.…
What this skill can do
Changes files outside its own folder
Runs commands on your computer
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'block-destructive-commands' ] || [ -L ~/.agents/skills/'block-destructive-commands' ]; then echo 'A skill folder named block-destructive-commands already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/open-coder-ai/chock' "$d" && git -C "$d" checkout --quiet '9fe0a59174384230f02faeecbe4a837ff3e96b9a' -- '.agents/policies/block-destructive-commands/skills/block-destructive-commands' && mkdir -p ~/.agents/skills && cp -R "$d"/'.agents/policies/block-destructive-commands/skills/block-destructive-commands' ~/.agents/skills/'block-destructive-commands' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'block-destructive-commands' ~/.claude/skills/'block-destructive-commands' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/open-coder-ai/chock/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-12 | 9fe0a59 | 87 |
| 2026-11-08 | 936cf91 | 87 |