writing hookify rules
Define custom rules to monitor, warn, or block Claude's bash commands and file edits using regex and YAML.
Install
npx skills add https://github.com/anthropics/claude-code --skill 'Writing Hookify Rules'Stats
| Total installs | 3,218 |
| Weekly installs | – |
| GitHub stars | 83.6K |
| First seen | – |
| Source | @anthropics/claude-code |
Summary
- Supports four event types (bash commands, file edits, agent stop, user prompts) plus an "all" catch-all, each with regex or multi-condition matching
- Rules use markdown files with YAML frontmatter stored in .claude/hookify.{name}.local.md; changes take effect immediately on next tool use
- Two matching modes: simple pattern field for single-condition rules, or advanced conditions array for multi-field logic with operators like regex_match, contains, equals, and starts_with
- Actions default to warn (show message, allow operation) or can be set to block (prevent operation or stop session)
- Includes regex pattern guide with common metacharacters, escaping rules, and examples for detecting dangerous commands, debug code, security risks, and sensitive files
Tags
Related skills
| Skill | Installs | vs writing hookify rules |
|---|---|---|
| defi-protocol-templates | 3,347 | +129 |
| firebase-data-connect | 3,445 | +227 |
| solana-dev | 3,037 | -181 |
| clerk-setup | 2,925 | -293 |
| postgres-patterns | 2,387 | -831 |
FAQ
- How many installs does writing hookify rules have?
- writing hookify rules has 3,218 total installs and – installs this week.
- Where is writing hookify rules hosted?
- writing hookify rules is published by @anthropics/claude-code at https://github.com/anthropics/claude-code.
- How many GitHub stars does writing hookify rules have?
- writing hookify rules has 83.6K GitHub stars.
- When was writing hookify rules first indexed?
- OrangeBot.AI first indexed writing hookify rules on –.
- How do I install writing hookify rules?
- Run: npx skills add https://github.com/anthropics/claude-code --skill 'Writing Hookify Rules'