audit-tests

audit-tests is a skill for Claude Code, Codex from dzhng/skills. It costs 55 tokens per session (1,837 once invoked), scanned A, original, MIT.

A method for checking whether a test provides useful, independent proof of a software behaviour. It maps each important contract—the behaviour code must preserve—to the tests that cover it.

In plain words
What is it for?
Use it when pruning tests, reviewing proposed coverage, investigating test-only production hooks, or auditing a subsystem before changing its test suite.
Why use it?
It finds tests that duplicate one another, are tightly coupled to implementation details, or cost more to maintain than the confidence they provide.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when pruning tests, reviewing proposed coverage, investigating test-only production hooks, or auditing a subsystem before changing its test suite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dzhng/skills/audit-tests
View source ↗ dzhng/skills
About the project

dzhng/skills is a collection of reusable instructions that guide AI coding agents through software work. Agents use the skills to explore ideas, write specifications, implement and review code, and conduct autonomous research; the catalogue lists 30 of these skills.

dzhng/skills · 1,345 stars · on GitHub

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 dzhng/skills --skill audit-tests
Clone the repo
git clone --depth 1 https://github.com/dzhng/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 audit-tests

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dzhng/skills/audit-tests"><img src="https://agentmods.dev/badge/skills/dzhng/skills/audit-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,837 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.00055 $0.01837
Opus 5.5 $0.00022 $0.00735
Sonnet 5.5 $0.00011 $0.00367
Haiku 4.5 $0.00006 $0.00184

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

Security

Grade A, and why

audit-tests 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 17d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/engineering/audit-tests/SKILL.md · 155 lines

How it starts

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

Audit Tests

Audit independent proof: what bug would escape if this test disappeared? The result is a map of contracts to their surviving tests, with evidence for what to keep, repair, combine, or remove. Fewer tests is not the objective; less maintenance for the same or better confidence is.

write-tests owns how to write and falsify a test. This skill owns whether that test adds proof and where that proof belongs. review owns closing out the resulting changes.

Workflow

  1. Bound the audit. Read the repository and scoped instructions, then pick a production responsibility. Find its tests, fixtures, shared suites, and CI selection rules. Record the starting revision, local changes, and test results before editing. Distinguish existing failures from checks that could not run. For a focused audit, choose a few substantiated candidates; for a subsystem sweep, use the completeness rules below.
  2. Trace the claim. Read each candidate in full, including parameter rows, beside the production entry point and the code it reaches. Inspect callers, sibling implementations, overlapping coverage, and the history explaining why the test exists. Inspect dependency code or types when the claim rests on dependency behavior. Write down what the assertions actually detect, even when the test's name promises something else.
  3. Record a disposition before editing. Use the evidence record below. Share findings as they become clear; the workflow must not hold back a material discovery. An audit-only request ends with this evidence and a proposed batch, not with deletions.
  4. Choose the surviving owner. Look across the records for whole redundant layers, not just individual weak assertions. Name the suite that will own each contract and every unique case it must absorb. Prefer a real path with controlled external dependencies over replaying internal collaborators. Another layer earns coverage only for a failure the chosen owner cannot expose, such as routing or lifecycle behavior.
  5. Change one coherent boundary. When implementation is in scope, carry unique cases into the surviving suite using write-tests before removing their old home. Extend existing cases and fixtures instead of cloning setup. Remove newly unneeded test hooks and support code in the same batch; verify production consumers before deleting an export, wrapper, reset function, global, or injection parameter. Update test discovery and CI registration when moving suites.
  6. Prove preservation. Compare the removed assertions with the survivors, looking for lost contracts and assertions that cannot fail for the intended reason. Falsify repaired or transferred regression coverage using write-tests. Isolate temporary production changes, restore the original bytes without disturbing other work, and confirm the targeted proof passes. Report baseline failures separately; investigate any new failures. Run owner and sibling suites, then required repository checks. When replacing static checks, exercise the actual command or dry-run whose contract they claimed. Keep files stable while a runner reads them.
  7. Close the batch. Run review, then reconcile the evidence record with what shipped. Report unresolved failures and unrun checks explicitly. A clean smaller suite does not prove removed coverage was redundant; the contract map and preservation evidence do.

Read the full file on GitHub · 155 lines

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. 17d ago First seen · 155 lines · 55 tokens per session scan A 25cf914e1acf

Subscribe to this mod's changes

audit-tests is a skill published in the GitHub repository dzhng/skills (1,345 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,837 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

codex-autoresearch

Triage improvement work and run or resume accepted measured loops in a local project. Architecture, documentation, UX, product study, open research, taste, and one-shot fixes stay direct unless the user explicitly requests repeated measurement with a complete experiment contract.

TheGreenCedar/codex-autoresearch · 55 tokens

arbor-agent-merge-eval

Merge and evaluation discipline for Arbor. Use for TreeSetMeta metadata, Bdev/Btest separation, eval command templates, score parsing, GitMergeBranch behavior, protected paths, required outputs, metricdirection, trunk/test score updates, medal detection, and final evaluation before stopping.

RUC-NLPIR/Arbor · 63 tokens

Autonomous Agent Testing

Testing patterns for autonomous AI coding agents like Devin and SWE-Agent including task verification, output validation, sandboxed execution, regression testing for agent behavior, and safety guardrails for autonomous code generation.

PramodDutta/qaskills · 43 tokens

Pair Programming

AI-assisted pair programming with multiple modes (driver$navigator$switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

ruvnet/ruflo · 61 tokens

Verify before done

Use before claiming work is complete — prove it with commands, do not assume.

Kilbex/Vigla · 20 tokens

Test-first

Use before implementing a feature or bugfix — write the failing test before the code.

Kilbex/Vigla · 20 tokens