Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add claude-world/director-mode-lite --skill hooks-checkgit clone --depth 1 https://github.com/claude-world/director-mode-liteWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/claude-world/director-mode-lite/hooks-check)<a href="https://agentmods.dev/skills/claude-world/director-mode-lite/hooks-check"><img src="https://agentmods.dev/badge/skills/claude-world/director-mode-lite/hooks-check/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/claude-world/director-mode-lite/hooks-check"><img src="https://agentmods.dev/badge/skills/claude-world/director-mode-lite/hooks-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01213 |
| Opus 5.5 | $0.00013 | $0.00485 |
| Sonnet 5.5 | $0.00006 | $0.00243 |
| Haiku 4.5 | $0.00003 | $0.00121 |
Grade A, and why
hooks-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hooks Validator
Validate hooks configuration in .claude/settings.json and hook scripts against
the official Claude Code spec.
Validation Steps
1. Check settings.json
Verify the hooks section exists and is valid.
2. Validate Hook Event Names
Claude Code defines 33 hook events. Accept any of them; flag unknown names
with a typo hint (e.g. PrePromptSubmit -> UserPromptSubmit,
PostToolBatchFailure -> PostToolBatch, SubagentStarts -> SubagentStart).
| Group | Events |
|---|---|
| Lifecycle | SessionStart, SessionEnd, Setup |
| Prompt | UserPromptSubmit, UserPromptExpansion |
| Tool | PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch |
| Permission | PermissionRequest, PermissionDenied |
| Subagent | SubagentStart, SubagentStop |
| Stop | Stop, StopFailure |
| Task | TaskCreated, TaskCompleted |
| Compaction | PreCompact, PostCompact |
| Notification | Notification, MessageDisplay |
| MCP elicitation | Elicitation, ElicitationResult |
| Model | PreModelSwitch, PostModelSwitch |
| Environment | ConfigChange, CwdChanged, DirectoryAdded, FileChanged, InstructionsLoaded, WorktreeCreate, WorktreeRemove, TeammateIdle |
That is all 33 events. See the official hooks docs for each event's payload.
3. Validate Each Hook Entry
-
typeis present and one of:command,prompt,http,mcp_tool,agent - If
type: command:commandpath exists and script is executable; a shell-form path variable is quoted ("$CLAUDE_PROJECT_DIR"/...), or the hook uses exec form (args) - If
type: promptoragent:promptstring is non-empty - If
type: http:urlis set; iftype: mcp_tool:serverandtoolare set -
matcheris a string if present (exact names joined by|or,,*, or a regex); warn when it sits on an event without matcher support (UserPromptSubmit,Stop,PostToolBatch,TeammateIdle,TaskCreated,TaskCompleted,WorktreeCreate,WorktreeRemove,MessageDisplay,CwdChanged), where it is silently ignored -
timeoutis a positive integer if present (defaults: 600s command/http/mcp_tool, 30s prompt, 60s agent) -
ifis a permission rule such asBash(git *), used only on tool events -
onFailureiscontinueorblock(v2.1.295+); recommendblockfor security guards -
onceappears only in skill frontmatter hooks; settings files ignore it -
async/asyncRewakeappear only on command hooks -
statusMessageis a string if present -
SessionEndmatchers do not usebypass_permissions_disabled(removed in v2.1.234)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago Changed · +15 lines 54e357995ec0
- 2mo ago First seen · 101 lines · 32 tokens per session scan A fe7c9d226f99
hooks-check is a skill published in the GitHub repository claude-world/director-mode-lite (80 stars, last pushed 16d ago), licensed MIT. It adds 32 tokens to every session and 1,213 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
hooks-check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hooks-checkclaude-world/director-mode-lite | Skill | 80 | 16d ago | MIT | A | 32 | Claude Code |
| conciseo4f6bgpac3/concise | Skill | 19 | 7mo ago | MIT | A | 92 | Claude Code, Cursor |
| session-recapsxhmilyoyo/sundayhao-plugins | Skill | 9 | yesterday | Apache-2.0 | A | 39 | Claude Code |
| peekaboojohnkozaris/jko-claude-plugins | Skill | 11 | yesterday | MIT | A | 104 | Claude Code |
| mobile-flows-maestrojohnkozaris/jko-claude-plugins | Skill | 11 | yesterday | MIT | A | 102 | Claude Code |
| knowledge-bank-lookupsxhmilyoyo/sundayhao-plugins | Skill | 9 | yesterday | Apache-2.0 | A | 94 | Claude Code |
| kb-ingestsxhmilyoyo/sundayhao-plugins | Skill | 9 | yesterday | Apache-2.0 | A | 152 | Claude Code |