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…
Skill by HelixDevelopment
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/helixdevelopment-hook-development
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
Hook Development- Description
- 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.
- License
- MIT
- Instructions
- 708 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "Hook Development" does not match folder "hook-development"
- body: 708 lines (spec recommends under 500)
Files (11)
- SKILL.md
- load-context.sh · examples/
- validate-bash.sh · examples/
- validate-write.sh · examples/
- advanced.md · references/
- migration.md · references/
- patterns.md · references/
- README.md · scripts/
- hook-linter.sh · scripts/
- test-hook.sh · scripts/
- validate-hook-schema.sh · scripts/
SKILL.md (first lines)
# 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: $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:
```json
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh",
"timeout": 60
}
```
**Use for:**
- Fast deterministic validations
- File system operations
- External tool integrations
- Performance-critical checks
## Hook Configuration Formats
### Plugin hooks.json Format
**For plugin hooks** in `hooks/hooks.json`, use wrapper format:
```json
{
"description": "Brief explanation of hooks (optional)",
"hooks": {
"PreToolUse": [...],
"Stop": [...],
"SessionStart": [...]
}
}
```
**Key points:**
- `description` field is optional
- `hooks` field is required wrapper containing actual hook events
- This is the **plugin-specific format**
**Example:**
```json
{
"description": "Validation hooks for code quality",
"hooks": {
"PreToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/validate.sh"
}
]
}
]
}
}
```
### Settings Format (Direct)
**For user settings** in `.claude/settings.json`, use direct format:
```json
{
"PreToolUse": [...],
"Stop": [...],
"SessionStart": [...]
}
```
**Key points:**
- No wrapper - events directly at top level
- No description field
- This is the **settings format**
**Important:** The examples below show the hook event structure that goes inside either format. For plugin hooks.json, wrap these in `{"hooks": {...}}`.
## Hook Events
### PreToolUse
Execute before any tool runs. Use to approve, deny, or modify tool calls.From HelixDevelopment/agent, MIT.
More from HelixDevelopment/agent
- 0.468score
documentation
HelixDevelopment
Write effective technical documentation including READMEs, API docs, architecture decisions, and inline code documentation.
SkillCFreshness: CClaude Code +9 - 0.406score
design-postgres-tables
HelixDevelopment
Comprehensive PostgreSQL-specific table design reference covering data types, indexing, constraints, performance patterns, and advanced features
SkillDFreshness: DClaude Code +9 - 0.406score
find-hypertable-candidates
HelixDevelopment
Analyze an existing PostgreSQL database to identify tables that would benefit from conversion to TimescaleDB hypertables
SkillDFreshness: DClaude Code +9 - 0.406score
migrate-postgres-tables-to-hypertables
HelixDevelopment
Comprehensive guide for migrating PostgreSQL tables to TimescaleDB hypertables with optimal configuration and performance validation
SkillDFreshness: DClaude Code +9 - 0.406score
setup-timescaledb-hypertables
HelixDevelopment
Step-by-step instructions for designing table schemas and setting up TimescaleDB with hypertables, indexes, compression, retention policies, and continuous…
SkillDFreshness: DClaude Code +9 - 0.406score
azure-devops
HelixDevelopment
Build and manage CI/CD pipelines with Azure DevOps.
SkillDFreshness: DClaude Code +9 - 0.406score
azure-functions
HelixDevelopment
Develop, deploy, and manage Azure Functions for serverless computing.
SkillDFreshness: DClaude Code +9 - 0.406score
azure-storage
HelixDevelopment
Work with Azure Blob, Table, Queue, and File storage.
SkillDFreshness: DClaude Code +9 - 0.403score
azure-resource-management
HelixDevelopment
Manage Azure resources effectively using CLI, Portal, Bicep, and ARM templates.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jan 15, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/HelixDevelopment/agent
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.552score
hook-development
Galaxy-Dawn
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…
SkillDFreshness: D★ 5.9KClaude Code +9 - 0.332score
Hook Development
lilinji
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…
SkillBFreshness: B★ 16Claude Code +9 - 0.264score
Hook Development
Claude-Code-Community-Ireland
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…
SkillDFreshness: D★ 11Claude Code +9 - 0.225score
hook-development
fabiano001
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…
SkillDFreshness: DClaude Code +9 - 0.220score
hook-development
Wizarck
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…
SkillDFreshness: DClaude Code +9
More from HelixDevelopment
- 0.468score
documentation
HelixDevelopment
Write effective technical documentation including READMEs, API docs, architecture decisions, and inline code documentation.
SkillCFreshness: CClaude Code +9 - 0.406score
design-postgres-tables
HelixDevelopment
Comprehensive PostgreSQL-specific table design reference covering data types, indexing, constraints, performance patterns, and advanced features
SkillDFreshness: DClaude Code +9 - 0.406score
find-hypertable-candidates
HelixDevelopment
Analyze an existing PostgreSQL database to identify tables that would benefit from conversion to TimescaleDB hypertables
SkillDFreshness: DClaude Code +9 - 0.406score
migrate-postgres-tables-to-hypertables
HelixDevelopment
Comprehensive guide for migrating PostgreSQL tables to TimescaleDB hypertables with optimal configuration and performance validation
SkillDFreshness: DClaude Code +9 - 0.406score
setup-timescaledb-hypertables
HelixDevelopment
Step-by-step instructions for designing table schemas and setting up TimescaleDB with hypertables, indexes, compression, retention policies, and continuous…
SkillDFreshness: DClaude Code +9 - 0.406score
azure-devops
HelixDevelopment
Build and manage CI/CD pipelines with Azure DevOps.
SkillDFreshness: DClaude Code +9
Cite this page
Hook Development skill. Agent Mart. https://agentmart.dev/skills/helixdevelopment-hook-development (last updated 2026-10-24)