Agent skill · AI & Agents

hook-developer

Complete Claude Code hooks reference - input/output schemas, registration, testing patterns

parcadeigithub.com/parcadeiGitHub ↗
claude-codeMIT
Install
npx skills add parcadei/Continuous-Claude-v3 --skill hook-developer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 14 KB
Bundled scripts: none
Path: .claude/skills/hook-developer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 3,879
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Hook Developer Complete reference for developing Claude Code hooks. Use this to write hooks with correct input/output schemas. ## When to Use - Creating a new hook - Debugging hook input/output format - Understanding what fields are available - Setting up hook registration in settings.json - Learning what hooks can block vs inject context ## Quick Reference | Hook | Fires When | Can Block? | Primary Use | |------|-----------|------------|-------------| | **PreToolUse** | Before tool executes | YES | Block/modify tool calls | | **PostToolUse** | After tool completes | Partial | React to tool results | | **UserPromptSubmit** | User sends prompt | YES | Validate/inject context | | **PermissionRequest** | Permission dialog shows | YES | Auto-approve/deny | | **SessionStart** | Session begins | NO | Load context, set env vars | | **SessionEnd** | Session ends | NO | Cleanup/save state | | **Stop** | Agent finishes | YES | Force continuation | | **SubagentStart** | Subagent spawns | NO | Pattern coordination | | **SubagentStop** | Subagent finishes | YES | Force continuation | | **PreCompact** | Before compaction | NO | Save state | | **Notification** | Notification sent | NO | Custom

What's inside
Steps it walks through
  1. When to Use
  2. Quick Reference
  3. Hook Input/Output Schemas
  4. PreToolUse
  5. PostToolUse
  6. UserPromptSubmit
  7. PermissionRequest
  8. SessionStart
  9. SessionEnd
  10. Stop
  11. SubagentStart
  12. SubagentStop
  13. PreCompact
  14. Notification
Commands it runs
set -e
cd "$CLAUDE_PROJECT_DIR/.claude/hooks"
cat | npx tsx src/my-hook.ts
cd "$HOME/.claude/hooks"
cat | node dist/my-hook.mjs
PostToolUse (Write)
echo '{"tool_name":"Write","tool_input":{"file_path":"test.md"},"tool_response":{"success":true},"session_id":"test"}' | \
PreToolUse (Bash)
echo '{"tool_name":"Bash","tool_input":{"command":"ls"},"session_id":"test"}' | \
SessionStart
More from Continuous-Claude-v3
All skills →
About this skill
What does the hook-developer skill do?

Complete Claude Code hooks reference - input/output schemas, registration, testing patterns

How do I install it?

Run `npx skills add parcadei/Continuous-Claude-v3 --skill hook-developer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From parcadei/Continuous-Claude-v3, a repository with 3,879 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going