test-audit
Skill0 starsChanged 5 days agoMITView on GitHub
Use when the user asks to audit, prune, sweep, or clean up existing tests, or to find low-value ones. Prunes one evidenced batch without waiting for approval and reports how to restore it. Not for writing new tests.
80 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- udecode/better-convextheir own version, first seen Nov 9, 2026
- TheLunchTrae/claude-code-configstheir own version, first seen Nov 8, 2026
- mageyuki/skillstheir own version, first seen Nov 8, 2026
- openclaw/openclaw-enterprisetheir own version, first seen Nov 8, 2026
- Swarzy-LLC/skillstheir own version, first seen Nov 8, 2026
- MammadovEshgin/clean-code-skilltheir own version, first seen Nov 8, 2026
Used with
Projects with it also use chips, redo and 10 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.
udecodeSkillchips
Run the project's suggested-task ledger, the chips. /chips alone brings this session's open tasks up to date: it applies what the ledger helper says, settles stale and split tasks, cards what can start and reports the board, and /chips all also takes the ship-list tasks and the ones no live session owns, and merges duplicate tasks across the board. Use for /chips, /chips offer, start or drop, \"what chips are open\", \"suggest a task for X\", \"update the chips\", \"clean up the chips\", \"which chips are stale\", \"is this chip still worth doing\", \"merge duplicate chips\", at the last hand-back of a run that offered a task, and whenever pstack would file a tracked issue, a follow-up, a reflect Backlog item or an out-of-band PR.
Also in 3 projects that use this
Scylla23Skillredo
Re-run the last routed task one model tier up (haiku → sonnet → opus → fable). User-invoked escalation when the previous result missed. Pass --dry-run to preview without running.
Also in 3 projects that use this
Aetheria-Labs1Skillplan-page
Plan one storefront page from strategy through final copy, section order, proof, offers, template direction, responsive layout, and production asset requirements. Stops at an approved execution-ready specification.
Also in 3 projects that use this
SocialKit-APISkillvideo-transcripts
Extract transcripts from social videos through SocialKit across YouTube, TikTok, Instagram, Facebook, X/Twitter, LinkedIn, and direct video file URLs. Use when the user asks to transcribe, get captions or subtitles, pull the spoken text, or read what a video says, including one video or many at once. Returns full text plus timestamped segments. Not for posting, private accounts, or unrelated website scraping.
Also in 3 projects that use this
clawdbotSkillpr-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
Other versions80 projects use a version of this.
Word for word · 1
- Gabriel-Lafrance/Skills★ 0100% same
Edited · 1
- Akindu23/my-agent-skills★ 413% same
Wrote their own version · 78
- moltbot/clawdbot★ 394ksame name
- steipete/warelay★ 394ksame name
- steipete/clawdis★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- openclaw/openclaw★ 394ksame name
- molt-bot/clawdbot★ 391ksame name
- garrytan/gstack★ 141ksame name
- paperclipai/paperclip★ 112ksame name
- simstudioai/sim★ 30ksame name
68 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.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyzeSkill
- ask-gabrielSkill
- babysit-prSkill
- councilSkill
- gabriel-modeSkill
- grill-meSkill
- hillclimbSkill
- howSkill
- review-loopSkill
- reviewSkill
- rulesSkill
- setup-gabriel-skillsSkill
- takeover-prSkill
- taskSkill
- verificationSkill
- whySkill
- write-ticketSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 76 edited versions we read keep these.
7
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 20
Every run: code-quality.md, code-structure.md, and testing.md.
- Distinctive: line 22
Before asking the user anything: Asking the user.
- Distinctive: line 62
Delete obsolete test-only exports, globals, wrappers, and dead production paths outright, leaving no aliases.
- Distinctive: line 65
Prefer a net-negative production line count.
- Distinctive: line 71
Run the smallest owner and sibling tests with the repo's own runner and a path or filter.
- Distinctive: line 73
Run targeted formatting, then git diff --check.
- Very specific: line 75
Run /review on the local branch diff.
- Distinctive: line 76
Before a push, run the CI mirror.
“Common” is measured: kept by at least 6 in 10 of the 76 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
Find existing tests that cost more than they protect, prove it with evidence, and remove or repair one coherent batch, then report it with a way to restore it. Optimize for confidence, not deletion count.
Two modes share one value bar:
- Audit (default): a focused sweep for a few high-confidence candidates.
- Campaign: prune every test one subsystem owns (one package, plugin, or core area) in one PR. Before starting one, read campaign.md.
Adapted from openclaw test-audit (MIT).
Read when
- Every run: code-quality.md, code-structure.md, and testing.md. The mandatory No tautological tests rule, junk patterns, and retention bar live there, not here.
- Throughout: keep judgment in the main context and hand large reads to a subagent (main-context.md). Discovery and ledgers are subagent work.
- Before asking the user anything: Asking the user. Findings follow Plain language.
- Running checks: tooling.md. Shipping: shipping.md.
Contract
- Discovery is read-only. Change tests, fixtures, or source only for the batch whose evidence is complete, and keep that batch restorable on its own.
- This skill does not add new coverage. Moving a retained regression to its owner or repairing a vacuous assertion is part of the batch. A new test follows testing.md and needs the user's acceptance.
- A test that must change for a behavior-preserving reorganization is suspect, not automatically deletable.
- User start only.
/taskdoes not nest this skill.
Value bar
A test earns its maintenance cost by protecting behavior, a credible regression, or an independently meaningful contract.
Before judging a candidate, read the complete test and its production owner: the entry point, callers, callees, sibling implementations, overlapping tests, CI routing, and relevant history. Read the root and scoped AGENTS.md files first. When the test claims dependency-backed behavior, read the dependency source or types directly.
Process
- Scope. Name the area and the mode. If the user named nothing, pick the area with the most likely candidates and list it under Decided for you.
- Discover. Hunt for the junk patterns. For a broad scope, give each production owner area to a parallel read-only subagent (for example core packages, plugins or integrations, UI and apps, scripts and tooling, plus one cross-cutting pattern sweep). Ask each for short candidate rows, not file dumps. Prefer a few high-confidence candidates over a large speculative list.
- Record evidence. Fill every candidate evidence field. A missing field means the candidate is not ready. Check each against the retention bar; a match is a retained false positive, not a candidate.
- Edit the batch in the edit shape, keeping it separate from other changes so it can be restored on its own.
- Validate with the validation steps.
- Hand off with the handoff. Offer the next high-confidence batch as a separate follow-up, not folded into this one.
Candidate evidence
| Field | What to record |
| Test | Exact name and file |
| Detects | The failure it can actually catch |
| Callers | Non-test callers of the covered production or test-support hook |
| Remaining proof | The stronger owner-boundary test that stays, or why no proof is needed |
| History | Why the test or hook exists (commit, PR, or issue) |
| Unlocks | Production or test-support code the deletion removes |
| Risk | What could be lost, and the focused command that validates it |
Edit shape
- One coherent owner-boundary batch per change.
- Delete obsolete test-only exports, globals, wrappers, and dead production paths outright, leaving no aliases.
- Move retained regressions to their canonical owner.
- Fold repeated package or dependency assertions into one generic contract.
- Prefer a net-negative production line count. Add no replacement tests that restate the same implementation. Leave an uncertain candidate alone instead of cleaning it up to raise the deletion count.
Validation
Edit source or tests only when no test watcher is running in the checkout.
- Run the smallest owner and sibling tests with the repo's own runner and a path or filter.
- For a removed source grep or plan assertion, run the script or dry-run that owns the real contract.
- Run targeted formatting, then
git diff --check. - Inspect
git diff --numstat. Report production and tooling lines apart from test and test-support lines. - Run
/reviewon the local branch diff. - Before a push, run the CI mirror.
Handoff
## Test audit
- **Removed:** <categories, with test count>
- **Production simplified:** <hooks, exports, dead paths removed>
- **Kept on purpose:** <false positives and the contract each guards>
- **Proof run:** `<command>`: pass | fail
- **Lines:** production <+/->, tests and support <+/->
- **PR:** <link and state, or not shipped>
- **Restore:** <exact command that brings the batch back>
- **Next batch:** <named follow-up, or none>Anti-patterns
- Deleting a test because it is static, slow, or looks like implementation, without proving another test owns the contract
- Deleting a test that fails on the current code instead of treating it as a possible bug
- Pasting whole test files into chat instead of evidence rows
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.

