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.
工作流
- Identify unwanted behavior.
- Determine the relevant tool and event type.
- Write a regex pattern and condition (if necessary).
- Create a `.claude/hookify.{name}.local.md` file.
- 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质量评分
类似扩展
使用我的浏览器
100当工作依赖于用户实时浏览器会话或可见的渲染状态,而不是静态抓取时使用,尤其是在浏览器调试上下文或 DevTools 选择的元素或请求、登录仪表板或 CMS 流程、localhost 应用、上传、下载、媒体检查、DOM 或 iframe 检查、Shadow DOM,或看起来像软 404、身份验证墙、反机器人检查或速率限制的浏览器故障时。
Github
100Use gh for GitHub issues, PR status, CI/logs, comments, reviews, releases, and API queries.
Openclaw Testing
100Choose, run, rerun, or debug OpenClaw tests, CI checks, Docker E2E lanes, release validation, and the cheapest safe verification path.
Lean Ctx
100AI 代理的上下文运行时 — 包含 59 个 MCP 工具、10 种读取模式、95+ 种 shell 模式、支持 18 种语言的 tree-sitter AST。将 LLM 上下文压缩高达 99%。用于读取文件、运行 shell 命令、搜索代码或探索目录。如果不存在,则自动安装。
Project Session Manager
100Worktree-first dev environment manager for issues, PRs, and features with optional tmux sessions
Public Google Drive
100无需 OAuth 即可创建公开的 Google Docs 或 Google Sheet 文件。使用此技能创建和编辑 Google Docs 和 Sheets,无需登录 Google。文档可通过共享链接查看。首次使用时自动注册。