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
Claude Codehooksautomationvalidationlintingcontext injection

Capabilities

Select hook eventsConfigure hook matchersWrite hook scriptsSet exit code behavior

Typical Inputs

Target hook eventHook typeMatcher pattern

Typical Outputs

Hook script filesHook settings configurationHook validation results

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.