/polymath-qa:assertion-qualityfrom polymath-qa
Review test assertions — assert behavior not implementation; kill snapshot/tautological checks; one reason-to-fail per test; improves existing tests, not authoring them (unit-tests).
Ships in polymath-qa. 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 is only worth its assertions. Make each one assert the behavior that matters, fail for one clear reason, and resist incidental change.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
assertTrue(true)-style tautologies.polymath-qa:assertion-quality.This sharpens assertions in existing tests. It is not authoring tests (polymath-qa:unit-tests), broad smell review (polymath-qa:test-smell), or coverage gaps (polymath-qa:coverage-gap).
One block per reviewed test, worst first (vacuous > implementation-coupled > over-broad > missing negative space > multi-reason):
Assertion review: tests/test_refunds.py — 4 tests, 3 findings
test_refund_created VACUOUS
line 41: assert response is not None
protects: a refund for a valid order returns 201 with the refund id
rewrite: assert response.status_code == 201
assert response.json()["refund_id"] == expected_id
test_refund_calls_ledger IMPLEMENTATION-COUPLED
line 58: mock_ledger.post.assert_called_once()
protects: the order balance drops by the refund amount
rewrite: assert get_balance(order) == original - 25_00
test_refund_rejects_overdraw MISSING NEGATIVE SPACE
add: assert refund(order, amount=balance + 1).status_code == 409
Unchanged (already behavior-precise): test_refund_idempotency_key
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-qa6 skills in this plugin
/coverage-gapReview a diff for missing test coverage; pairs every changed behavior with an existing test or a flagged gap plus a recommended layer; finds gaps, not authoring (unit-tests)./integration-contractDesign integration/contract tests for a service boundary — consumer-driven contracts, stub-vs-hit, fixtures, failure modes. Boundary tests, not unit tests (unit-tests) or the plan (test-strategy)./test-smellDetect test smells/anti-patterns — over-mocking, fragile assertions, slow setup, flaky timing; flag each with its layer and a refactor. Reviews existing tests, not authoring them (unit-tests).Other plugins' skills for the same job