hook development
Create event-driven hooks for Claude Code to automate workflows, enforce security, and validate tool calls.
Install
npx skills add https://github.com/anthropics/claude-code --skill 'Hook Development'Stats
| Total installs | 3,744 |
| Weekly installs | – |
| GitHub stars | 83.6K |
| First seen | – |
| Source | @anthropics/claude-code |
Summary
- Supports 9 hook events (PreToolUse, PostToolUse, Stop, SubagentStop, UserPromptSubmit, SessionStart, SessionEnd, PreCompact, Notification) for validation, policy enforcement, and workflow automation
- Prompt-based hooks recommended for context-aware decisions; command hooks for deterministic checks with bash scripting
- Two configuration formats: plugin hooks/hooks.json (wrapped) and user .claude/settings.json (direct), with tool name matchers supporting exact, regex, and wildcard patterns
- Hooks execute in parallel at session start; requires session restart to load configuration changes; includes security best practices for input validation, path safety, and variable quoting
- Built-in environment variables (${CLAUDE_PLUGIN_ROOT}, $CLAUDE_PROJECT_DIR, $CLAUDE_ENV_FILE) enable portable, context-aware hook implementations with structured JSON input/output
Tags
Related skills
| Skill | Installs | vs hook development |
|---|---|---|
| news-aggregator-skill | 3,842 | +98 |
| python-packaging | 4,277 | +533 |
| notebooklm | 4,143 | +399 |
| elevenlabs-stt | 3,683 | -61 |
| clawdirect-dev | 4,311 | +567 |
FAQ
- How many installs does hook development have?
- hook development has 3,744 total installs and – installs this week.
- Where is hook development hosted?
- hook development is published by @anthropics/claude-code at https://github.com/anthropics/claude-code.
- How many GitHub stars does hook development have?
- hook development has 83.6K GitHub stars.
- When was hook development first indexed?
- OrangeBot.AI first indexed hook development on –.
- How do I install hook development?
- Run: npx skills add https://github.com/anthropics/claude-code --skill 'Hook Development'