
Hook Development
Helps you build event-driven automation for Claude Code using hooks that trigger on tool use, session events, and stop conditions. The real value is in the prompt-based hooks API, which lets you use LLM reasoning to validate tool calls or enforce policies instead of writing brittle bash scripts. You can block dangerous file writes, verify task completion before stopping, or inject project context on session start. The documentation clearly separates the plugin hooks.json format (which needs a wrapper object) from the settings format (which doesn't), something easy to mess up. If you're building plugins or want to add guardrails to your workflow, this covers the full hook lifecycle with practical examples for each event type.
- skills.sh installs
- 188
- GitHub stars
- 476
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aiskillstore/marketplace --skill hook-development --agent claude-codeInstalls into .claude/skills of the current project.
Files
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:
{
"type": "prompt",
"prompt": "Evaluate if this tool use is appropriate: $TOOL_INPUT",
"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 for deterministic checks:
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh",
"timeout": 60
}
Sponsors
Details
- Repository
- github.com/aiskillstore/marketplace
- Categories
- Frontend Development, Backend & APIs, AI & Agent Building, Automation & Workflows
- First seen
- Jun 3, 2026
More from aiskillstore/marketplace
All 37- Command Development186
- Plugin Structure184
- Web Artifacts Builder180
- Theme Factory174
- Internal Comms173
- Mcp Integration173
- Pdf169
- Writing Hookify Rules168
- Plugin Settings167
- Template Skill165
- Slack Gif Creator141
- Brand Guidelines137
- Claude Opus 4 5 Migration125
- Agent Skill Trust Check
- Alibaba Java Coding Guidelines Skill
- Diasporic Intelligence
- Example Skill
- Find Outlook Emails
- Manage Linkedin Network
- Network And Relationship Manager
- Organize Google Contacts
- Schedule With Google Calendar
- Schedule With Outlook
- Skill Creator1.1K