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 tmj-90/gaffer --skill black-box-testgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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/tmj-90/gaffer/black-box-test)<a href="https://agentmods.dev/skills/tmj-90/gaffer/black-box-test"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/black-box-test/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/tmj-90/gaffer/black-box-test"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/black-box-test.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.00135 | $0.02566 |
| Opus 5.5 | $0.00054 | $0.01026 |
| Sonnet 5.5 | $0.00027 | $0.00513 |
| Haiku 4.5 | $0.00014 | $0.00257 |
Grade A, and why
black-box-test scanned grade A with 1 finding 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 22d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
built-ins (`node:test`, `child_process`, `fetch`, `subprocess`, `net/http`), never an How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test another agent's ticket — independently, from the outside
You decide whether a delivered change satisfies its acceptance criteria (ACs) by probing it from the outside. A test written from the implementation mirrors its assumptions and passes exactly when the implementation's own tests pass; a test written from the AC catches what review cannot — "it passes its own tests but does not meet the criterion." Live runs showed the gap: builds shipped with tests that never exercised the criterion's own behaviour, and concurrent-write and paused-process defects no test covered.
How you are run (the contract the runner enforces)
The runner (bin/tester-run.mjs --live) checks the tested commit out into a throwaway
worktree (your only write root), scopes a Dispatch MCP server to this ticket, and then:
- Inspects what you changed. Allowed: any path with a directory named
test,tests,__tests__,spec,specs,e2eorfixture(s); JS/TS files named*.test.*/*.spec.*; files whose name startstest_,test-ortest.. A test beside the source in any other form (Gofoo_test.gonext to the code,FooTest.javaundersrc/main/,foo_test.pyoutside a test directory) is NOT allowed. Maven/Gradlesrc/test/...IS allowed (it contains atestdirectory) and is where their test command looks; otherwise put yours in atests/ore2e/directory the repo's test command discovers, and drive the built binary, CLI or HTTP surface from there. Any other file changed — source,package.json, a lockfile, config — and the run is HELD for a human, whatever your verdict. You test the implementation; you never fix, patch, configure or "unblock" it. Need a library the repo lacks? Use the runtime's built-ins (node:test,child_process,fetch,subprocess,net/http), never an install that edits a manifest. - Replays a PASS on a clean checkout of the tested commit: only your test files are
copied in, the installed
node_modulesare linked from the primary checkout (nothing else is installed or built), and the repo's registered test command runs withCI=1(10-minute cap). If that replay fails, your PASS is held. So your tests must be self-contained: they start the system themselves, use temp dirs and free ports, and never depend on a server you started by hand, an env var you exported, or build output left in your worktree. Put the file where the repo's test command discovers it (read the test script's glob) — a test the command does not run is not evidence. The candidate's own tests run in the replay too; if they fail, that is a FAIL finding. - Links the installed dependencies into your worktree (the primary checkout's root
and workspace-package
node_modules, as a delivery worktree has them; git ignores the links). Never install, update or remove a dependency: if the test command still cannot find one, use runtime built-ins, and FAIL an AC you still cannot demonstrate, naming the missing dependency as an environment gap, not a product defect. - Reads your verdict only from the last line —
{"verdict":"PASS"}or{"verdict":"FAIL"}on its own. PASS →ready_for_merge; FAIL → back toreadyorrefining(per the autonomy policy) with your failing test as evidence; no token → HELD, which costs more than a FAIL. Your commit is kept on a separategaffer/ticket-<n>-testsbranch; the reviewed delivery branch is never rewritten.
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.
- 22d ago Changed · -20 lines · +13 tokens per session b186584034e5
- 25d ago Changed · +7 lines ccfed232d8c2
- 1mo ago First seen · 164 lines · 122 tokens per session scan A f81aebc3b93b
black-box-test is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 23d ago), licensed Apache-2.0. It adds 135 tokens to every session and 2,566 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
test-audit
Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.
mock-detection
Deep mock appropriateness analysis for Test Audit pipeline.
bug-magnet-data
Curated edge case test data for boundary testing, verification scripts, and test generation. Provides pre-curated reference data organized by data type with context-specific loading guidance.
assertion-patterns
Real output verification vs mock calls. Use when transforming T1-T4 violating tests to verify observable behavior.
test-classification
Prompt template for test classification stage in Test Audit pipeline.
fix-bug
Run the Fix Validation pipeline to investigate, fix, and validate a bug. Ensures deterministic pipeline execution with IssueAnalyzer, FixWriter, TestWriter (conditional), TestAudit (conditional), and FixValidator stages.