Logo
Agent Skills Guide

Hook Development

published 2026/02/01

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 ${CLAUDE_PLUGIN_ROOT}", "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.

📦 Install Skill

Command line install

Install directly with the `skills` CLI.

npx skills add aRustyDev/ai/context/skills/meta-hook-dev-dev

Local download

Download only this skill directory.

Download Hook Development only
File Explorer
0 files
No file selected
readonly

Select a file to view its content