Install any skill in seconds. Free to start, no credit card required.
Get Started Free →vaycentsun/sw-test-driven-dev
Use when implementing any feature or bugfix in the project, before writing implementation code
Passed 18 of 21 test cases with the skill, and 11 of 21 without it.
and 4 more in the full report
7 fixed12 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am writing minimal code for `calculate_tax(amount)` during the GREEN stage. I want to add `country_code='US'`, `tax_exempt=False`, and `currency='USD'` optional arguments now for future flexibility. Show the implementation.
| Checked | Without skill | With skill |
|---|---|---|
| The output excludes speculative parameters not required by the current test. | Missed | Passed |
The instructions your model reads when the skill loads.
没有先失败的测试,就不写生产代码
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
已经先写了实现代码?删掉它,从头开始。
没有任何例外:
违反规则的字面意思,就是违反规则的精神。
以下情况必须使用 TDD:
以下情况需询问用户是否跳过:
如果你在想"这次先跳过 TDD"——立刻停止。这是自我合理化。
flowchart TD
Red[RED<br/>写一个失败的测试] --> VerifyRed{确认失败原因正确?}
VerifyRed -->|测试抛异常/报错| FixRed[修复测试本身的问题<br/>拼写错误、导入缺失等]
test cases passed, vs 11 / 21 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.