LogoClawIndex
CasesSkillsAbout
LogoClawIndex

claude-code-hooks - Claude Code hooks implementation guide

Implement automated hooks that execute scripts in response to Claude Code events

Tags

Updated: 2026-03-11
automationhookseventsworkflowscriptsvalidationcustomization

Capabilities

execute bash commandrun TypeScript scripthandle hook eventsvalidate tool use

Typical Inputs

session_idtranscript_pathcwd

Typical Outputs

stdout JSONexit codetranscript

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

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.