hjemmesidekongen/ai/hook-creator
- community
Checking that the SKILL.md file is still in the repository.
Create, modify, or debug Claude Code hooks with correct event types, exit codes, JSON output formats, and shell best practices. Use when adding hooks to any plugin, fixing broken or silent hooks, blocking or allowing specific tools via PreToolUse, adding guards for SessionStart or Stop events, registering hooks in plugin.json, or converting hooks between types (command, prompt, HTTP, agent).
Install
npx vskill@latest install hjemmesidekongen/ai/hook-creatorSKILL.md
Hook Creator
Creates and validates Claude Code hooks for any plugin in this workspace.
When to trigger
- Creating a new hook for any event type
- Fixing a broken or misbehaving hook
- Converting between hook types (command, prompt, HTTP, agent)
- Adding hooks to plugin.json or skill/agent frontmatter
Hook types
| Type | Best for | Events supported | |
|---|---|---|---|
| command | Deterministic checks, file I/O, logging | All events | |
| prompt | Context-aware LLM decisions | PreToolUse, Stop, SubagentStop, UserPromptSubmit | |
| http | External service integration, webhooks | All events | |
| agent | Multi-step autonomous tasks (50-turn limit) | All events |
Default to command hooks. Use prompt hooks only when the decision requires LLM reasoning. Use HTTP hooks for webhooks/external integrations. Use agent hooks for complex multi-step logic.
NEVER
- Create a hook without registering it in plugin.json
- Use prompt hooks for deterministic checks (use command hooks)
- Skip exit code testing — hooks fail silently on bad exit codes
- Hardcode file paths — use $HOOK_WORKING_DIR for portability
- Leave hooks unquoted when variables may contain spaces
Process
See references/process.md for the full specification: 18 event types, 4 hook types, input/output schemas, exit codes, shell conventions, testing protocol, and registration.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/kronen/skills/hook-creator/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hjemmesidekongen/ai/hook-creator)