Agent Skills: test-sloc-cut

Shrink a test suite without losing a single asserted fact or covered branch — the fact-matrix method: read every test into a matrix of the propositions it pins, measure per-test branch coverage and a covering set, and delete only on the intersection of both oracles; relocate a fact to a cheaper layer only after a mutant proves the new assertion catches it. Use when asked to trim, dedupe, consolidate, simplify, shrink, or reduce tests or test SLOC, when a suite has grown by accretion (the same value asserted in a pure test, a DB test and an end-to-end test; tests whose bodies differ by one argument), when deciding whether to delete, fold, parametrize, or share a helper across tests, when a reviewer calls a test file bloated or redundant, or before cutting any test on 'coverage is unchanged' alone. Python/pytest with pytest-cov. Ships the tokenizer line counter, the per-test coverage and covering-set script, the fact-matrix checker, the mutant check, and the four-agent investigation briefs.

ID: dashed/claude-marketplace/test-sloc-cut

Install this agent skill to your local

npx skills add dashed/claude-marketplace --skill test-sloc-cut

Skill Files

The files that make up test-sloc-cut.

Download Skill

More agent skills