营销与写作

writing-hookify-rules

anthropics/clau…official

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.

  • 6988 次安装
  • 4.5万 星标
  • 收录于

安装命令

npx skills add https://github.com/anthropics/claude-plugins-official --skill writing-hookify-rules

SKILL.md

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

---
name: rule-identifier
enabled: true
event: bash|file|stop|prompt|all
pattern: regex-pattern-here
---