test-audit
Skill2 starsChanged 3 months agoMITView on GitHub
Decide whether a proposed or existing test should exist. Activate alongside the coding skill whenever writing, changing, reviewing, or removing tests, including a test an agent is about to add for a small edit. Gate new tests before they land. Audit low-value, duplicative, implementation-coupled, or assertion-free tests and the test-only production seams they require. Also use when asked to prune, sweep, delete, or cut tests, or to remove useless tests while keeping real behavior covered.
18 other projects use a version of this, 9 of them edited.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- rafaelob/pragmatic-agent-skillsedited, first seen Oct 5, 2026
- superplanehq/superplaneedited, first seen Oct 5, 2026
- udecode/dotaiedited, first seen Oct 4, 2026
- kontourai/stationedited, first seen Oct 4, 2026
- iliaal/ai-skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 9
- superplanehq/superplane★ 7.7k12% same
- vercel/eve★ 5.5k11% same
- udecode/dotai★ 1.2k11% same
- rafaelob/pragmatic-agent-skills★ 2310% same
- shortcuts/dotfiles★ 1813% same
- hcaiano/skills★ 311% same
- Rvey/agent-engineering-kit★ 313% same
- kontourai/station★ 212% same
- million-views/skills★ 211% same
Wrote their own version · 9
- garrytan/gstack★ 143ksame name
- supabase/cli★ 2.4ksame name
- mblode/agent-skills★ 142same name
- PyModel/jev-judge-mcp★ 91same name
- iliaal/ai-skills★ 43same name
- 851-labs/codevisor★ 16same name
- greglas75/zuvo★ 8same name
- juliomrqz/skills★ 1same name
- T0mSIlver/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- act-within-scopeSkill
- asd-ste100Skill
- codingSkill
- context-managementSkill
- create-verification-skillSkill
- dockerfileSkill
- domain-modelingSkill
- encode-lessonsSkill
- experience-firstSkill
- eyes-onSkill
- flux-ghcr-image-automationSkill
- flux-kustomize-layoutSkill
- frontend-designSkill
- git-commit-workflowSkill
- git-worktreeSkill
- grill-with-docsSkill
- implement-ticketsSkill
- maintain-verification-skillSkill
- makefileSkill
- omarchy-developmentSkill
- releaseSkill
- skill-evaluationSkill
- technical-writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Read those when they are not already loaded.
- Distinctive: line 24
Use the authoring gate for a test this task is about to add or rewrite.
- Distinctive: line 31
Before adding a test, or landing a change that rewrites what a test claims, answer four questions.
- Distinctive: line 55
When rejecting a proposed test, name the failed question or junk pattern and the existing proof, if any.
- Distinctive: line 86
Keep the primary proof of a contract from the coding skill's Tests section.
- Distinctive: line 96
Keep a static or slow test when it is still the proof of a contract.
- Distinctive: line 106
When the user sets a budget, such as a fraction of a subsystem, continue in coherent batches until the budget is met or the remaining …
- Distinctive: line 118
Read the whole test and its production owner before judging it: entry point, callers, callees, siblings, overlapping tests, how CI runs …
- Very specific: line 142
Commit, push, or open a PR only when the user asked.
- Distinctive: line 147
Use the project's own check for the owner and its siblings.
- Distinctive: line 152
Do not edit files a test run is already writing.
- Distinctive: line 163
Commit or PR state, when the user asked to land the work.
- Distinctive: line 171
Keep this repository's admission rules.
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Audit
Decide whether a test should exist. Run this check before adding a test, when changing or reviewing one, and when sweeping tests that are already there. It runs with the coding skill.
The coding skill owns what a worthwhile test protects and how to prove it: the
Tests section of its references/principles.md, the kind of check in
references/verification.md, and invariant checks in references/assertions.md.
Read those when they are not already loaded. Do not restate them here.
Use the authoring gate for a test this task is about to add or rewrite. Use a focused audit for a file, a diff, or a handful of suspects. For a subsystem, package, or a budget the user set, read references/campaign.md before editing.
Authoring gate
Before adding a test, or landing a change that rewrites what a test claims, answer four questions. A missing answer means do not add it yet.
- What observable behavior, invariant, or independent contract does it protect?
- What credible regression makes it fail?
- Why does an existing test not already catch that failure? One contract has one primary test at the strongest boundary. Another layer needs a distinct risk the owner cannot reach, such as transport or lifecycle. Extend a table or shared fixture instead of adding a near-duplicate.
- Does it need a production seam that no production caller needs, such as an export, flag, wrapper, or injection hook? If it does, test the real boundary instead.
Then match the test against every junk pattern. A match fails the gate unless retention names the contract it guards on its own.
A test that breaks under a behavior-preserving refactor asserts implementation. Rewrite it at the owning boundary, or drop it.
A bug that can recur through a public seam gets one regression at that seam. Prove it the way the coding skill's Tests section describes. Reject a regression that never failed. It proves the mock. Do not replay the same scenario at every layer it crosses.
When rejecting a proposed test, name the failed question or junk pattern and the existing proof, if any.
Junk patterns
Reject a new test that matches one of these. On an audit, these are the candidates to inspect.
- An assertion-free coverage probe.
- A self-comparison, or a copier that checks a value against itself.
- A copied fixture, inventory, manifest, or export list.
- A source-text check, unless the coding skill's Tests section treats that text as the contract.
- A private predicate or call-shape test duplicated at the real boundary.
- A second invocation of the same contract.
- A provider-local replay of a shared helper.
- A test whose only job is to preserve a test-only export, global, or wrapper.
- Production code whose only callers are tests.
- An expected value produced by the helper or renderer under test.
- A mock that implements the asserted behavior, or one identical mock standing in for different APIs.
- A fixture that supplies the receipt, admission, or callback order the owner should produce. A persistence assertion against a store the path never writes.
- A capability test that restates a declared flag instead of exercising the delivery or acknowledgement that flag promises.
- A negative control that passes for an unrelated reason, such as a denial from a different guard, or a rejection the production path never reaches.
- A name or fixture that promises more than the input exercises.
Retention
Keep the primary proof of a contract from the coding skill's Tests section. Also keep:
- Ordering, when a caller can observe that the order is wrong.
- A regression with a credible failure mode that the owner-boundary proof does not already catch.
- A test that fails on the current baseline. Treat that as a possible product bug. Reproduce it and repair the owner. Do not delete it to make the run green.
Keep a static or slow test when it is still the proof of a contract. A coverage percentage does not decide admission. A test that resembles implementation may still be the only proof of the contract. Show the stronger remaining proof before removing it.
A touched test that still protects its contract stays. Update it when that contract still holds. Remove or replace a test that protects no contract.
Budget
When the user sets a budget, such as a fraction of a subsystem, continue in coherent batches until the budget is met or the remaining candidates fail the evidence bar. Stopping after the first obvious file leaves the rest of the budget undone. Use only a budget the user set. Report coverage when the project already measures it. The evidence record decides whether a contract survived.
Focused audit
Stay read-only until each candidate has the evidence below. Prefer a few high-confidence candidates over a speculative inventory. Hunt the junk patterns.
Read the whole test and its production owner before judging it: entry point, callers, callees, siblings, overlapping tests, how CI runs them, and the history that explains why the test or seam exists. When the test claims dependency-backed behavior, read that dependency's source or types.
Record every field before editing. A missing field means the candidate is not ready to delete.
- Exact test name and location.
- The failure it can actually detect.
- Non-test callers of the production or support seam it covers.
- The stronger owner-boundary proof that remains, or why no proof is needed.
- The history and the reason the test or seam exists.
- The production or test-support deletion this unlocks.
- The risk, and the focused command that checks it.
Edit
Change one coherent owner-boundary batch. Delete the test-only exports, globals, wrappers, and dead production paths that batch unlocks. Move a retained regression to its canonical owner. Do not add a replacement that restates the same implementation. Do not turn an uncertain candidate into a deletion to raise the count.
Commit, push, or open a PR only when the user asked. Use
git-commit-workflow when they did.
Validation
Use the project's own check for the owner and its siblings. When a source-text assertion goes away, run the executable check that owns the real contract. Inspect the diff and report production and tooling changes separately from tests and test support.
Do not edit files a test run is already writing.
Handoff
Report:
- The low-value categories removed, and why they were low value.
- Production seams simplified.
- Candidates kept, and why they still earn their cost.
- The checks actually run, and any check that could not run.
- Production lines changed versus test and test-support lines.
- Commit or PR state, when the user asked to land the work.
- Named follow-ups.
Source
Adapted from OpenClaw's test-audit skill (Copyright (c) 2026 OpenClaw Foundation), used under the MIT License. Keep this repository's admission rules. Use the project's own test command, layout, and git workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

