← INDEX / Tags
TAG · 1 prompts
#pretooluse
Explore public prompts for pretooluse. Narrow the topic by medium or change the order.
Showing 1–1 of 1 · Page 1 / 1
Free01
TUTORIALClaude Code
Karan Bansal2026-06-08
Claude Code Hook Recipe: Block Dangerous Bash with PreToolUse
A PreToolUse Bash hook that intercepts destructive commands like rm -rf, fork bombs, and curl|sh before the AI executes them—a last line of defense that holds even against --dangerously-skip-permissions.
Intermediate