Test Code Cleaner
Finds tests that pass without proving anything, flaky waits and mock only tests, then proves each problem.
Claude's review
7/10 Forty concrete test-slop patterns ranked by severity, with the requirement to prove each serious finding by breaking the code and running it.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Cuts AI tells from test code: tests that pass without proving anything, tautological assertions, mock-only tests, hardcoded waits, coverage theater, vague names, swallowed errors, retries used as fixes. Use whenever test code is written, changed, or reviewed, including tests produced as a side effect of a feature task, and when the request mentions "review these tests", "are these tests any good", "this test always passes", "this suite is flaky", or "clean up these tests". Must always apply to test code.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: unslop-tests
description: 'Cuts AI tells from test code: tests that pass without proving anything, tautological assertions, mock-only tests, hardcoded waits, coverage theater, vague names, swallowed errors, retries used as fixes. Use whenever test code is written, changed, or reviewed, including tests produced as a side effect of a feature task, and when the request mentions "review these tests", "are these tests any good", "this test always passes", "this suite is flaky", or "clean up these tests". Must always apply to test code.'
argument-hint: 'Test files, paths, or a diff to audit (defaults to the working diff against the base branch)'
user-invocable: true
---
# Unslop Tests
Cut AI tells from test code.
A generated test suite reads well, runs green, and often proves nothing. That combination is the whole problem: the suite looks like coverage, gets reviewed like coverage, and fails to notice the bug it was written for. This skill names the tells so they can be caught by sight, then proves the important ones by running code.
Style slop wastes a reader's time. Test slop hides defects. Treat it accordingly.
## Process
1. Read the test code in scope.
2. Scan for the patterns below. Tag each finding with its tier.
3. Fix. Preserve what the test was trying to prove; if it was trying to prove nothing, say so instead of polishing it.
4. Prove every Tier 1 finding by running code. Break the behavior, watch the test, paste the output.
5. Self-audit: "which of these tests would still pass if I deleted the feature?" Fix what survives.
## Scope
Use the files or diff the caller gives you. Otherwise use the working diff against the base branch, default `main`, including uncommitted changes.
When auditing a whole suite rather than a diff, say how much of it you actually read. A sampled audit reported as a full one is its own kind of slop.
## Severity tiers
Not all tells are equal. Rank every finding.
- **Tier 1 - the test is a lie.** It passes while the behavior is broken, or it hides a real defect. Blocks the change. Must be proven by execution, not by reading.
- **Tier 2 - the test will fail for the wrong reason.** It passes today and breaks on an unrelated refactor, a slow CI machine, or a different timezone. Fix now or file it.
- **Tier 3 - the test is unreadable.** It works, but its failure output tells nobody what broke. Fix while you are in the file.
Report tiers in that order. A page of naming nits above one silently passing test buries the thing that matters.
## Patterns to detect and fix
...From jaktestowac's repository, MIT licence.
Related skills
-
Checked
JUnit and Mockito tests
Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.
8/101 credit -
Checked
Test code review
Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.
7/101 credit -
Checked
Go table driven tests
Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.
8/101 credit -
Checked
UX Click Budget Tests
Writes Playwright tests that fail when a signup or checkout flow needs more clicks or fields than allowed.
7/101 credit -
Checked
Test Cases From Tickets
Turns a ticket's acceptance criteria into traceable test cases with data, steps, expected results and proof.
7/101 credit -
Checked
VSTest to Testing Platform
Switches your .NET tests and CI from VSTest to Microsoft.Testing.Platform with the right settings and commands.
8/101 credit