What problem does it solve?
This skill helps you create, configure, and debug Claude Code hooks so you can automate validation, logging, notifications, context injection, and stop conditions without changing core behavior.
Core Features & Use Cases
- Hook Design Guidance: Choose the right event, matcher, and hook type for the job, whether you need to block unsafe commands or react after a tool finishes.
- Command vs Prompt Decisions: Decide when to use fast shell-based hooks for deterministic tasks and when to use prompt-based hooks for semantic checks and reasoning.
- Safety and Reliability: Apply timeout settings, JSON validation, permission checks, and stop-hook loop prevention to keep hook workflows stable.
- Use Case: Set up a PreToolUse hook to block destructive git commands, a PostToolUse hook to format code after edits, or a SessionStart hook to inject project context automatically.
Quick Start
Ask for a Claude Code hook configuration for your specific event, matcher, and goal, and include whether you want a command hook or a prompt hook.