# test-driven-development

> test-driven-development 强制红-绿-重构：没有先失败的测试就不写生产代码。使用 npx skills add obra/superpowers --skill test-driven-development 安装。

- 页面：https://skill123.app/zh/skills/test-driven-development/
- 分类：development
- 平台：cursor, claude, codex, agents
- 质量分：95/100
- 最后验证：2026-06-22
- 源码：https://github.com/obra/superpowers

## 何时使用

- 实现新功能
- 修 bug
- 重构行为

## 安装

```bash
npx skills add https://github.com/obra/superpowers/tree/main/skills/test-driven-development
```

也可让 Agent 先阅读 https://skill123.app/install/skill123.md，再安装此技能。
