Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Drive implementation with a strict red-green-refactor test loop. Use this when implementing a new feature, changing behavior, or fixing a bug in any codebase that has automated tests or should have them, especially when the user says "add", "implement", "build", "fix", or "make it do X". Also use it to lock a bug fix in place with a regression test before touching the production code.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-14 | ✓→✓ | = Same ✓ | -9% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 23% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 11% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 16% | 0% |
For an agent, a failing test is the one spec that cannot be argued with. Code that "looks correct" is a hypothesis; a green test that was red five minutes ago is evidence. The loop exists to stop "looks done" from quietly replacing "is done".
These are where agents most often go wrong, so hold the line:
Before writing the first test, look at how this project already tests: framework, file naming, directory placement, fixture patterns, assertion style. Match it exactly. A pytest-style test dropped into a unittest codebase is a review comment waiting to happen. If the project has no tests at all, propose the lightest standard tool for the language and confirm before introducing it.
Reproduction test first, always. Confirm it fails on current code, then fix, then confirm it passes. A fix without a red-then-green regression test is a fix you cannot prove, and the bug's favorite move is coming back in six months wearing a different stack trace.
Other measured skills in the registry, with their headline benchmark lift.