Install any skill in seconds. Free to start, no credit card required.
Get Started Free →athola/hook-authoring
Guide creating Claude Code hooks with security-first design.
Passed 20 of 21 test cases with the skill, and 5 of 21 without it.
and 22 more in the full report
16 fixed6 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
In a CI/CD build script, we need to force Claude Code plugins to check for updates on startup even if the core auto-updater setting is disabled. What environment variable controls this behavior?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies the FORCE_AUTOUPDATE_PLUGINS environment variable. | Missed | Passed |
The instructions your model reads when the skill loads.
abstract:hooks-eval)abstract:hook-scope-guide)abstract:skill-authoring)Hooks are event interceptors that allow you to extend Claude Code and Claude Agent SDK behavior by executing custom logic at specific points in the agent lifecycle. They enable validation before tool use, logging after actions, context injection, workflow automation, and security enforcement.
This skill teaches you how to write effective, secure, and performant hooks for both declarative JSON (Claude Code) and programmatic Python (Claude Agent SDK) use cases.
New in 2.1.9: PreToolUse hooks can now return
additionalContextto inject information before a tool executes. This enables patterns like cache hints, security warnings, or relevant context injection.
Create a simple logging hook in .claude/settings.json:
{
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [{
"type": "command",
"command": "echo \"$(date): Executed $(jq -r '.tool_name')\" >> ~/.claude/audit.log"
}]
test cases passed, vs 5 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.