Registry / anthropics

anthropics/claude-plugins-official/hook-development

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 advance

Agent skill · version 0.0.0-main.1794313474.gdceb15d · from anthropics/claude-plugins-official

Install

npx yarkr-cli add skill:anthropics/claude-plugins-official/hook-development

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:anthropics/claude-plugins-official/hook-development
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:anthropics/claude-plugins-official/hook-development

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:anthropics/claude-plugins-official/hook-development

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.