SKILL

Hook Development

适用于创建 hook、添加 PreToolUse/PostToolUse/Stop hook、验证工具使用、实现基于提示词的 hook、使用 ${CLAUDE_PLUGIN_ROOT}、设置事件驱动自动化或阻止危险命令等请求,也适用于涉及 PreToolUse、PostToolUse、Stop、SubagentStop、SessionStart、SessionEnd、UserPromptSubmit、PreCompact、Notification 等事件的情形。重点介绍 Claude Code 插件 hook 的创建、实现及高级提示词 hook API。

译文已校对
查看英文原文

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.

适用对象:软件开发与测试。自动收录 · 待核查。

在 Claude Code 中使用

该组合的专门教程待补充,尚未核实适配。

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

选择已有说明的 AI 工具,或在页面加载后保存待办及提出教程请求。

查看原作者说明 ↗