npx skills add https://github.com/chrysaliscat/designgraduation --skill 'TDD Skill'先写测试。看着它失败。编写最少的代码使其通过。
核心原则: 如果你没有看到测试失败,你就不知道它是否测试了正确的东西。
违反规则的字面意思就是违反规则的精神。
始终使用:
例外情况(请咨询你的真人搭档):
想着“就这一次跳过 TDD”?停下。那是在找借口。
没有失败的测试,就没有生产代码
在测试之前写了代码?删除它。重新开始。
没有例外:
完全根据测试重新实现。完毕。
在标记工作完成之前:
每周安装数
0
仓库
首次出现
1970年1月1日
安全审计
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 FIRST
Write code before the test? Delete it. Start over.
No exceptions:
Implement fresh from tests. Period.
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Before marking work complete:
Weekly Installs
0
Repository
First Seen
Jan 1, 1970
Security Audits
任务估算指南:敏捷开发故事点、计划扑克、T恤尺码法详解
10,500 周安装