Hook Development

Canonical guide to authoring Claude Code hooks, both prompt-based and command-based. PROACTIVELY activate for: (1) creating a hook, (2) adding PreToolUse or PostToolUse hooks, (3) validating tool use, (4) implementing prompt-based hooks, (5) blocking dangerous commands, (6) event-driven automation, (7) configuring hooks.json, (8) using ${CLAUDE_PLUGIN_ROOT}, (9) hook matchers and filtering, (10) debugging hooks that do not fire. Provides: hooks.json schema, event reference, security guidance, and examples.

josiahsiegel Updated

File contents

josiahsiegel/claude-plugin-marketplace/tree/main/plugins/plugin-master/skills/hook-development commit 466acc7ccd

Frequently asked questions

npx skillmds@latest add josiahsiegel/hook-development