Test and fix
Run the test suite, read failures, patch, and re-run — looping until green or a precise blocker report. Use for any feature or module that has tests. Caps attempts so it can't run away.From its SKILL.md
npx -y skills add prasadmogulothu/agent-skills --skill test-and-fixAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 210 tokens by cl100k_base, as published. Nobody here has run it
test-and-fix
Close the loop on tests automatically, so cheaper models can self-correct safely.
Steps
- Run the relevant suites (unit, integration, e2e, accessibility — whatever the project has).
- On failure: read the actual error, form a hypothesis, patch the smallest thing, re-run.
- Stop at green, OR after a fixed attempt cap (e.g. 6) → write a precise blocker report
(the failing test, the error, what you tried) to
tasks.mdand stop. - Never delete or skip a failing test to "pass". Never mark done on a partial.
Done when
All targeted suites pass, or a clear blocker report exists. Coverage on changed code meets your project threshold.
Token tactics
Ideal for a cheaper/mid model — the iterative loop is where expensive models waste budget. Cap the attempts to bound cost. Pass only the failing test + the file under test, not the whole repo.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.