跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Writing Hookify Rules

技能 活跃

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.

目的

To guide users in creating, configuring, and understanding hookify rules for automated code analysis and intervention.

功能

  • Define custom rules with YAML frontmatter
  • Support for multiple rule event types (bash, file, stop, prompt)
  • Advanced rule conditions with various matching operators
  • Guidance on writing effective rule patterns and messages

使用场景

  • When a user needs to create a new hookify rule.
  • When a user requires guidance on hookify rule syntax and patterns.
  • When a user asks to configure or add a hookify rule to their project.

非目标

  • Automatically applying rules without user definition.
  • Managing hookify rules for tools other than those specified.
  • Providing a UI for rule management.

工作流

  1. Identify unwanted behavior.
  2. Determine the relevant tool and event type.
  3. Write a regex pattern and condition (if necessary).
  4. Create a `.claude/hookify.{name}.local.md` file.
  5. Test the rule immediately.

实践

  • Rule definition
  • Pattern matching
  • Code analysis
  • Workflow automation

先决条件

  • Claude Code environment
  • Project with a `.claude/` directory for rule storage

Trust

  • warning:Issues AttentionOpen issues (9462) significantly outweigh closed issues (22831) in the last 90 days, suggesting slow maintainer response.

Versioning

  • warning:Release ManagementThe manifest version is '0.1.0' and has not changed, indicating a lack of versioned releases for this specific skill.

安装

请先添加 Marketplace

/plugin marketplace add anthropics/claude-code
/plugin install hookify@claude-code-plugins

质量评分

75 /100
2 days ago 分析

信任信号

最近提交3 days ago
星标123.1k
许可证All rights reserved
状态
查看源代码