What problem does it solve?
Writing Hookify rules can be error-prone because the rule file must follow a specific YAML frontmatter schema and a correct event/pattern structure for Claude to trigger reliably.
Core Features & Use Cases
- Rule authoring guidance: Defines the required frontmatter fields (name, enabled, event, pattern) and the expected body message format.
- Safety-oriented guardrails: Teaches how to write patterns that are specific enough to avoid overly broad matches, with guidance on escaping regex and preventing false positives.
- Multi-condition rule support: Explains how to use advanced conditions with operators like regex_match, contains, equals, and not_contains so rules trigger only when all criteria match.
- File placement and naming conventions: Documents where to store rules in .claude and how to name local rule files for consistent loading.
Quick Start
Ask the AI to create a Hookify rule that warns (or blocks) when a bash command contains rm -rf and to include clear, user-facing guidance in the message body.