Developing Hooks

Guides development of Claude Code plugin hooks, including prompt-based and command hooks, hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification), matchers, output formats, and security practices. Activates when the user asks to create a hook, add event-driven automation, validate tool use, implement prompt-based hooks, block dangerous commands, or configure hooks.json.

jawhnycooke affa059 11 files · 62.7 KB Updated

File contents

jawhnycooke/claude-plugins/tree/main/plugins/plugin-dev/skills/hook-development commit affa05962b

Frequently asked questions

npx skillmds@latest add jawhnycooke/developing-hooks