概要
The Hook System serves as the central entry point for managing automation within Claude Code. It provides a structured architectural framework to route users toward specific capabilities such as implementation patterns, templates, and SDK integrations. By utilizing hooks—scripts that auto-execute at specific lifecycle events like UserPromptSubmit or PreToolUse—developers can achieve 100% reliability in automation, far exceeding standard tool selection rates. This skill is essential for anyone looking to build robust gates, automated side effects, or complex multi-phase workflows directly into their AI-driven development environment.