This skill provides comprehensive guidance for creating and implementing Claude Code plugin hooks, with a focus on the advanced prompt-based hooks API. Use it when the user asks to create or add hooks (PreToolUse, PostToolUse, Stop, etc.), validate tool use, implement prompt-based hooks, use `${CLAUDE_PLUGIN_ROOT}`, set up event-driven automation, or block dangerous commands; also if hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification) are mentioned.