audit-test-suite
Skill1 starsChanged 2 days agoMITView on GitHub
Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Very specific: line 19
Run what exists: Follow orient-in-codebase, run the suite, and record how many tests ran and how many passed.
- Distinctive: line 50
Use coverage to find unexplored code: Look at uncovered branches in the top areas.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit a test suite
A coverage number shows which lines ran, not which behaviour was checked. The most valuable finds are often tests that never run, tests that cannot fail, and risky behaviour nobody tested.
When to use
The task is about finding what to test, not writing one known test. Once you have
the list, use write-tests for each item.
Steps
- Run what exists. Follow
orient-in-codebase, run the suite, and record how many tests ran and how many passed. - Check that every test runs. List all test files, then check that each one is reached by a CI job, directly or through a script it calls. Files that nothing runs are the cheapest gap to close. Wire each one in only if it passes.
- Check what the coverage number means. Find which tests and source files are in scope, and what is excluded. Do not trust the percentage until you know that.
Look for tests that cannot fail. Sample tests in the riskiest areas:
- Mocks of the code under test
- Assertions that only check that something exists
- Tests that read a copy of the code, or only match source text
- Tests with no assertions, or skipped tests
- Empty loops, such as a table that no longer has any rows
Map risk. List the areas by the damage a bug would cause:
- Money, credits, quota, entitlements
- Login, permissions, data belonging to other users
- Data loss and irreversible actions
- Secrets and personal data
- Schedules, retries, state changes
- Everything else
- Compare risk with tests. For each of the top areas, use the list in step 2
of
write-tests. Mark each item as tested, weakly tested or missing. Read the test before you mark it. A matching file name is not evidence. - Use coverage to find unexplored code. Look at uncovered branches in the top areas. Skip generated code and trivial getters.
- Rank the gaps. Order by risk first, then by effort. Make each item a specific case, not an area.
Stop and ask when
- The suite cannot run locally.
- Fixing a gap needs a production change that you were not asked to make.
Common mistakes
| Tempting move | Why it fails | Do this instead |
| Start with the lowest coverage file | It may be harmless | Start from risk |
| Write tests to hit lines | Adds tests that check nothing | Target a behaviour |
| Report "add tests for billing" | Nobody can act on that | Name the exact case |
| Exclude files to raise the number | Hides the gap | Keep the scope unchanged |
| Lower a coverage floor to pass | Removes the protection | Add real tests |
| Assume a test checks what its name says | Names can be wrong | Read the assertions |
Example
Weak finding: "Payment module has 62% coverage."
Strong finding:
1. High: a repeated refund webhook can credit twice.
Evidence: `refund()` has no idempotency check; `refund.test` sends one event.
Add: deliver the same event twice and concurrently, and assert one credit.Report
Suite: <tests run, passed, failed, skipped>
Not running: <files no job reaches>
Cannot fail: <tests that check nothing, and why>
Coverage scope: <what the number includes and excludes>
Gaps, highest risk first:
1. <severity>: <defect that could ship>
Evidence: <file and what you read>
Add: <exact test case>Other versions2 projects use a version of this.
Word for word · 2
- Remote-Arc/remote-arc★ 5100% same
- yaohuangguan/remote-arc★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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.
- AGENTS.mdAGENTS.md
- change-data-safelySkill
- debug-failureSkill
- fix-flaky-testSkill
- hand-off-workSkill
- implement-changeSkill
- orient-in-codebaseSkill
- refactor-safelySkill
- review-codeSkill
- secure-changeSkill
- use-external-apiSkill
- verify-and-reportSkill
- write-pull-requestSkill
- write-testsSkill
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.

