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.
curl -O https://raw.githubusercontent.com/bdfinst/agentic-dev-team/main/.claude/skills/hook-add/SKILL.mdgit clone --depth 1 https://github.com/bdfinst/agentic-dev-teamWrote 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/bdfinst/agentic-dev-team/hook-add)<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.
<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>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.00077 | $0.01200 |
| Opus 5.5 | $0.00031 | $0.00480 |
| Sonnet 5.5 | $0.00015 | $0.00240 |
| Haiku 4.5 | $0.00008 | $0.00120 |
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.
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 — 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.
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.
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 First seen · 105 lines · 77 tokens per session scan A b2e986d7fe07
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.
hook-add compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hook-addbdfinst/agentic-dev-team | Skill | 313 | today | MIT | A | 77 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 6.5k | today | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.8k | yesterday | MIT | A | 26 | Claude Code, Codex |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarm | Skill | 557 | today | MIT | A | 26 | OpenCode |
| test-generatorrshankras/claude-code-apple-skills | Skill | 928 | 27d ago | MIT | A | 33 | Claude Code |