Safe Shell

Block destructive Bash commands before Claude executes them — even in --dangerously-skip-permissions (YOLO) mode where Anthropic's own permission prompts are bypassed. Use this skill when the user runs /claude-papercuts:safe-shell, asks what safe-shell blocks, or wants to know why a command they expected was refused. A PreToolUse hook scans every Bash tool call against a list of irreversible patterns (rm -rf against / or ~, git push --force, git reset --hard HEAD~, mkfs, dd to /dev/sda, curl-pipe-bash, fork bombs) and refuses them with a structured explanation. Block decisions are visible to Claude so it can re-plan.

dhruba-datta 579f969 3 files · 15.1 KB Updated

File contents

dhruba-datta/claude-papercuts/tree/main/skills/safe-shell commit 579f969a0e

Frequently asked questions

npx skillmds@latest add dhruba-datta/safe-shell