/tslateman-skills:test-review [test path or suite to review, defaults to working-tree changes]from tslateman-skills
Audit tests for agent-typical anti-patterns: assertions that cannot fail, mocking the unit under test, sleep-based timing, snapshots regenerated to match whatever the code did, tests asserting on implementation detail, skipped or swallowed failures. Language-agnostic — judges whether a suite can actually detect a regression. Use when: reviewing agent-written tests, before trusting a green suite, or on "test review", "review these tests", "are these tests real", "would this catch a bug". For designing a test strategy use /testing; for driving code from a failing test use /test-first; for generic bug hunts use /code-review.
Ships in tslateman-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A test earns its keep by failing when the code breaks. The agent-typical failure mode is a test written to pass: it runs the code, observes whatever came out, and asserts that. Green suite, zero detection power. The tell is that you cannot describe a change to the production code that would turn the test red.
That question — what break would this catch? — is the whole review. Everything below is a way of finding tests that have no answer to it.
Changed test files:
!git diff --name-only HEAD 2>/dev/null | grep -iE '(test|spec)' || echo "(not a git repo or no changed test files — review the given path instead)"
Review $ARGUMENTS if given; otherwise the changed test files above;
otherwise ask which suite. Read both the tests and the code under test —
a test can only be judged against what it claims to protect. Note the
language and framework; the triggers below are universal but their
spelling is not.
Run the suite and record what it reports:
<the project's own test command: pytest, go test -race ./..., npm test,
cargo test — check the Makefile first, since targets there mirror CI>
Capture three numbers before reading any code: tests passed, tests skipped, and wall-clock time. Skipped tests are invisible in a green summary. A suite that runs suspiciously fast may not be exercising what it claims; one that runs slowly often contains sleeps.
If coverage tooling is already configured, run it — but treat coverage as a map of what was executed, never as evidence of what was checked. A tautological test covers lines perfectly.
Then grep the scoped tests for triggers no tool can judge:
| Trigger | Suspicion |
|---|---|
assert True, expect(true).toBe(true), assert.NoError alone | Assertion that cannot fail |
| assertion comparing a value to itself, or to a call of the same function | Tautology — the test restates the code |
| mock or patch naming the unit under test | The test exercises the mock, not the code |
sleep, setTimeout, time.Sleep in a test | Timing guess standing in for synchronization — flake in waiting |
| snapshot or golden file with no assertion on its content | Records behavior; regenerating on failure erases the signal |
skip, xit, t.Skip, @pytest.mark.skip | Disabled test — permanent or forgotten? |
try/except or catch inside a test body | Failure swallowed before the framework sees it |
| assertions on private methods, call counts, or internal state | Implementation-coupled — breaks on refactor, silent on behavior change |
| no assertion at all (smoke-only) | Verifies "does not crash" — say so, do not call it coverage |
| identical setup copied across many tests | Shared fixture drifting out of sync with reality |
| hardcoded dates, ports, paths, or ordering assumptions | Passes today, on this machine, in this order |
For each test, answer the falsifiability question, then bucket it — this is the review's actual work:
A repeated trigger is one finding, not many: twelve tests mocking the same collaborator point at one seam that resists testing.
Also report the inverse, which greps cannot find: behavior the code has and the suite does not touch. Error paths and boundary conditions are where agent-written suites are thinnest, because the happy path is what the agent just watched work.
Findings ordered by severity, each with file:line, the bucket, the
break it fails to catch, and the suggested fix. Then a one-paragraph
verdict answering the only question that matters: if someone broke this
code tomorrow, would this suite notice? End with the counts: N real /
N mechanical / N restructure, plus the skipped-test count.
If the user asks you to apply fixes, apply bucket 2 directly. Verify each repair the honest way — break the production code on purpose, confirm the test goes red, then restore it. A test you have not seen fail is not a test you have verified. Bucket 3 gets a plan first.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skills61 skills in this plugin
/adrGenerate Architecture Decision Records that capture the reasoning behind technical decisions. Use when the user asks to "create an ADR", "document a decision", "record why we chose X", or discusses architectural trade-offs worth preserving./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automagic-problem-discoveryAudit a workspace for recurring friction, pick the highest-leverage one, and build the automation that removes it. Use when the user asks "what should I automate", "what's wasting my time", "find the friction in my workflow", wants a self-improvement pass over their own tooling, or runs this on a recurring loop./blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust./brainstormThis skill should be used when the user asks to "brainstorm", "generate ideas", "ideate", "what are my options", "think of ways to", "explore possibilities", or wants divergent thinking on any topic. Also triggers on "what could we do about", "help me think through", or "creative options for"./broRe-explain the previous assistant message in a much simpler way — for when the reply made you go 'bro what'. Use /bro to get a plain-language version of the last answer.