test-suite-prioritizer
Installation
SKILL.md
Test Suite Prioritizer
If the suite takes 40 minutes and fails at minute 38, you wasted 38 minutes. Run the test that's going to fail first. Prioritization is predicting failures and front-loading them.
Signals for priority
| Signal | Why it predicts failure | How to get it |
|---|---|---|
| Covers changed code | This change might have broken it | Coverage map + git diff --name-only |
| Failed recently | What failed yesterday fails today | CI history — last N runs |
| Flaky | Runs early → flakes detected early, can be retried | CI history — pass/fail variance |
| Fast | More tests per minute of budget | Duration from last run |
| High code coverage (this test) | Covers more → more chance of catching something | Per-test coverage |
| Co-change with modified files | Historically changes with these files | git log correlation |
Combine into a score. Sort. Run in order.