Разработка хуков для Claude Code

engineering

hook-developer is a Claude Code skill that serves as a complete reference for building Claude Code hooks, covering input/output schemas, settings.json registration, and testing patterns. It documents all 11 hook event types — PreToolUse, PostToolUse, UserPromptSubmit, PermissionRequest, SessionStart, SessionEnd, Stop, SubagentStart, SubagentStop, PreCompact, and Notification — specifying which can block execution and which are observe-only. Each hook entry includes precise JSON schemas with field-level details such as tool_response (not tool_result), permissionDecision, and critical warnings like checking stop_hook_active to avoid infinite loops. Developers use it when writing new hooks, debugging input/output formats, automating permission dialogs, or injecting context into Claude Code sessions.