writing hookify rules
Officialwriting hookify rules
What it does
- Use kebab-case: warn-dangerous-rm, block-console-log
- Be descriptive and action-oriented
- Start with verb: warn, prevent, block, require, check
- true: Rule is active
- false: Rule is disabled (won't trigger)
- Can toggle without deleting rule
- bash: Bash tool commands
Requirements & configuration
- Start with verb: warn, prevent, block, require, check
- You're adding an API key to a .env file. Ensure this file is in .gitignore!
- Special characters need escaping:
- YAML quoted strings: "pattern" requires double backslashes \\s
- hookify.require-tests.local.md
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
writing hookify rules FAQ
What does the writing hookify rules skill do?
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns. Use kebab-case: warn-dangerous-rm, block-console-log Be descriptive and action-oriented
What does writing hookify rules require?
Start with verb: warn, prevent, block, require, check You're adding an API key to a .env file. Ensure this file is in .gitignore! Special characters need escaping: YAML quoted strings: "pattern" requires double backslashes \\s hookify.require-tests.local.md
How do I install writing hookify rules?
Run: npx -y skills add https://github.com/anthropics/claude-code --skill writing hookify rules --agent claude-code — the source lives at github.com/anthropics/claude-code.
Maintain writing hookify rules?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/anthropics-claude-code-writing-hookify-rules?ref=badge) npx agentictools info skills/anthropics-claude-code-writing-hookify-rules The second line is the CLI lookup for this page — handy in READMEs and docs.