test-audit
Skill15 starsChanged 6 days agoMITView on GitHub
Audits, gates, and prunes unit and E2E tests so suites only keep meaningful, critical behavioral proof. Rejects on-screen text/copy assertions, string change-detector tests, duplicate layer coverage, implementation-coupled mocks, and test-only production seams. Use when writing, modifying, reviewing, or cleaning up unit or E2E tests.
91 other projects use a version of this.
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
- Agentic-Assets/apple-mail-mcptheir 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
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 · 0
None found.
Wrote their own version · 91
- molt-bot/clawdbot★ 395ksame name
- steipete/warelay★ 395ksame name
- steipete/clawdis★ 395ksame name
- moltbot/clawdbot★ 395ksame name
- openclaw/openclaw★ 395ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- garrytan/gstack★ 143ksame name
- paperclipai/paperclip★ 118ksame name
- simstudioai/sim★ 30ksame name
81 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 repository14 other files it gives its agents.
- agent-instruction-auditSkill
- agent-tool-auditSkill
- changes-verificationSkill
- cheap-ui-auditSkill
- code-reviewSkill
- create-prSkill
- debuggingSkill
- engineering-decisionSkill
- formal-verificationSkill
- micro-animationSkill
- optimistic-uiSkill
- optimize-ciSkill
- oxlint-setupSkill
- zstack-modeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 87 edited versions we read keep these.
12
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 8
Keep unit and E2E test suites lean, trustworthy, and strictly focused on critical, meaningful behavior.
- Distinctive: line 12
Meaningful proof only: Every test must protect critical behavior, an invariant, or a user-facing contract that actually matters if it …
- Distinctive: line 13
No on-screen text or string-change tests: Do NOT test static UI copy, headings, labels, tooltips, or trivial string formatting.
- Distinctive: line 15
Delete nonsense tests: Remove change-detector tests, duplicate layer replays, mock-echoing tests, and the test-only production seams they …
- Distinctive: line 16
Delete tests when deleting code: When production code or a feature is removed, delete its corresponding tests cleanly—NEVER write a new …
- Distinctive: line 20
Before writing or retaining a unit or E2E test, answer all four questions:
- Distinctive: line 37
Write unit tests ONLY for meaningful, non-trivial logic:
- Distinctive: line 44
Write E2E tests ONLY for critical end-to-end user journeys:
- Distinctive: line 48
Never assert static screen copy, placeholder phrasing, marketing text, or exact wording.
- Distinctive: line 65
Always retain tests guarding critical contracts—slow or static does not mean disposable:
- Distinctive: line 73
Treat baseline test failures as potential product bugs first: reproduce and fix the owning code rather than deleting a failing test.
- Very specific: line 77
Targeted cleanup or PR review: Read references/audit-workflow.md before deleting any existing test.
- Very specific: line 78
Whole-subsystem pruning campaign: Read references/pruning-campaign.md to run an evidence-backed, lane-by-lane audit with independent …
- Distinctive: line 93
Never optimize for raw deletion counts.
“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
Keep unit and E2E test suites lean, trustworthy, and strictly focused on critical, meaningful behavior. Actively reject and delete nonsense tests that add noise without catching real regressions.
Core Principles
- Meaningful proof only: Every test must protect critical behavior, an invariant, or a user-facing contract that actually matters if it breaks.
- No on-screen text or string-change tests: Do NOT test static UI copy, headings, labels, tooltips, or trivial string formatting. Changing wording on a screen must never fail a test.
- Only test what is critical: Prioritize high-impact flows, state invariants, business rules, data integrity, and failure boundaries over exhaustive coverage metrics.
- Delete nonsense tests: Remove change-detector tests, duplicate layer replays, mock-echoing tests, and the test-only production seams they forced into the codebase.
- Delete tests when deleting code: When production code or a feature is removed, delete its corresponding tests cleanly—NEVER write a new test asserting that the deleted code, flag, element, or behavior is gone.
Authoring Gate (Mandatory Before Adding or Keeping Any Test)
Before writing or retaining a unit or E2E test, answer all four questions:
- What critical observable behavior, invariant, or independent contract does this protect?
- What credible real-world bug or regression would make this test fail?
- Why does existing proof miss it? Assign one primary owner at the strongest boundary. Never replay the same check across unit, integration, and E2E layers unless a layer introduces distinct transport, persistence, or lifecycle risk. Extend existing parameterized tables or shared fixtures instead of duplicating setup.
- Does it require a test-only export, flag, wrapper, or injection seam with no production caller? If yes, move the proof to a real boundary instead of polluting production code.
Additional authoring rules:
- Behavior-preserving refactors and UI copy edits must never break tests.
- Regression tests must fail before the fix for the exact intended reason and pass after the fix (report explicitly if baseline reproduction is unavailable).
- One owner regression test covers one bug; do not duplicate it across every layer the bug crossed.
Unit vs. E2E Scope Rules
Unit Tests
Write unit tests ONLY for meaningful, non-trivial logic:
- Core domain calculations, state transitions, invariants, parsers, validators, authorization rules, and edge-case/error handling.
- Skip trivial getters/setters, pass-through wrappers, static constants, literal string returns, and framework glue.
E2E Tests
Write E2E tests ONLY for critical end-to-end user journeys:
- Authentication, permissions/isolation, payments/billing, core create/update/delete persistence, and multi-step critical workflows.
- Assert real outcomes: persisted data, API side effects, navigation/route state, access control, and interactive state changes (using stable semantic roles or test IDs).
- Never assert static screen copy, placeholder phrasing, marketing text, or exact wording.
Nonsense & Junk Patterns to Reject or Delete
Reject in new changes and remove during audits (see references/audit-workflow.md for the complete catalog):
- Screen-text & string tests: Asserting static UI copy, error prose wording, labels, or snapshot diffs of rendered text.
- Change detectors: Tests coupled to internal implementation, private helpers, DOM/CSS structure, or exact mock call shapes/order.
- Self-proving & vacuous tests: Assertion-free smoke runs, self-comparisons, subject-generated expected values, or mocks implementing the exact behavior being asserted.
- Duplicate contracts: Re-testing the same rule in multiple unit suites or replaying shared helpers in every caller.
- Copied inventories: Mirroring static lists, exports, or config files line-for-line in assertions.
- Deletion-proof tests: Adding a new test to assert that removed code, deleted exports, deleted UI elements, or removed features no longer exist. When code is deleted, delete its tests—do not replace them with "confirm it was deleted" tests.
- Test-only seams: Production hooks, flags, exports, or wrappers invoked solely by tests.
- Misleading tests: Negative controls that pass on an unrelated guard, or test names claiming behavior the assertions never check.
Retention Bar (Never Blindly Delete)
Always retain tests guarding critical contracts—slow or static does not mean disposable:
- Authorization, authentication, privacy, and security boundaries
- Data persistence, migrations, storage integrity, and concurrency/race invariants
- Public API, SDK, protocol, config, and schema contracts
- Critical end-to-end revenue or core user workflows
- Real regression tests with a clear failure mode
Treat baseline test failures as potential product bugs first: reproduce and fix the owning code rather than deleting a failing test.
Audit & Pruning Workflow
- Targeted cleanup or PR review: Read
references/audit-workflow.mdbefore deleting any existing test; verify full owners, callers, and remaining coverage first, and delete obsolete test-only production seams alongside removed tests. - Whole-subsystem pruning campaign: Read
references/pruning-campaign.mdto run an evidence-backed, lane-by-lane audit with independent preservation review.
Red Flags
- Adding tests solely to bump line/branch coverage percentages
- Writing E2E assertions against static text on the screen
- Updating string assertions every time UI copy changes instead of deleting the change-detector test
- Writing a new test to prove deleted code or a removed feature is gone instead of simply deleting the old tests
- Keeping duplicate unit + E2E tests for the exact same low-level validation
- Deleting a failing test without confirming whether it caught a real product bug
- Leaving orphaned test-only exports, fixtures, or helpers behind after deleting tests
Gotchas
- Judge every test by its assertions, not its description—many tests with critical-sounding names actually assert nothing meaningful or test a mocked stub.
- Never optimize for raw deletion counts; remove low-value tests in coherent owner batches and verify surviving suites plus unused-code checks pass cleanly.
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.

