·test-driven-development
</>

test-driven-development

在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。

11安装·0热度·@addyosmani

安装

$npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development

如何安装 test-driven-development

通过命令行快速安装 test-driven-development AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:addyosmani/agent-skills。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-24
更新时间
2026-03-10

Browse more skills from addyosmani/agent-skills

快速解答

什么是 test-driven-development?

在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或要修改现有功能时使用。 来源:addyosmani/agent-skills。

如何安装 test-driven-development?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/addyosmani/agent-skills