hook-development Skill
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, S Published by anthropics in claude-plugins-official.
What is hook-development Skill?
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, S Published by anthropics in claude-plugins-official. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Developers using claude-plugins-official
Technical details
- Install or run with Copy skill directory
When to use hook-development Skill
- Use it for developers using claude-plugins-official.
Built with
Editorial notes
Source
- Creator: anthropics
- Repository: anthropics/claude-plugins-official
- Skill file: plugins/plugin-dev/skills/hook-development/SKILL.md
What it does
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, S
Skill instructions
Hook Development for Claude Code Plugins Overview Hooks are event-driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows. Key capabilities: - Validate tool calls before execution (PreToolUse) - React to tool results (PostToolUse) - Enforce completion standards (Stop, SubagentStop) - Load project context (SessionStart) - Automate workflows across the development lifecycle Hook Types Prompt-Based Hooks (Recommended) Use LLM-driven decision making for context-aware validation: json { "type": "prompt", "prompt": "Evaluate if this tool use is appropriate: $TOOLINPUT", "timeout": 30 } Supported events: Stop, SubagentStop, UserPromptSubmit, PreToolUse Benefits: - Context-aware decisions based on natural language reasoning - Flexible evaluation logic without bash scripting - Better edge case handling - Easier to maintain and extend Command Hooks Execute bash commands
Explore related resources
Frequently asked questions
What is hook-development?
hook-development is a open-source AI agent skill with Copy skill directory. 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.
Who is hook-development best for?
hook-development is best for reusing agent instructions, scripts, and references.
How do I install hook-development?
Install or run hook-development using Copy skill directory. Check hook-development for the latest setup command.
Is hook-development actively maintained?
hook-development may need a closer maintenance check before production use.
Auto-fetched from GitHub.