·tdd

测试驱动开发方法和红绿重构工作流程(以前称为 test-tdd)。在练习 TDD、首先编写测试、在实现之前设计测试或审查测试优先方法时,应该使用此技能。触发“先编写测试”、“在代码之前测试”、“红绿重构”、“测试驱动开发”。此技能不涵盖 Vitest 框架细节(使用 vitest 技能)或使用 MSW 进行 API 模拟(使用 msw 技能)。

3安装·0热度·@thongdn-it

安装

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill tdd

SKILL.md

Comprehensive guide to Test-Driven Development practices, designed for AI agents and LLMs. Contains 42 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code generation.

| 1 | Red-Green-Refactor Cycle | CRITICAL | cycle- | | 2 | Test Design Principles | CRITICAL | design- | | 3 | Test Isolation & Dependencies | HIGH | isolate- | | 4 | Test Data Management | HIGH | data- | | 5 | Assertions & Verification | MEDIUM | assert- | | 6 | Test Organization & Structure | MEDIUM | org- |

| 7 | Test Performance & Reliability | MEDIUM | perf- | | 8 | Test Pyramid & Strategy | LOW | strat- |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill tdd
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 tdd?

测试驱动开发方法和红绿重构工作流程(以前称为 test-tdd)。在练习 TDD、首先编写测试、在实现之前设计测试或审查测试优先方法时,应该使用此技能。触发“先编写测试”、“在代码之前测试”、“红绿重构”、“测试驱动开发”。此技能不涵盖 Vitest 框架细节(使用 vitest 技能)或使用 MSW 进行 API 模拟(使用 msw 技能)。 来源:thongdn-it/react-agent-skills。

如何安装 tdd?

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

这个 Skill 的源码在哪?

https://github.com/thongdn-it/react-agent-skills