test-audit
Skill0 starsChanged 5 months agoMITView on GitHub
Writing/changing/reviewing/sweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.
91 other projects use a version of this, 14 of them edited.
Adopted by
Most recently taken up by
- weapp-vite/weapp-vitetheir own version, first seen Nov 29, 2026
- parzival1l/skillstheir own version, first seen Nov 29, 2026
- phant0um/claude-skillstheir own version, first seen Nov 29, 2026
- brasillero/brstacktheir own version, first seen Nov 29, 2026
- tedix-hq/tedixtheir own version, first seen Nov 29, 2026
- sneg55/agent-startertheir own version, first seen Nov 29, 2026
Used with
Projects with it also use redo, video-transcripts 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.
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
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
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 4 projects that use this
lorissun2025Skillproject-docs
Software development project documentation management and progress tracking. Use when: (1) Initializing a new software project and need to create all required documentation (MRD, PRD, Technical Plan, Roadmap), (2) Updating project roadmap after completing tasks, (3) Getting a summary of current project progress, (4) Resuming work on a project after a break and need to understand what's next, (5) Checking if required project documents exist and are complete
Also in 3 projects that use this
swyxioSkillautoreview
Perform a structured final code review of a local diff, commit, branch, or pull request. Use only when the user explicitly asks for autoreview, a second review, or a final review before commit, merge, or release, or when repository instructions require one. Do not trigger automatically for ordinary non-trivial edits.
Also in 3 projects that use this
SentrySkilldeslop
Strip AI-generated noise from the diff before pushing — extra comments a human wouldn't write, defensive try/catch in trusted code paths, casts to any, inline imports in Python, and other style inconsistencies with the surrounding file. Use this immediately before commit so the diff stays clean.
Also in 7 projects that use this
Other versions91 projects use a version of this.
Word for word · 0
None found.
Edited · 14
- molt-bot/clawdbot★ 395k88% same
- steipete/warelay★ 395k88% same
- steipete/clawdis★ 395k88% same
- moltbot/clawdbot★ 395k88% same
- openclaw/openclaw★ 395k88% same
- moltbot/moltbot★ 394k88% same
- clawdbot/clawdbot★ 394k88% same
- alexj11324/Mikka★ 9081% same
- aspectly-labs/Mikka★ 9081% same
- bighamx/openclaw-android-node-apk★ 5788% same
4 more not listed
Wrote their own version · 77
- garrytan/gstack★ 143ksame name
- paperclipai/paperclip★ 118ksame name
- simstudioai/sim★ 30ksame name
- every-app/open-seo★ 29ksame name
- coder/coder★ 18ksame name
- superplanehq/superplane★ 10ksame name
- BuilderIO/agent-native★ 7.8ksame name
- vercel/eve★ 6.1ksame name
- supabase/cli★ 2.5ksame name
- openclaw/openclaw-windows-node★ 2.2ksame name
67 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apple-mail-mcpb/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .claude-plugin/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- tasks/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- tools/CLAUDE.mdCLAUDE.md
- context-guidance-auditSkill
- cowork-plugin-customizerSkill
- create-cowork-pluginSkill
- finalize-apple-mail-mcpSkill
- find-skillsSkill
- mail-scripting-dictionarySkill
- marketplace-release-handoffSkill
- mcp-builderSkill
- plugin-creatorSkill
- plugin-settingsSkill
- plugin-structureSkill
- python-performance-optimizationSkill
- reviewing-codeSkill
- testing-pythonSkill
- thermo-nuclear-code-quality-reviewSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 87 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before adding test, answer:
- Distinctive: line 24
Use the repository test guide.
- Distinctive: line 26
Use native Mail-free AppleScript with synthetic objects when the regression lives in emitted script behavior, and retain the compiler gate …
- Distinctive: line 48
Keep independent API, SDK, protocol, config, migration, storage, security, platform, default, prompt-byte, generated-language, package, …
- Very specific: line 57
Before audit edit: read candidate evidence and workflow.
- Distinctive: line 59
Delete obsolete production seams with tests.
- Very specific: line 60
Run owner and sibling tests with .venv/bin/pytest.
“Common” is measured: kept by at least 6 in 10 of the 87 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
- Authoring gates every new/changed test.
- Audits: remove low-value proof in coherent owner batches; never chase deletion counts.
- Whole-subsystem campaign: read CAMPAIGN.md first.
Authoring gate
Before adding test, answer:
- Protected observable behavior, invariant, or independent contract?
- Credible regression that makes it fail?
- Why existing proof misses it? Each contract: one primary owner at strongest boundary. Another layer needs distinct transport/lifecycle risk. Extend tables/shared fixtures; consolidate repeated setup.
- Export, flag, wrapper, injection hook with no production caller needed? Move proof to real boundary instead.
- Use the repository test guide. Mock Mail.app or EventKit at the I/O boundary. Keep parsing, paging, and file writes real where they are the contract. Use native Mail-free AppleScript with synthetic objects when the regression lives in emitted script behavior, and retain the compiler gate for generated syntax.
- Regressions must fail pre-fix for intended reason, pass after repair; report unavailable baseline proof.
- One owner regression covers bug; never replay at every crossed layer.
- Behavior-preserving refactors should not break test.
Junk patterns
- Reject self-comparisons, copied inventories, source greps, implementation/call-shape assertions, duplicate contracts, test-only seams, subject-generated expected values, mocks supplying asserted behavior.
- Fixtures must not fabricate owner receipts/order or claim persistence path never writes.
- Negative controls must fail at intended guard; names must match exercised behavior.
- Auditing candidates: use full checklist.
- For a dropped-row, partial-result, or file-write regression, assert the actual IDs, completion state, or bytes. Exercise tied ordering across pages, failures after an earlier success, repeated names, and retries where those risks apply.
Retention bar
- Keep independent API, SDK, protocol, config, migration, storage, security, platform, default, prompt-byte, generated-language, package, release, architecture, observable-ordering contracts. Static/slow ≠ disposable.
- Source inspection must survive identifier-only refactors and guard independent user-facing contract.
- Baseline failures may be bugs to repair, not tests to delete.
Audit and validation
- Before audit edit: read candidate evidence and workflow; inspect full owners/callers/history; record remaining proof before deletion.
- Delete obsolete production seams with tests; never optimize for deletion counts.
- Run owner and sibling tests with
.venv/bin/pytest. Recount withPYTEST_ADDOPTS='' .venv/bin/pytest --collect-only testsif collection changes and updatetools/expected_test_count.txt. Use the local gate for the changed surface and bounded live verification for runtime changes. Never run concurrent Mail calls or publish real mail output. - Report causes, retained contracts, proof/cost, production versus test LOC, follow-ups. Commit/push/land only with task authority.
Adapted from the OpenClaw test-audit skill under the MIT license.
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.

