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
Claude Codehooksguardrailsautomationtool executionsafety rulespermission controlcontext injection

Capabilities

Create hook configuration filesDebug hook execution issuesAudit configured hooksBlock dangerous shell commands

Typical Inputs

Claude Code settings.jsonHook event JSON on stdinProject directory path

Typical Outputs

Hook configuration filesPermission decision JSON (allow/deny/ask)Context injection text

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.