LogoClawIndex
CasesSkillsAbout
LogoClawIndex

Hook Development - Create and configure Claude Code hooks

Provides guidance for creating Claude Code plugin hooks that validate operations, enforce policies, load context, and automate workflows.

Tags

Updated: 2026-10-01
Claude Codeplugin hooksevent-driven automationtool validationprompt-based hookscommand hooks

Capabilities

Configure hook eventsValidate tool callsReact to tool resultsEnforce completion standards

Typical Inputs

Hook configuration filesHook event JSONTool inputs and results

Typical Outputs

Hook decisionsTranscript messagesUpdated tool inputs

What this skill does

  • Configure hook events
  • Validate tool calls
  • React to tool results
  • Enforce completion standards
  • Load session context
  • Run deterministic checks
  • Use prompt-based decisions
  • Persist session variables

Inputs

  • Hook configuration files
  • Hook event JSON
  • Tool inputs and results
  • User prompts or stop reasons
  • Plugin and project paths

Outputs

  • Hook decisions
  • Transcript messages
  • Updated tool inputs
  • System messages
  • Session environment variables
  • Exit statuses

Requirements

  • Claude Code hook environment
  • Prompt-capable model for prompt hooks

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.