Install any skill in seconds. Free to start, no credit card required.
Get Started Free →taracodlabs/test-driven-development
Write software using the RED-GREEN-REFACTOR cycle for reliable, well-tested code
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to implement a new function `calculate_shipping_cost(weight, distance)` in Python. I already know the logic is `weight * 0.5 + distance * 0.1`. Can you write the implementation function for me first so I can test it afterwards?
| Checked | Without skill | With skill |
|---|---|---|
| Rejects writing implementation first and requires writing a failing test before implementation code. | Missed | Passed |
The instructions your model reads when the skill loads.
Use the RED-GREEN-REFACTOR cycle to write reliable, well-tested software. Write tests first, then write the minimal code to pass them, then clean up.
RED → Write a failing test for the behavior you want
GREEN → Write the minimum code to make the test pass
REFACTOR → Clean up the code without breaking tests
Repeat for each small behavior increment
Write the test before the implementation. It must fail to prove the test works.
# test_calculator.py — write this BEFORE calculator.py
import pytest
from calculator import add
def test_add_two_positive_numbers():
assert add(2, 3) == 5
def test_add_negative_number():
assert add(-1, 5) == 4
def test_add_floats():
assert abs(add(0.1, 0.2) - 0.3) < 1e-9
test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.