LogoClawIndex
CasesSkillsAbout
LogoClawIndex

Hook Development - Develop event-driven Claude Code hooks

Create and configure prompt-based or command hooks for Claude Code events to validate operations, enforce policies, load context, and automate workflows.

Tags

Updated: 2026-10-01

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Create prompt-based hooks
  • Create command hooks
  • Configure hook events
  • Validate tool calls
  • React to tool results
  • Enforce completion standards
  • Load session context
  • Persist environment variables
  • Apply tool matchers
  • Validate hook inputs

Inputs

  • Hook event configuration
  • Hook input JSON
  • Tool name
  • Tool input
  • Tool result
  • User prompt
  • Stop reason
  • Plugin directory path

Outputs

  • Hook decisions
  • System messages
  • Transcript output
  • Updated tool input
  • Environment variables
  • Exit statuses

Requirements

  • Claude Code
  • Claude Code plugin environment
  • JSON hook configuration support
  • Command execution permissions
  • jq for shell validation examples

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
plugin hooks
event automation
tool validation
prompt hooks
command hooks
security
Create prompt-based hooks
Create command hooks
Configure hook events
Validate tool calls
Hook event configuration
Hook input JSON
Tool name
Hook decisions
System messages
Transcript output