claude-hook-authoring

Installation
SKILL.md
Contains Hooks

This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.

Claude Hook Authoring

Create event hooks that automate workflows, validate operations, and respond to Claude Code events.

Hook Types

Two hook execution types:

Type Best For Example
prompt Complex reasoning, context-aware validation LLM evaluates if action is safe
command Deterministic checks, external tools, performance Bash script validates paths

Prompt hooks (recommended for complex logic):

{
  "type": "prompt",
  "prompt": "Evaluate if this file write is safe: $TOOL_INPUT. Check for sensitive paths, credentials, path traversal. Return 'allow' or 'deny' with reason.",
Related skills
Installs
5
GitHub Stars
26
First Seen
Jan 22, 2026