LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-30

Capabilities

Typical Inputs

Typical Outputs

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
Claude Code
hooks
guardrails
automation
tool execution
safety rules
permission control
context injection
Create hook configuration files
Debug hook execution issues
Audit configured hooks
Block dangerous shell commands
Claude Code settings.json
Hook event JSON on stdin
Project directory path
Hook configuration files
Permission decision JSON (allow/deny/ask)
Context injection text