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 mblode/agent-skills --skill test-auditgit clone --depth 1 https://github.com/mblode/agent-skillsWrote 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/mblode/agent-skills/test-audit)<a href="https://agentmods.dev/skills/mblode/agent-skills/test-audit"><img src="https://agentmods.dev/badge/skills/mblode/agent-skills/test-audit/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/mblode/agent-skills/test-audit"><img src="https://agentmods.dev/badge/skills/mblode/agent-skills/test-audit.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.00063 | $0.02219 |
| Opus 5.5 | $0.00025 | $0.00888 |
| Sonnet 5.5 | $0.00013 | $0.00444 |
| Haiku 4.5 | $0.00006 | $0.00222 |
Grade A, and why
test-audit 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 13d 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Audit
Tests earn their place by catching a credible regression that nothing else catches. Agents write a test for every small change, and most of those re-assert the source, replay a stronger test through a mock, or pin a private call shape. Coverage barely moves when they go; maintenance cost and suite time do.
- IS: sweeping a directory for low-value, misplaced, and skipped tests, and campaign-pruning a whole subsystem or repo to a measured target with coverage held, plus deleting the test-only production seams those tests kept alive.
- IS NOT: gating a test before it lands or reviewing a feature diff (
tidy), making CI faster by splitting or sharding (ci-speedup), or writing tests for untested code.
Pick a mode
| Mode | When | Done means |
|---|---|---|
| Audit | A focused sweep of named files or a directory | A handful of high-confidence candidates with full evidence, deleted in one coherent batch with validation green |
| Campaign | A subsystem's or repo's whole test surface, or any request with a target ("remove 20%") | The target is met or the ledger shows why it cannot be, coverage held within tolerance, and the preservation review passed. Read references/campaign.md first |
Set a target before starting
An open-ended "clean up the tests" stops after a few obvious deletions, because every remaining candidate looks defensible in isolation. Audit and Campaign need a number to work against. When the user gave one, use it. When they did not, propose one and proceed on it rather than waiting:
Remove the least useful 20% of test declarations in
<scope>, keeping line and branch coverage within 2 percentage points of the baseline and every retained test green.
Measure the baseline first (references/coverage.md), then keep deleting in order of lowest value until the target is met or the coverage budget is spent. Stopping short is a valid result only with a ledger showing that the remaining candidates each guard a named contract. The target is a floor on effort, not permission to cut uncertain tests: the retention bar below still wins over the number.
What ships with it
60 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.
- evals/evals.json 6.5 KB
- evals/fixtures/billing-junk-sweep/base/package.json 257 B
- evals/fixtures/billing-junk-sweep/base/src/billing/currency.test.ts 1.0 KB runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/currency.ts 1002 B runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/plans.ts 149 B runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/proration.test.ts 1.2 KB runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/proration.ts 729 B runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/webhooks.test.ts 1.4 KB runs code
- evals/fixtures/billing-junk-sweep/base/src/billing/webhooks.ts 1.1 KB runs code
- evals/fixtures/billing-junk-sweep/base/tsconfig.json 241 B
- evals/fixtures/billing-junk-sweep/fixture.json 31 B
- evals/fixtures/freight-api-prune/base/package.json 290 B
- evals/fixtures/freight-api-prune/base/packages/api/package.json 228 B
- evals/fixtures/freight-api-prune/base/packages/api/src/quote.test.ts 1.5 KB runs code
- evals/fixtures/freight-api-prune/base/packages/api/src/quote.ts 1.2 KB runs code
- evals/fixtures/freight-api-prune/base/packages/api/src/rates.test.ts 1.6 KB runs code
- evals/fixtures/freight-api-prune/base/packages/api/src/rates.ts 1.7 KB runs code
- evals/fixtures/freight-api-prune/base/packages/api/src/tracking.test.ts 948 B runs code
- evals/fixtures/freight-api-prune/base/packages/api/src/tracking.ts 1.4 KB runs code
- evals/fixtures/freight-api-prune/base/tsconfig.json 252 B
- evals/fixtures/freight-api-prune/fixture.json 33 B
- evals/fixtures/notify-mock-tests/base/package.json 253 B
- evals/fixtures/notify-mock-tests/base/src/notify/digest.test.ts 1.8 KB runs code
- evals/fixtures/notify-mock-tests/base/src/notify/digest.ts 1.6 KB runs code
- evals/fixtures/notify-mock-tests/base/src/notify/index.ts 179 B runs code
- evals/fixtures/notify-mock-tests/base/src/notify/sender.test.ts 2.1 KB runs code
- evals/fixtures/notify-mock-tests/base/src/notify/sender.ts 742 B runs code
- evals/fixtures/notify-mock-tests/base/src/notify/types.ts 239 B runs code
- evals/fixtures/notify-mock-tests/base/tsconfig.json 241 B
- evals/fixtures/notify-mock-tests/fixture.json 28 B
- evals/fixtures/payments-skips-misplaced/base/package.json 293 B
- evals/fixtures/payments-skips-misplaced/base/packages/payments/lib/currency.test.ts 437 B runs code
- evals/fixtures/payments-skips-misplaced/base/packages/payments/lib/currency.ts 589 B runs code
- evals/fixtures/payments-skips-misplaced/base/packages/payments/package.json 144 B
- evals/fixtures/payments-skips-misplaced/base/packages/payments/refunds.test.ts 1.9 KB runs code
- evals/fixtures/payments-skips-misplaced/base/packages/payments/refunds.ts 1.4 KB runs code
- evals/fixtures/payments-skips-misplaced/base/packages/payments/routes/checkout.test.ts 1.0 KB runs code
- evals/fixtures/payments-skips-misplaced/base/packages/payments/routes/checkout.ts 841 B runs code
- evals/fixtures/payments-skips-misplaced/base/tsconfig.json 246 B
- evals/fixtures/payments-skips-misplaced/fixture.json 35 B
- evals/fixtures/reserve-zero-unique/base/package.json 254 B
- evals/fixtures/reserve-zero-unique/base/src/inventory/orders.test.ts 475 B runs code
- evals/fixtures/reserve-zero-unique/base/src/inventory/orders.ts 612 B runs code
- evals/fixtures/reserve-zero-unique/base/src/inventory/reserve.test.ts 2.5 KB runs code
- evals/fixtures/reserve-zero-unique/base/src/inventory/reserve.ts 977 B runs code
- evals/fixtures/reserve-zero-unique/base/src/inventory/types.ts 286 B runs code
- evals/fixtures/reserve-zero-unique/base/tsconfig.json 241 B
- evals/fixtures/reserve-zero-unique/fixture.json 29 B
- evals/fixtures/scheduler-contract-suite/base/package.json 259 B
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/backoff.test.ts 966 B runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/backoff.ts 695 B runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/index.ts 255 B runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/interval.test.ts 1.1 KB runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/interval.ts 918 B runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/lease.test.ts 1.6 KB runs code
- evals/fixtures/scheduler-contract-suite/base/src/scheduler/lease.ts 1.2 KB runs code
- evals/fixtures/scheduler-contract-suite/base/tsconfig.json 241 B
- evals/fixtures/scheduler-contract-suite/fixture.json 34 B
- references/campaign.md 6.6 KB
- references/coverage.md 3.9 KB
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.
- 13d ago Changed · +7 lines f6c3410e8b9a
- 23d ago Changed f3ce8bdf3d1a
- 1mo ago Changed · +7 lines f3548ddd22bb
- 1mo ago Changed · -49 tokens per session b86bfae2cd78
- 2mo ago Changed · -10 lines · +18 tokens per session f887d32c9ce7
- 2mo ago First seen · 126 lines · 94 tokens per session scan A 6076596823ee
test-audit is a skill published in the GitHub repository mblode/agent-skills (231 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 2,219 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-09-25.
test-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-auditmblode/agent-skills | Skill | 231 | today | MIT | A | 63 | Claude Code, Codex |
| dcf-modelNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 14 | Claude Code, Codex |
| mle-workflowaffaan-m/ECC | Skill | 315k | yesterday | MIT | A | 44 | Claude Code, Codex |
| autonomous-loopsaffaan-m/ECC | Skill | 315k | yesterday | MIT | A | 26 | Claude Code, Kiro |
| ascii-videoNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 17 | Claude Code, Codex |
| grounded-citationsNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 16 | Claude Code, Codex |
| hermes-agent-skill-authoringNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 22 | Claude Code, Codex |