agentic-dev-team: Skill for Claude Code

.claude/skills/hook-add/SKILL.md

hook-add is a skill for Claude Code from bdfinst/agentic-dev-team. It costs 77 tokens per session (1,200 once invoked), scanned A, original, MIT.

A guided tool for adding a new event hook to a development-team plugin. A hook is code that runs before or after a tool call, such as an edit or shell command.

In plain words
What is it for?
Use it when adding an advisory hook that warns or a blocking hook that stops a call. It asks for the event, tool matcher, name and blocking behaviour, then scaffolds the required files and tests.
Why use it?
It removes repetitive setup by creating the hook code, its registration, its unit test, and test entries through a fixed process.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

This is bdfinst/agentic-dev-team's own configuration. It tells Claude Code how to work on agentic-dev-team itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-dev-team configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bdfinst/agentic-dev-team. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bdfinst/agentic-dev-team/main/.claude/skills/hook-add/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bdfinst/agentic-dev-team

Made for: Claude Code.

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 hook-add

README.md
[![agentmods](https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/hook-add/github.svg)](https://agentmods.dev/skills/bdfinst/agentic-dev-team/hook-add)
Your own site
<a href="https://agentmods.dev/skills/bdfinst/agentic-dev-team/hook-add"><img src="https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/hook-add/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 hook-add

Your own site · 80×15
<a href="https://agentmods.dev/skills/bdfinst/agentic-dev-team/hook-add"><img src="https://agentmods.dev/badge/skills/bdfinst/agentic-dev-team/hook-add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 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.
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.00077 $0.01200
Opus 5.5 $0.00031 $0.00480
Sonnet 5.5 $0.00015 $0.00240
Haiku 4.5 $0.00008 $0.00120

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

Security

Grade A, and why

hook-add 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/hook_add.py), 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.

.claude/skills/hook-add/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a dev-team hook

Role: worker. A script does the writing. You collect the request, run the script, and report what it prints. You do not write hook code, edit a registration file, or edit a gate table yourself.

Arguments

An optional hook name. Ask for every other value in step 1.

Constraints

  • Be concise: report each command's result in a line or two.
  • Run the three calls below and no other command, from the repository root.
  • Never edit a file the script owns to get past a refusal.
  • The contract a hook honors is in docs/python-hook-contract.md. Point the user to it for the hook body; do not restate it.

1. Interview

Ask for each value the user has not already given.

Value Accepted
Event PreToolUse or PostToolUse
Matcher The tool-name pattern, for example Bash or Edit|Write; not empty, and no single quote (ask for another if it has one)
Name A snake_case identifier, without .py
Disposition advisory (warns) or blocking (stops the call)
User remedy Blocking only: whether the block reason names a way to lift the guard, yes or no

A user remedy is a way to switch the guard off, for example an environment variable. When it is yes, pass --user-remedy to check and scaffold; the block then tells the model to ask the user. Never pass it for an advisory hook.

2. Check

python3 .claude/skills/hook-add/scripts/hook_add.py check --name <name> --event <event> --matcher '<matcher>' --disposition <disposition> [--user-remedy]

check writes nothing. It prints OK, or REFUSED <cause code>: <detail> [reason=<token>] on stderr and exits non-zero. On a refusal, show the line to the user unchanged and stop. Offer a new request only for invalid-name, invalid-matcher, unsupported-event, and duplicate-hook, which the user can correct, for example with another name. For any other cause code, the repository is the problem or the request is out of scope; do not work around it.

Read the full file on GitHub · 105 lines

Files

What ships with it

5 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 First seen · 105 lines · 77 tokens per session scan A b2e986d7fe07

Subscribe to this mod's changes

hook-add is a skill published in the GitHub repository bdfinst/agentic-dev-team (313 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 1,200 once invoked, about $0.0003 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-12-03.

Related

hook-add compared with skills from other repositories

hook-add next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hook-addbdfinst/agentic-dev-teamSkill313todayMITA77Claude Code
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill6.5ktodayMITA149Claude Code
go-testingGentleman-Programming/gentle-aiSkill9.8kyesterdayMITA26Claude Code, Codex
dart-testdartsim/dartSkill1.2kyesterdayBSD-2-ClauseA18Claude Code, Codex
restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarmSkill557todayMITA26OpenCode
test-generatorrshankras/claude-code-apple-skillsSkill92827d agoMITA33Claude Code