commands/hookify.md
Create hook rules to prevent unwanted Claude Code behaviors by analyzing conversation patterns or explicit user instructions.
/hookify [description of behavior to prevent]
If no arguments are provided, analyze the current conversation to find behaviors worth preventing.
conversation-analyzer agent to find:
Show the user:
For each approved rule, create a file at .claude/hookify.{name}.local.md:
---
name: rule-name
enabled: true
event: bash|file|stop|prompt|all
action: block|warn
pattern: "regex pattern"
---
Message shown when rule triggers.
Report created rules and how to manage them with /hookify-list and /hookify-configure.