What problem does it solve?
This skill resolves the complexity of managing and troubleshooting event-driven hooks in Claude Code, helping you identify why a hook fails, how to inspect its input, and how to control its execution flow.
Core Features & Use Cases
- Event Inspection: Provides a standardized logging template to capture and inspect JSON input from any of the 18 hook events.
- Flow Control: Explains the critical exit code logic, specifically how to use exit 2 to block tool execution or prompt submission.
- Use Case: If a custom hook is failing to trigger or blocking actions unexpectedly, use this skill to implement the logging template and verify the exact JSON payload received by the hook.
Quick Start
Ask the hook-debugger to explain how to debug a specific hook event like PreToolUse or how to implement the standard logging template in a new script.