What problem does it solve? Writing hookify rules by hand is error-prone: invalid regex, wrong event names, or mixing the two matching modes silently breaks enforcement. This Skill generates and validates .claude/hookify.<name>.local.md rule files so a prose guideline becomes a correctly structured, pattern-matched hook message. ## Core Features & Use Cases - Rule scaffolding: scripts/scaffold_rule.py emits a complete rule (YAML frontmatter plus message body) from parameters, in simple mode (single regex pattern) or advanced mode (AND-ed conditions on fields like file_path and new_text). - Rule validation: scripts/validate_rule.py checks required keys, event/action/operator enums, kebab-case names, pattern-vs-conditions mutual exclusion, and regex compilability, using only the Python standard library. - Self-test gate: scripts/check.sh runs a green/red determinism check over the schema, examples, and scaffold-validate round-trips. - Use Case: Warn whenever an API key is written into a .env file by scaffolding a file-event rule with conditions file_path matches \.env$ and new_text contains API_KEY, then validating it before installing it under .claude/. ## Quick Start Ask the assistant to scaffold and validate a hookify rule that warns when a Bash command matches a dangerous pattern such as recursive deletes.