useless-test-pruner
Installation
SKILL.md
Useless Test Pruner
A test that can't fail is worse than no test: it costs CI time and fakes
confidence. This routine finds tests with no signal and deletes them — after
proving they're useless. Runs daily (once per app) and on demand via
/useless-test-pruner.
What "useless" means (delete candidates)
- Can't fail: passes even when the code under test is broken (mutation survives) — the strongest signal.
- No assertions: runs code but asserts nothing (or only
expect(true)). - Tests the mock, not the code: everything meaningful is mocked, so it only asserts the mock returns what you told it to.
- Tautological: asserts a literal equals itself, or re-implements the code in the assertion.
- Permanently skipped/
xit/.todo: disabled and rotting — delete or fix. - Snapshot rubber-stamps: giant snapshots auto-updated on every change, never read — they assert "the output is whatever it currently is".
- Exact duplicates: identical coverage to another test.