LogoClawIndex
CasesSkillsAbout
LogoClawIndex

creating-hooks - Create event-driven Claude Code hooks

Guides implementation of Claude Code hooks for automation, validation, linting, and context injection.

Tags

Updated: 2026-09-30

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Select hook events
  • Configure hook matchers
  • Write hook scripts
  • Set exit code behavior
  • Use hook environment variables
  • Test hook execution

Inputs

  • Target hook event
  • Hook type
  • Matcher pattern
  • Hook command or script
  • Settings file location
  • Validation requirements

Outputs

  • Hook script files
  • Hook settings configuration
  • Hook validation results
  • Hook execution logs

Requirements

  • Claude Code environment
  • Read permission
  • Write permission
  • Edit permission
  • Bash permission

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
automation
validation
linting
context injection
Select hook events
Configure hook matchers
Write hook scripts
Set exit code behavior
Target hook event
Hook type
Matcher pattern
Hook script files
Hook settings configuration
Hook validation results