08-hook-generate

08-hook-generate is a skill for Claude Code from ai-driven-dev/framework. It costs 35 tokens per session (285 once invoked), scanned A, original, MIT.

A workflow for creating a hook, which is an action that runs when a specified event happens in an AI tool. It creates the event entry and the script that handles it.

In plain words
What is it for?
Use it to automate work at a chosen moment, such as when a supported tool reaches a particular state.
Why use it?
It helps connect an automated action to the correct lifecycle event and tool-specific configuration.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aidd-context plugin — 14 skills, 2 hooks shipped together

Good fit Use it to automate work at a chosen moment, such as when a supported tool reaches a particular state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-driven-dev/framework/08-hook-generate
Install

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.

Any agent
npx skills add ai-driven-dev/framework --skill 08-hook-generate
Clone the repo
git clone --depth 1 https://github.com/ai-driven-dev/framework

Made for: Claude Code.

Or install aidd-context, the plugin that ships this one along with the rest of its 14 skills, 2 hooks.

Wrote 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.

agentmods badge for 08-hook-generate

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-driven-dev/framework/08-hook-generate/github.svg)](https://agentmods.dev/skills/ai-driven-dev/framework/08-hook-generate)
Your own site
<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.

agentmods 80×15 button for 08-hook-generate

Your own site · 80×15
<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>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3d ago against content hash 8f26d4c36ceb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/write-hook.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/aidd-context/skills/08-hook-generate/SKILL.md · 32 lines

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.
Files

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.

Changes

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.

  1. 3d ago Changed · +1 lines · -23 tokens per session 8f26d4c36ceb
  2. 16d ago Changed 4404032f430b
  3. 2mo ago First seen · 31 lines · 58 tokens per session scan A 23b884f6272d

Subscribe to this mod's changes

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.

Related

08-hook-generate compared with skills from other repositories

08-hook-generate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
08-hook-generateai-driven-dev/frameworkSkill589todayMITA35Claude Code
podcast-generationbytedance/deer-flowSkill86ktodayMITA38Claude Code, Codex
skill-reviewerbytedance/deer-flowSkill86ktodayMITA38Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A138Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A96Claude Code, Codex
zeroclaw-docszeroclaw-labs/zeroclawSkill34ktodayApache-2.0A80Claude Code, Codex
kb-buildertinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA158Claude Code, Codex