hook-authoring
Installation
SKILL.md
Workflow Routing (SYSTEM PROMPT)
When user requests creating a new hook: Examples: "create a hook for X", "add a hook", "make a SessionStart hook" -> READ: ${PAI_DIR}/skills/hook-authoring/workflows/create-hook.md -> EXECUTE: Follow hook creation workflow
When user needs to debug hooks: Examples: "hook not working", "debug hooks", "hook troubleshooting" -> READ: ${PAI_DIR}/skills/hook-authoring/workflows/debug-hooks.md -> EXECUTE: Run debugging checklist
Claude Code Hook Events
SessionStart
When: New Claude Code session begins Use Cases: Load context, initialize state, capture metadata
Related skills