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 ai-driven-dev/framework --skill 08-hook-generategit clone --depth 1 https://github.com/ai-driven-dev/frameworkWrote 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/ai-driven-dev/framework/08-hook-generate)<a href="https://agentmods.dev/skills/ai-driven-dev/framework/08-hook-generate"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/08-hook-generate/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/ai-driven-dev/framework/08-hook-generate"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/08-hook-generate.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.00035 | $0.00285 |
| Opus 5.5 | $0.00014 | $0.00114 |
| Sonnet 5.5 | $0.00007 | $0.00057 |
| Haiku 4.5 | $0.00003 | $0.00028 |
Grade A, and why
08-hook-generate 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 3d 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.
What it actually says
Hook Generate
flowchart LR
entry([request]) --> frame["actions/01-frame.md"]
frame <-->|"operation, name, hosts and intent to confirm"| user((user answers))
frame -->|"no host can carry the intent"| unsupported((unsupported))
frame --> plan["actions/02-plan.md"]
plan <-->|"plan to approve"| user
plan -->|"revision or writer refusal"| frame
plan -->|"cancelled"| cancelled((cancelled))
plan --> write["actions/03-write.md"]
write -->|"writer error"| stopped((stopped))
write -->|"remove done"| done((written))
write --> verify["actions/04-verify.md"]
verify -->|"trial failed"| plan
verify <-->|"trial to approve"| user
verify -->|"trial declined"| unverified((run not verified))
verify --> verified((verified))
Transversal rules
- If a cited reference cannot be read, stop and report the missing file.
- Write the hook only in the project, never in a user or global scope.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago Changed · +1 lines · -23 tokens per session 8f26d4c36ceb
- 16d ago Changed 4404032f430b
- 2mo ago First seen · 31 lines · 58 tokens per session scan A 23b884f6272d
08-hook-generate is a skill published in the GitHub repository ai-driven-dev/framework (589 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 285 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-09-03.
08-hook-generate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 08-hook-generateai-driven-dev/framework | Skill | 589 | today | MIT | A | 35 | Claude Code |
| podcast-generationbytedance/deer-flow | Skill | 86k | today | MIT | A | 38 | Claude Code, Codex |
| skill-reviewerbytedance/deer-flow | Skill | 86k | today | MIT | A | 38 | Claude Code |
| eval-dataset-designbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 138 | Claude Code, Codex |
| knowledge-orgbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| zeroclaw-docszeroclaw-labs/zeroclaw | Skill | 34k | today | Apache-2.0 | A | 80 | Claude Code, Codex |
| kb-buildertinyfish-io/tinyfish-cookbook | Skill | 2.3k | 6d ago | MIT | A | 158 | Claude Code, Codex |