Favicon of Hook Development

Hook Development Skill

AI Agent SkillPythonOpen source

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-code.

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-code. 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.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
100/100

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-code

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use Hook Development Skill

  • Use it for developers using claude-code.

Built with

PythonCopy skill directory

Editorial notes

Source

  • Creator: anthropics
  • Repository: anthropics/claude-code
  • 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.

Share:

Stars
137,768
Forks
22,220
Last commit
9 days ago
Repository age
1 year
License
Unknown

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to Hook Development