pretooluse-bash-guard-prose-false-positive
Installation
SKILL.md
PreToolUse Bash Guards Match Prose, Not Just Commands
Problem
A PreToolUse hook on the Bash matcher receives the entire command string. That string
routinely contains English: commit messages, gh issue create bodies, heredocs, comments.
A guard written as re.search(r"\bgh\s+issue\s+create\b", cmd) therefore fires on
git commit -F- <<'EOF'
Three issues were created with `gh issue create --body-file -`.
EOF
which invokes no such command. Worse, a guard that blocks a forbidden phrase will block the document that quotes the phrase to forbid it — so the fix for the anti-pattern cannot be committed.