test-driven-development
TDD discipline - before implementing any feature or fixing any bug. Iron law: no production code without a failing test. Write the test, watch it fail, write minimal code to pass; red-green-refactor. Exceptions (throwaway prototypes, generated code, config files) require user consent. / 测试驱动开发纪律——实现任何功能或修复任何 bug、在写实现代码之前使用。铁律:没有失败测试就没有生产代码。先写测试、看它失败、再写最小实现让它通过;红-绿-重构循环。例外(一次性原型、生成代码、配置文件)需征得用户同意。
Pinned to revision 095eb40b94ac, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/test-driven-development/SKILL.md
- skills/test-driven-development/agents/openai.yaml
- skills/test-driven-development/evals/evals.json
- skills/test-driven-development/references/testing-anti-patterns.md
Every link opens the file at its source, pinned to the revision this page describes.