/hook-development
適用於使用者要建立 hook、新增 PreToolUse/PostToolUse/Stop hook、驗證工具使用、實作 prompt 型 hook、使用 ${CLAUDE_PLUGIN_ROOT},或阻擋危險指令時。
- 安裝次數
- 7400
- 專案星數
- 4.6 萬 ★
- 授權
- Apache-2.0
- 專案更新
- 2026-11-02
怎麼裝
npx skills add https://github.com/anthropics/claude-plugins-official --skill hook-development安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。
原文
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.