Use when creating or publishing Claude Code hooks - covers executable format, event types, JSON I/O, exit codes, security requirements, and PRPM package structure
SkillScore91Maintained
Automatic
◆AI Engineer pack
Last verified 8/14/2026
What it changes
Passed 19 of 21 test cases with the skill, and 10 of 21 without it.
Without skill45%
With skill91%
Checks it passed that the model alone missed
Includes `"subtype": "hook"` in `prpm.json`.
Sets `"main"` to `"HOOK.md"` in `prpm.json`.
Includes `"format": "claude"` in `prpm.json`.
and 15 more in the full report
11 fixed9 passed either way1 still failing1 broke
Pass-rate lift
+45 pp
Tokens
+115%
Agent turns
0%
Response time
-43%
Model gemini-3.6-flashMeasured 8/14/2026v120 of 22 cases passed with skill · 21 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 10
Prompt
When publishing a Claude Code hook package via PRPM, what file name should be assigned to the `main` entry point field inside `prpm.json`?
What was checked, without and with the skill
Checked
Without skill
With skill
Sets `"main"` to `"HOOK.md"` in `prpm.json`.
Missed
Passed
case-19 · gemini-3.6-flash · 8/14/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md431 linessingle file
Creating Claude Code Hooks
Use this skill when creating, improving, or publishing Claude Code hooks. Provides essential guidance on hook format, event handling, I/O conventions, and package structure.
When to Use This Skill
Activate this skill when:
User asks to create a new Claude Code hook
User wants to publish a hook as a PRPM package
User needs to understand hook format or events
User is troubleshooting hook execution
User asks about hook vs skill vs command differences