Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

writing-hookify-rules

Official · Anthropic

Installation

Terminal

git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git /tmp/writing-rules-src
cp -r /tmp/writing-rules-src/plugins/hookify/skills/writing-rules ~/.claude/skills/writing-rules

Or .claude/skills/writing-rules to scope it to one repo.

Summary

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.

Writing Hookify Rules Overview Hookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in .claude/hookify.{rule-name}.local.md files. Rule File Format Basic Structure markdown --- name: rule-identifier enabled: true event: bash|file|stop|prompt|all pattern: regex-pattern-here --- Message to show Claude when this rule triggers. Can include markdown formatting, warnings, suggestions, etc. Frontmatter Fields name (required): Unique identifier for the rule - Use kebab-case: warn-dangerous-rm, block-console-log - Be descriptive and action-oriented - Start with verb: warn, prevent, block, require, check enabled (required): Boolean to activate/deactivate - true: Rule is active - false: Rule is disabled (won't trigger) - Can toggle without deleting rule event (required): Which hook event to trigger …

Questions

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.

Claude Code: ~/.claude/skills/writing-rules. Codex: ~/.agents/skills/writing-rules. Antigravity: ~/.gemini/config/skills/writing-rules. Use .claude/skills or .agents/skills inside a repo to scope it to one project.

More from anthropics/claude-plugins-official

Name
  1. access
  2. configure
  3. access
  4. configure
  5. claude-automation-recommender
  6. claude-md-improver
  7. claude-security
  8. cardputer-buddy
Buy me a coffee