test-audit

test-audit is a skill for Claude Code, Codex from wunki/dotfiles. It costs 115 tokens per session (1,851 once invoked), scanned A, original, MIT.

A codebase tool for finding tests that duplicate stronger checks, merely repeat implementation details, or cost more to maintain than the protection they provide.

In plain words
What is it for?
Use it to audit or prune tests, clean up a subsystem's test suite, or review a new test before it is added.
Why use it?
It helps reduce unnecessary tests and suite runtime while preserving tests that cover real behavior or likely regressions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Good fit Use it to audit or prune tests, clean up a subsystem's test suite, or review a new test before it is added.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wunki/dotfiles/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 wunki/dotfiles --skill test-audit
Clone the repo
git clone --depth 1 https://github.com/wunki/dotfiles

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/wunki/dotfiles/test-audit/github.svg)](https://agentmods.dev/skills/wunki/dotfiles/test-audit)
Your own site
<a href="https://agentmods.dev/skills/wunki/dotfiles/test-audit"><img src="https://agentmods.dev/badge/skills/wunki/dotfiles/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/wunki/dotfiles/test-audit"><img src="https://agentmods.dev/badge/skills/wunki/dotfiles/test-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,851 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.00115 $0.01851
Opus 5.5 $0.00046 $0.00740
Sonnet 5.5 $0.00023 $0.00370
Haiku 4.5 $0.00012 $0.00185

Measured 15d ago against content hash 010ac0e14868, 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 15d 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.

agents/skills/test-audit/SKILL.md · 180 lines

How it starts

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

Test Audit

One value bar, three modes:

  • Audit (default): a focused sweep for a few high-confidence candidates in one owner area. Land each coherent batch on its own; optimize for confidence, not deletion count.
  • Campaign: prune one whole subsystem's test surface (every test file a package, service, or feature area owns). Read CAMPAIGN.md first.
  • Authoring gate: judge a new or changed test before it lands.

Orient first

Before judging anything, learn how this repo tests:

  • Read root and scoped AGENTS.md, CLAUDE.md, and contributing docs for test rules.
  • Find the real test commands in CI config (.github/workflows, .gitlab-ci.yml, etc.), then package.json scripts, Makefile, justfile, mix.exs, pyproject.toml, Cargo.toml, or equivalent. CI is the source of truth.
  • Note coverage thresholds, test inventories, snapshot directories, and CI sharding that reference test files by path. Deletions must keep these consistent.
  • Record the baseline: run the in-scope tests at a pinned commit and note which fail.

Value bar

A test justifies its maintenance cost by protecting observable behavior, a credible regression, or an independently meaningful contract. A test that must change for a behavior-preserving refactor is suspect, not automatically deletable.

Before judging a candidate, read the complete test and its production owner: entry point, callers, callees, sibling implementations, overlapping tests, and relevant history (git log -L, git blame, the PR or issue that added it). When a test claims dependency-backed behavior, check the dependency source or types directly.

Junk patterns

Audits hunt for these; the authoring gate rejects a new test that matches one.

  • assertion-free coverage probes (runs code, asserts nothing meaningful);
  • self-comparisons and identity copiers;
  • copied fixtures, inventories, manifests, or export lists;
  • exact source, import, or string greps;
  • snapshots of trivial or unstable output that nobody reviews;
  • private-function or call-shape tests duplicated at a real boundary;
  • duplicate invocations of the same contract, often copy-pasted with one value changed;
  • per-caller replays of a shared helper's tests;
  • tests whose only purpose is preserving test-only exports, globals, or wrappers;
  • dead production code whose only callers are tests;
  • expected values computed by the function under test;
  • mocks that implement the asserted behavior, or one mock standing in for different APIs;
  • fixtures that supply the result, ordering, or callback the code under test should produce, or persistence asserted against a store the path never writes;
  • tests that restate a declared config or flag instead of exercising what it promises;
  • negative tests that pass for an unrelated reason, such as a different guard rejecting first or an error path production never reaches;
  • names that promise more than the assertions check, such as a "clears the cache" test that asserts the cache was not cleared.

Read the full file on GitHub · 180 lines

Files

What ships with it

1 file 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. 15d ago First seen · 180 lines · 115 tokens per session scan A 010ac0e14868

Subscribe to this mod's changes

test-audit is a skill published in the GitHub repository wunki/dotfiles (47 stars, last pushed 10d ago), licensed MIT. It adds 115 tokens to every session and 1,851 once invoked, about $0.0005 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-10-02.

Related

Other skills, from other repositories

test-code

Testing philosophy, test types (unit, integration, golden, fuzz, property, benchmark, smoke, E2E), per-language conventions (Rust, Go, Python, TypeScript), file organization, fixtures/mocks, CI strategy, and what NOT to test. Use when writing tests, reviewing test coverage, setting up test infrastructure, or deciding…

urmzd/dotfiles · 101 tokens

run-eval-harness

Run a project's own eval suite end to end without babysitting: locate the harness, launch it in the background, monitor to completion, parse the report into a normalized summary (pass rate, latency percentiles, tokens, cost), and diff against the previous run with per-case regressions explained. Use when asked to "run…

urmzd/dotfiles · 134 tokens

android-testing

Workflows and ADB commands for testing Android and Wear OS applications. Covers system state simulation (Doze mode, battery levels, network failover, Bluetooth proxy), location and sensor spoofing, health permissions, UI automation guidelines, and Wear OS watch faces and complications. Use when testing Android or Wear…

ithinkihaveacat/dotfiles · 82 tokens

ralph-loop

An iterative development workflow that moves from requirements to planning to building, with code review and tests required at each stage.

magic3007/dotfiles · 63 tokens

assess-quality

Foundational quality framework: the five questions (readable, easy to start, expands without bloat, consistent, intentional) every other dev skill is judged against, plus the dual-audience and workshop principles. Use when onboarding to a project, defining a quality bar, setting an assessment checklist, or arbitrating…

urmzd/dotfiles · 120 tokens

create-oss-skill

Create well-formed Agent Skills following the agentskills.io specification. Scaffold directories, write SKILL.md files, bundle scripts, and structure instructions for progressive disclosure. Use when creating a new skill, reviewing skill structure, optimizing a skill description, or setting up evals for skill quality.

urmzd/dotfiles · 63 tokens