Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when implementing any feature or bugfix, before writing implementation code
.claude/skills/dokhacgiakhoa-test-driven-development/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -38% | 0% |
Write the test first. Watch it fail. Write minimal code to pass.
Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.
Violating the letter of the rules is violating the spirit of the rules.
Always:
Exceptions (ask your human partner):
Thinking "skip TDD just this once"? Stop. That's rationalization.
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRSTWrite code before the test? Delete it. Start over.
No exceptions:
Implement fresh from tests. Period.
dotdigraph tdd_cycle { rankdir=LR; red [label="RED\nWrite failing test", shape=box, style=filled, fillcolor="#ffcccc"]; verify_red [label="Verify fails\ncorrectly", shape=diamond]; green [label="GREEN\nMinimal code", shape=box, style=filled, fillcolor="#ccffcc"]; verify_green [label="Verify passes\nAll green", shape=diamond]; refactor [label="REFACTOR\nClean up", shape=box, style=filled, fillcolor="#ccccff"]; next [label="Next", shape=ellipse]; red -> verify_red; verify_red -> green [label="yes"]; verify_red -> red [label="wrong\nfailure"]; green -> verify_green; verify_green -> refactor [label="yes"]; verify_green -> green [label="no"]; refactor -> verify_green [label="stay\ngreen"]; verify_green -> next; next -> red; }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 22,969 | 18,566 | -19% | 1 | 1 | 0% | 3,019 | 3,148 | +4% | 0 | 0 | — |
case-02 | fail→pass | 20,998 | 11,076 | -47% | 1 | 1 | 0% | 2,580 | 1,705 | -34% | 0 | 0 | — |
case-03 | fail→pass | 16,677 | 11,162 | -33% | 1 | 1 | 0% | 1,798 | 1,682 | -6% | 0 | 0 | — |
case-04 | fail→pass | 13,014 | 8,975 | -31% | 1 | 1 | 0% | 2,206 | 2,129 | -3% | 0 | 0 | — |
case-05 | fail→fail | 18,575 | 14,079 | -24% | 1 | 1 | 0% | 2,277 | 2,286 | +0% | 0 | 0 | — |
case-06 | fail→pass | 20,267 | 5,485 | -73% | 1 | 1 | 0% | 2,808 | 1,728 | -38% | 0 | 0 | — |
case-07 | fail→fail | 15,807 | 11,835 | -25% | 1 | 1 | 0% | 1,799 | 1,763 | -2% | 0 | 0 | — |
case-08 | fail→pass | 15,842 | 10,102 | -36% | 1 | 1 | 0% | 1,771 | 1,629 | -8% | 0 | 0 | — |
case-09 | pass→pass | 12,738 | 9,528 | -25% | 1 | 1 | 0% | 1,376 | 1,416 | +3% | 0 | 0 | — |
case-10 | fail→pass | 16,736 | 10,901 | -35% | 1 | 1 | 0% | 1,948 | 1,670 | -14% | 0 | 0 | — |
case-11 | fail→pass | 16,962 | 8,422 | -50% | 1 | 1 | 0% | 1,920 | 1,292 | -33% | 0 | 0 | — |
case-12 | fail→pass | 17,119 | 9,509 | -44% | 1 | 1 | 0% | 1,928 | 1,455 | -25% | 0 | 0 | — |
case-13 | pass→pass | 13,595 | 5,829 | -57% | 1 | 1 | 0% | 1,491 | 1,665 | +12% | 0 | 0 | — |
case-14 | pass→pass | 13,856 | 10,761 | -22% | 1 | 1 | 0% | 1,453 | 1,693 | +17% | 0 | 0 | — |
case-15 | pass→pass | 16,248 | 9,513 | -41% | 1 | 1 | 0% | 1,909 | 1,510 | -21% | 0 | 0 | — |
case-16 | pass→pass | 16,809 | 8,353 | -50% | 1 | 1 | 0% | 1,947 | 2,048 | +5% | 0 | 0 | — |
case-17 | pass→pass | 14,941 | 9,710 | -35% | 1 | 1 | 0% | 1,642 | 1,401 | -15% | 0 | 0 | — |
case-18 | fail→pass | 11,251 | 4,853 | -57% | 1 | 1 | 0% | 1,921 | 1,568 | -18% | 0 | 0 | — |
case-19 | pass→pass | 14,671 | 4,827 | -67% | 1 | 1 | 0% | 1,578 | 1,452 | -8% | 0 | 0 | — |
case-20 | pass→pass | 14,949 | 10,262 | -31% | 1 | 1 | 0% | 1,627 | 1,455 | -11% | 0 | 0 | — |
case-21 | fail→pass | 16,690 | 9,805 | -41% | 1 | 1 | 0% | 1,583 | 1,475 | -7% | 0 | 0 | — |
case-22 | pass→pass | 12,418 | 9,375 | -25% | 1 | 1 | 0% | 1,210 | 1,306 | +8% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +50 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.