test-audit
Skill23 starsChanged 8 days agoApache-2.0View on GitHub
Use when a test's value is in doubt or to audit and prune low-value, implementation-coupled or duplicate tests already in the suite. Writing a new test -> tdd. Layer choice -> layered-testing-executor.
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 68 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 59
Keep a test that independently enforces a public API, protocol, config, migration, storage, security, platform, default, byte-exact output, …
- Distinctive: line 61
call order, when order is observable behavior.
- Distinctive: line 70
Read-only, with evidence reported before any edit.
- Distinctive: line 90
Do not edit while a test run is in flight in the same checkout.
- Distinctive: line 92
Run the smallest owner tests and their siblings with the repo's own runner: the delta only.
- Distinctive: line 93
If you removed a source grep or manifest check, run the script or dry-run that owns the real contract.
- Distinctive: line 94
Run the repo's formatter on the touched files, then git diff --check.
- Distinctive: line 95
Read git diff --numstat and report production LOC separately from test and test-support LOC.
“Common” is measured: kept by at least 6 in 10 of the 68 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
A test is a cost until it earns its place
This skill owns the pruning of tests that already exist: hunt the ones that restate the code, duplicate stronger proof, couple to implementation, or keep test-only production seams alive. Writing a new test, with its gate and bug-regression rule, belongs to tdd. Optimize for confidence per line maintained, never for a deletion count.
Junk patterns
An audit hunts existing tests that match one; tdd's gate refuses a new test that matches one, and reads this list as the single authority.
- probes with no assertion, written to touch lines;
- a value compared with itself, or a copier that mirrors its own input;
- fixtures, inventories, manifests or export lists copied from the source they check;
- greps over source, imports or literal strings in place of running the behavior, and assertions about prose, docs, metadata or trivial mechanics (a getter, a default, an enum value);
- tests about tests, or written only to raise a count or a coverage number;
- private-predicate or call-shape tests already covered at the real boundary;
- the same contract invoked twice;
- per-adapter replays of a shared helper's tests;
- tests that exist only to keep a test-only export, global or wrapper alive, and production code whose only callers are tests;
- expected values produced by the code under test;
- mocks that implement the behavior being asserted, or one identical mock standing in for different APIs;
- fixtures that supply the ordering, receipt or callback the owner should produce, or persistence asserted against a store the path never writes;
- capability tests that restate declared flags without exercising the delivery the flag promises;
- negative controls that pass for an unrelated reason, such as a denial from a different guard or a rejection the path never reaches;
- names or setups that promise more than the input exercises.
Value bar
A test pays for its upkeep by protecting behavior, a credible regression or an independent contract. In an audit, a test that must change for a behavior-preserving reorganization is suspect, not automatically deletable; tdd's gate still refuses new ones like it.
Before judging a candidate, read the repo's instruction files, then the whole test and its production owner: entry point, callers, callees, sibling implementations, overlapping tests and the history of why it exists. When the test claims behavior of a dependency, read the dependency's source or types.
Retention bar
Keep a test that independently enforces a public API, protocol, config, migration, storage, security, platform, default, byte-exact output, cross-language, packaging, release or architecture contract. Also keep:
- call order, when order is observable behavior;
- a regression with a credible failure mode;
- a source inspection that is the cheapest independent guard: it fails when the contract changes (the user-facing key, byte or path) and survives an identifier-only refactor;
- a retained test that fails on the baseline. Treat it as a possible product bug: reproduce it and repair the owner, never delete it.
Static or slow is not a deletion reason. A test that resembles the implementation may be the independent contract; prove otherwise before removing it.
Discovery
Read-only, with evidence reported before any edit. A few high-confidence candidates beat a large speculative inventory. Hunt the junk patterns. On a broad scope, split by area (core, adapters, UI and scripts, a cross-cutting pattern sweep) only when independent readers are available.
Fill every field before deleting a candidate; a missing field means it is not ready:
- exact test name and location;
- the failure it can actually detect;
- non-test callers of the production or support seam it covers;
- the stronger surviving owner-boundary proof, or why none is needed;
- history: why the test or seam exists;
- the production or test-support deletion it unlocks;
- risk, and the focused command that validates it.
Edit shape
One coherent owner-boundary batch. Delete test-only exports, globals, wrappers and dead production paths instead of keeping aliases. Move a retained regression to its canonical owner; fold repeated package or dependency assertions into one generic contract. Prefer net-negative production LOC. Never add a replacement test that restates the same implementation, and never delete uncertain candidates to raise a count.
Execution and handoff
To prune one subsystem's whole test surface (every test file a module or component owns), do it as one batch: discover across the whole surface first, fill the evidence fields per candidate, make one edit batch, validate once, hand off once. Keep the plan in the report or PR text, not in a side file. A surface too big for one session is split into coherent batches, never stretched.
Do not edit while a test run is in flight in the same checkout. Validate:
- Run the smallest owner tests and their siblings with the repo's own runner: the delta only.
- If you removed a source grep or manifest check, run the script or dry-run that owns the real contract.
- Run the repo's formatter on the touched files, then
git diff --check. - Read
git diff --numstatand report production LOC separately from test and test-support LOC.
Hand off:
- root cause and the junk categories removed;
- production simplifications unlocked;
- retained false positives, and why they stay valuable;
- checks actually run, with exit status, and any gap named;
- production LOC versus test LOC;
- named follow-ups.
Other versions71 projects use a version of this.
Word for word · 0
None found.
Edited · 21
- molt-bot/clawdbot★ 391k17% same
- superplanehq/superplane★ 8.5k16% same
- BuilderIO/agent-native★ 7.6k14% same
- vercel/eve★ 5.8k12% same
- wannabespace/conar★ 1.5k14% same
- friuns2/openclaw-android-assistant★ 57317% same
- OpenClawAndroid/openclaw-android-assistant★ 55617% same
- Genshin-bots/gsuid_core★ 36317% same
- 851-labs/codevisor★ 2211% same
- shortcuts/dotfiles★ 1817% same
11 more not listed
Wrote their own version · 50
- steipete/warelay★ 394ksame name
- moltbot/clawdbot★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- steipete/clawdis★ 394ksame name
- openclaw/openclaw★ 394ksame name
- garrytan/gstack★ 139ksame name
- paperclipai/paperclip★ 110ksame name
- simstudioai/sim★ 30ksame name
- every-app/open-seo★ 26ksame name
40 more not listed
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.
Used alongsideProjects with it also use pr-simplify, technical-documentation and 9 more.
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.
bighamxSkillpr-simplify
Simplify your own change to its smallest complete fix. Use before opening a PR, before pushing large repairs to one, or when asked to shrink a PR or clean up slop.
Also in 3 projects that use this
spitoglouSkilltechnical-documentation
Create and improve technical documentation including architecture designs, PRDs, API docs, code explanations, and visual diagrams. Use when asked to document systems, explain codebases, create design documents, write PRDs, generate Mermaid/PlantUML diagrams, review architecture, write user stories, or create pull request descriptions. Triggers include "document this", "create a design doc", "explain this code", "write a PRD", "create a diagram", "architecture overview", "user story for", "PR description".
Also in 3 projects that use this
alxyrginSkillwriting
Создание контента для личного бренда — статьи, посты, туториалы. Use when user asks to "напиши статью", "создай пост", "подготовь контент", "write article", "create content", or when task requires content creation for blogging, LinkedIn, Medium, or other publishing platforms.
Also in 3 projects that use this
jaydubya818Skillhow
Use for runtime, ownership, layering, code-walkthrough, and placement questions.
Also in 3 projects that use this
MicrosoftSkillcleanup
Also in 3 projects that use this
AnthropicSkilleli5
Explain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how something works.
Also in 3 projects that use this
In this repository21 other files it gives its agents.
- claude-code-orchestratorSkill
- codebase-designSkill
- code-reviewSkill
- codex-subagent-routingSkill
- diagnosing-bugsSkill
- docker-composeSkill
- exhaustive-repo-cleanup-auditSkill
- gemini-cli-orchestratorSkill
- grok-build-orchestratorSkill
- kill-slopSkill
- kimi-cli-orchestratorSkill
- layered-testing-executorSkill
- legacy-code-changeSkill
- pragmatic-engineeringSkill
- refactoring-catalogSkill
- security-reviewSkill
- tddSkill
- testing-e2e-playwrightSkill
- windows-shell-interopSkill
- worktree-lifecycleSkill
- xp-agile-deliverySkill
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.

