test-audit

test-audit is a skill for Claude Code, Codex from mblode/agent-skills. It costs 63 tokens per session (2,219 once invoked), scanned A, original, MIT.

A method for reviewing and removing low-value automated tests while keeping code coverage from falling. It also checks new tests before they are added; tests are checks that verify software behaves as expected.

In plain words
What is it for?
Use it to approve or reject a proposed test, audit a directory, or prune a subsystem with evidence and validation.
Why use it?
It targets tests that merely repeat other checks, expose private implementation details, or add maintenance and run time without finding new regressions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; built for openclaw.

Good fit Use it to approve or reject a proposed test, audit a directory, or prune a subsystem with evidence and validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mblode/agent-skills/test-audit
Install

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.

Any agent
npx skills add mblode/agent-skills --skill test-audit
Clone the repo
git clone --depth 1 https://github.com/mblode/agent-skills

Made for: Claude Code, Codex.

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 test-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mblode/agent-skills/test-audit/github.svg)](https://agentmods.dev/skills/mblode/agent-skills/test-audit)
Your own site
<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.

agentmods 80×15 button for test-audit

Your own site · 80×15
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,219 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.00063 $0.02219
Opus 5.5 $0.00025 $0.00888
Sonnet 5.5 $0.00013 $0.00444
Haiku 4.5 $0.00006 $0.00222

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

Security

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.

The scan reads SKILL.md. This mod also ships 37 executable files (evals/fixtures/billing-junk-sweep/base/src/billing/currency.test.ts, evals/fixtures/billing-junk-sweep/base/src/billing/currency.ts, evals/fixtures/billing-junk-sweep/base/src/billing/plans.ts, …), 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.

skills/test-audit/SKILL.md · 130 lines

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.

Read the full file on GitHub · 130 lines

Files

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.

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. 13d ago Changed · +7 lines f6c3410e8b9a
  2. 23d ago Changed f3ce8bdf3d1a
  3. 1mo ago Changed · +7 lines f3548ddd22bb
  4. 1mo ago Changed · -49 tokens per session b86bfae2cd78
  5. 2mo ago Changed · -10 lines · +18 tokens per session f887d32c9ce7
  6. 2mo ago First seen · 126 lines · 94 tokens per session scan A 6076596823ee

Subscribe to this mod's changes

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.

Related

test-audit compared with skills from other repositories

test-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-auditmblode/agent-skillsSkill231todayMITA63Claude Code, Codex
dcf-modelNousResearch/hermes-agentSkill268ktodayMITA14Claude Code, Codex
mle-workflowaffaan-m/ECCSkill315kyesterdayMITA44Claude Code, Codex
autonomous-loopsaffaan-m/ECCSkill315kyesterdayMITA26Claude Code, Kiro
ascii-videoNousResearch/hermes-agentSkill268ktodayMITA17Claude Code, Codex
grounded-citationsNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
hermes-agent-skill-authoringNousResearch/hermes-agentSkill268ktodayMITA22Claude Code, Codex