什么是 tdd?
在实现需要测试覆盖的复杂逻辑时使用 - 首先编写测试,观察它失败,编写最少的代码以通过;确保测试通过首先要求失败来实际验证行为;不适用于 UI 组件、简单的 CRUD 或简单的代码 来源:udecode/dotai。
在实现需要测试覆盖的复杂逻辑时使用 - 首先编写测试,观察它失败,编写最少的代码以通过;确保测试通过首先要求失败来实际验证行为;不适用于 UI 组件、简单的 CRUD 或简单的代码
通过命令行快速安装 tdd AI 技能到你的开发环境
来源:udecode/dotai。
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.
When to use: Only for complex logic where bugs are likely, or when user explicitly requests tests.
在实现需要测试覆盖的复杂逻辑时使用 - 首先编写测试,观察它失败,编写最少的代码以通过;确保测试通过首先要求失败来实际验证行为;不适用于 UI 组件、简单的 CRUD 或简单的代码 来源:udecode/dotai。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/udecode/dotai --skill tdd在实现需要测试覆盖的复杂逻辑时使用 - 首先编写测试,观察它失败,编写最少的代码以通过;确保测试通过首先要求失败来实际验证行为;不适用于 UI 组件、简单的 CRUD 或简单的代码 来源:udecode/dotai。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/udecode/dotai --skill tdd 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/udecode/dotai