什么是 test-driven-development?
在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。 来源:addyosmani/agent-skills。
在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。
通过命令行快速安装 test-driven-development AI 技能到你的开发环境
来源:addyosmani/agent-skills。
Write a failing test before writing the code that makes it pass. For bug fixes, reproduce the bug with a test before attempting a fix. Tests are proof — "seems right" is not done. A codebase with good tests is an AI agent's superpower; a codebase without tests is a liability.
When NOT to use: Pure configuration changes, documentation updates, or static content changes that have no behavioral impact.
Write the test first. It must fail. A test that passes immediately proves nothing.
在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。 来源:addyosmani/agent-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。 来源:addyosmani/agent-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/addyosmani/agent-skills