‹ The Index

Hook Development

skill ✓ Anthropic · official

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDEPLUGINROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.

Works with: Claude Code, Cursor, Codex CLI

Category: Dev Tools & CI — see all ranked ›

Work: Agent configuration

Who it is for: Agent operator

Security audit

Not scanned yet. We audit npm-published capabilities for known advisories, install-time scripts and permission surface; this one has no npm package we can resolve, or has not reached the queue.

source ↗  ·  skill:anthropics/hook-development

Already running this? npx tashan-cli doctor checks your whole config against the Index — how it works ›