Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/hook-creator
This skill should be used when the user asks to "create a hook", "write hook config", "add hooks.json", "configure event hooks", "create PreToolUse hook", "add SessionStart hook", "implement hook validation", "set up event-driven automation", needs guidance on hooks.json structure, hook events (PreToolUse, PostToolUse, Stop, SessionStart, SessionEnd, UserPromptSubmit), or wants to automate workflows and implement event-driven behavior in Claude Code plugins.
Passed 21 of 22 test cases with the skill, and 16 of 22 without it.
and 7 more in the full report
5 fixed16 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a hook for Claude Code that appends every Bash command Claude runs into a text file in my home directory so I can audit executed commands later. Please write the settings snippet for me.
| Checked | Without skill | With skill |
|---|---|---|
| The matcher attribute is formatted as a plain string rather than an object | Missed | Passed |
| The configuration nests the command object with type command inside a hooks array | Missed | Passed |
| The global settings file path is specified as ~/.claude/settings.json | Missed | Passed |
The instructions your model reads when the skill loads.
创建在特定生命周期事件中执行 shell 命令的 Claude Code 钩子。
* 匹配所有,或指定工具名称如 Bash、Edit|Write)~/.claude/settings.json)或项目(.claude/settings.json){
"hooks": {
"<事件名称>": [
{
"matcher": "<工具模式>",
"hooks": [
{
"type": "command",
"command": "<shell命令>"
}
]
}
]
}
}
钩子通过 stdin 接收 JSON。使用 jq 提取字段:
test cases passed, vs 16 / 22 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.