Provides a comprehensive technical reference for the Claude Code hooks system to enable advanced workflow automation and tool validation.
This skill acts as a definitive documentation resource for the Claude Code hooks architecture as of January 2026. It guides developers through the entire lifecycle of hook events—from tool execution triggers like PreToolUse and PostToolUse to session-level events like SessionStart and SubagentStop. By providing detailed schemas for JSON inputs, configuration precedence rules, and regex-based matcher syntax, this reference empowers users to build sophisticated automation, security policies, and custom formatting scripts that integrate seamlessly with Claude's internal operations.
主な機能
01Detailed configuration hierarchy for managed, project, user, and plugin settings.
02Complete documentation of all hook events including tool, session, and subagent triggers.
03Regex and tool-specific matcher patterns for granular execution control.
0418 GitHub stars
05Guidance on implementing scoped hooks within Skills, Agents, and Slash commands.
06Full JSON input schemas for stdin communication between Claude and hook scripts.
ユースケース
01Enforcing code style and linting automatically after Claude performs file edits.
02Initializing complex repository environments and environment variables during session startup.
03Setting up automated security audits and permission blocking before sensitive bash commands execute.