cc-hook - Create, Manage & Debug Claude Code Hooks
Create, manage, and debug Claude Code hooks — user-defined commands that run at specific lifecycle events for deterministic control over tool execution, permissions, and context injection.
Tags
Updated: 2026-06-30Capabilities
What this skill does
- Create hook configuration files
- Debug hook execution issues
- Audit configured hooks
- Block dangerous shell commands
- Inject project context safely
- Auto-format edited files
- Auto-approve permission requests
- Configure hook event matchers
Inputs
- Claude Code settings.json
- Hook event JSON on stdin
- Project directory path
- Hook type and event specification
Outputs
- Hook configuration files
- Permission decision JSON (allow/deny/ask)
- Context injection text
- Error feedback messages on stderr
Requirements
- Claude Code installed
- Write access to project settings.json
- Claude Code v2.1.85+ for conditional hooks (if field)
- Access to reference documentation files
