Agent skill

08 Hook Generate

by ai-driven-dev in ai-driven-dev/framework

Generate a hook, a handler that runs at a lifecycle event, across the host AI tools.

MITAuto-check passedDevelopment

Install 08 Hook Generate

skills CLI
$ npx skills add ai-driven-dev/framework --skill 08-hook-generate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ai-driven-dev/framework 08-hook-generate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ai-driven-dev/framework.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/aidd-context/skills/08-hook-generate .claude/skills/08-hook-generate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
08-hook-generate
GitHub stars
513
Token cost
~373 tokens
SKILL.md length
126 words
Files
8 (incl. references, assets)
Skills in repo
46
Repo updated
First seen
Licence
MIT

At a glance

Generate a hook, a handler that runs at a lifecycle event, across the host AI tools.

  • The user wants to create
  • SKILL.md covers Actions, References and Assets
  • Runs Shell scripts from its folder
  • Refactor a hook

What it does

08 Hook Generate is an agent skill from ai-driven-dev/framework. Generate a hook, a handler that runs at a lifecycle event, across the host AI tools. Use when the user wants to create, scaffold, or refactor a hook, or automate an action at a lifecycle point. Not for other artifacts like skills or rules.

Its SKILL.md is about 370 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files and assets (for example `actions/01-capture-hook.md`, `actions/02-write-hook.md` and `actions/03-validate.md`).

It sits in Development. The repository describes itself as: Marketplace Framework AI-Driven Dev : Context Engineering, Plugins, Agents, Skills, Hooks, Templates, SDLC. The licence is MIT.

When your agent uses it

  • The user wants to create
  • Refactor a hook
  • Automate an action at a lifecycle point

Example prompts

  • “/08-hook-generate”

Requirements

  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit 6e30640. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

08 Hook Generate loads about 373 tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 126 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~373
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ai-driven-dev/framework at commit 6e30640, republished under its MIT licence (© ai-driven-dev). 126 words, ~373 tokens.

Download SKILL.mdSave it as .claude/skills/08-hook-generate/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
08-hook-generate
description
Generate a hook, a handler that runs at a lifecycle event, across the host AI tools. Use when the user wants to create, scaffold, or refactor a hook, or automate an action at a lifecycle point. Not for other artifacts like skills or rules.
argument-hint
event | action

Hook Generate

Builds one hook: an entry merged into the chosen scope for each supported tool, plus the backing script.

Actions

#ActionRoleInput
01capture-hookClarify the moment, action, matcher, scope, toolsuser request
02write-hookMerge the entry per tool, write the scriptthe captured spec
03validateCheck the file, the merge, and the moment fitfiles written

Run the actions in order, 01 → 03, and run each action's ## Test before the next. Before running an action, read its file in actions/, not only the table or assets.

References

  • references/hook-authoring.md: the contract (R1-R7), the lifecycle moments, and the handler, matcher, and exit-code model.
  • references/tool-paths.md: per-tool support, moment-to-event names, file formats, scopes, and write targets.

Assets

  • assets/hook-template.json: the entry scaffold.
  • assets/hook-script-template.sh: the backing-script scaffold.

© ai-driven-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references, assets) in plugins/aidd-context/skills/08-hook-generate of ai-driven-dev/framework.

  • SKILL.md
  • actions/01-capture-hook.md
  • actions/02-write-hook.md
  • actions/03-validate.md
  • assets/hook-script-template.sh
  • assets/hook-template.json
  • references/hook-authoring.md
  • references/tool-paths.md

Open the folder on GitHubat commit 6e30640

Compare with similar skills

08 Hook Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

08 Hook Generate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
08 Hook Generate this skillai-driven-dev/framework513—~373Automated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from ai-driven-dev/framework

All 46 skills in this repo
  • 00 Async Dev

    ai-driven-dev/framework

    Drive the async-dev pipeline from one entry point, whether setup, run, or review.

    513 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • 01 Plan

    ai-driven-dev/framework

    Turn a request, ticket, or file into a phased implementation plan.

    513 GitHub stars~517 tokensUpdated today
    Auto-check passed
  • 01 Sdlc

    ai-driven-dev/framework

    Autonomously orchestrates a request from framing to a draft pull request, isolating implementation, independent review, and final outcome challenge.

    513 GitHub stars~583 tokensUpdated today
    Auto-check passed
  • 02 Backlog

    ai-driven-dev/framework

    Orchestrates a product backlog end to end. An agent skill from ai-driven-dev/framework.

    513 GitHub stars~613 tokensUpdated today
    Auto-check passed
  • 00 Onboard

    ai-driven-dev/framework

    Guide a project's journey through AIDD, from first setup to shipping a feature.

    513 GitHub stars~242 tokensUpdated today
    Auto-check passed
  • 01 Acceptance QA

    ai-driven-dev/framework

    Validate a reviewed candidate's observable behavior against its acceptance criteria and record short named videos as reviewer evidence.

    513 GitHub stars~434 tokensUpdated today
    Auto-check passed

Categories

Questions about 08 Hook Generate

What does 08 Hook Generate do?

Generate a hook, a handler that runs at a lifecycle event, across the host AI tools. 08 Hook Generate is an agent skill from ai-driven-dev/framework. Generate a hook, a handler that runs at a lifecycle event, across the host AI tools.

When should I use 08 Hook Generate?

08 Hook Generate fits situations like: the user wants to create; refactor a hook; automate an action at a lifecycle point.

How do I install 08 Hook Generate in Claude Code?

Run `npx skills add ai-driven-dev/framework --skill 08-hook-generate -a claude-code`. Or copy the skill folder (plugins/aidd-context/skills/08-hook-generate in ai-driven-dev/framework) into .claude/skills/08-hook-generate in your project. Claude Code loads it when a task matches its description.

How do I install 08 Hook Generate in Codex?

Run `npx skills add ai-driven-dev/framework --skill 08-hook-generate -a codex`. Or copy the skill folder (plugins/aidd-context/skills/08-hook-generate in ai-driven-dev/framework) into .agents/skills/08-hook-generate in your project. Codex loads it when a task matches its description.

Can I use 08 Hook Generate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai-driven-dev/framework --skill 08-hook-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/08-hook-generate, .gemini/skills/08-hook-generate, .github/skills/08-hook-generate and .opencode/skills/08-hook-generate in your project.

What does 08 Hook Generate need to run?

Going by SKILL.md and its folder, 08 Hook Generate needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does 08 Hook Generate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is 08 Hook Generate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does 08 Hook Generate use?

08 Hook Generate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does 08 Hook Generate use?

About 373 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.

What are the alternatives to 08 Hook Generate?

Skills that share tags, products or a category with 08 Hook Generate: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 08 Hook Generate?

ai-driven-dev (a GitHub organization) maintains it in ai-driven-dev/framework, which has 513 GitHub stars. The repository holds 46 skills in this directory. The repository was last updated on October 8, 2026.

Source: ai-driven-dev/framework on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.