claude-code-hooks - Claude Code hooks implementation guide
Implement automated hooks that execute scripts in response to Claude Code events
Tags
Updated: 2026-03-11Typical Inputs
Typical Outputs
What this skill does
- execute bash command
- run TypeScript script
- handle hook events
- validate tool use
- format code
- block commands
- inject context
- setup environment
- match tool patterns
Inputs
- session_id
- transcript_path
- cwd
- permission_mode
- hook_event_name
- tool_name
- tool_input
- tool_response
- hook configuration
- hook script
Outputs
- stdout JSON
- exit code
- transcript
- Claude feedback
- decision result
Requirements
- Bash shell
- TypeScript runtime
- script execute permissions
- .claude/settings.json configuration
