Runs a pool of agents that classify every test against a value bar and report which cases to delete or merge so CI stays lean.
Classify repository tests and prune cases that fail the value bar
Runs a pool of Pi agents that mark every test case keep, delete, merge, or rewrite against a four-point value bar, then writes a report you apply with a separate CLI step—no code edits during the classification run.
Source facts
- Repository
- arthurfiorette/tests-diet
- Last source activity
- October 30, 2026 at 02:14
- Detected SKILL.md language
- English
- Stars
- 1
- Forks
- 0
Examples
README example of a style-class assertion test that only fails when Card styles change on purpose—cheap, passes, protects nothing—so the agents mark it delete.
Uses
Use when a suite grew faster than the protection it gives and you need an audit before deleting or merging cases. Pair with the writing-tests skill afterward so agents stop adding low-value tests.
Prerequisites
A Node project where you can run npx tests-diet. Optional tests-diet.config.json at the repo root for instructions, model, rubric, and layout globs. Review happens in a browser via .tests-diet/tests-diet.html.
How to use
npx tests-diet plan for groups and token estimates → run --limit 2 to calibrate → full run (resumable) → review the HTML report → delete --dry-run then delete → merge remaining groups from the markdown report → clean unused helpers → run formatter, linter, typecheck, and affected tests.
Limitations
Classification never edits code; applying delete only touches files unchanged since the report. rewrite is left for follow-up. Changing instructions, model, or rubric invalidates earlier results. Unusual layouts need extraLanguages or --match globs.
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
- name
- tests-diet
- description
- Classify a repository's tests with the tests-diet CLI and apply its report. Use to audit, prune or slim down a test suite.