Skip to content

Add the reducing-test-suites skill - #113

Merged
diegoferigo merged 2 commits into
mainfrom
diegoferigo/reducing-test-suites
Nov 12, 2026
Merged

diegoferigo merged 2 commits into
mainfrom
diegoferigo/reducing-test-suites

Conversation

@diegoferigo

Copy link
Copy Markdown
Owner

What change is being made

Add the reducing-test-suites skill and list it in AGENTS.md. It describes how to shrink an existing test suite to its high-signal core, as principles:

  • Fix the goal (lines a reader must read) and a loss budget with the owner.
  • Measure per-test coverage instead of eyeballing.
  • Fold redundant tests so no assertion is lost.
  • Check verdicts by fault injection, get a sign-off before the cut and guard each round.

The Python and pytest mechanics are in reference/measuring.md, with a short sketch for other languages.

Why this change is being made

Test suites in agent-driven projects grow past what a reader can review. The rules for writing new tests do not shrink a suite that already exists, and cuts by eye or by test count reached little.

Tested

  • Five Copilot CLI reviewer roles (correctness, perfectionist, simplifier, critic, contrarian) reviewed the skill for three rounds until no findings were left.
  • gh skill publish --dry-run: complete, with warnings for the missing license field and Git remote.
  • pixi run -q hooks: all hooks passed.
  • pixi run -q test: 391 passed.

The skill has not been tried on a real suite.

Test suites in agent-driven projects grow past what a reader can
review, and the high-level rules for writing tests do not shrink a suite
that already exists. Cuts by eye or by test count reached little.

Add a skill with the reduction process as principles: fix the goal and
the loss budget with the owner, measure per-test coverage, fold
redundant tests so no assertion is lost, check verdicts by fault
injection, get a sign-off before the cut and guard each round. The
Python and pytest mechanics live in a reference file.
@diegoferigo diegoferigo self-assigned this Nov 12, 2026
@diegoferigo
diegoferigo marked this pull request as ready for review November 12, 2026 10:45
@diegoferigo
diegoferigo merged commit 9b36829 into main Nov 12, 2026
4 checks passed
@diegoferigo
diegoferigo deleted the diegoferigo/reducing-test-suites branch November 12, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant