Complete guide for writing Claude Code and SDK hooks. Use when creating hooks for tool validation, logging, context injection, or workflow automation. Covers security patterns, performance optimization, scope selection, and testing methodology.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
modules/hook-types.mdmodules/performance-guidelines.mdmodules/scope-selection.mdmodules/sdk-callbacks.mdmodules/security-patterns.mdmodules/testing-hooks.mdscripts/README.mdscripts/hook_validator.py