測試驅動開發方法和紅綠重構工作流程(以前稱為 test-tdd)。在練習 TDD、首先編寫測試、在實現之前設計測試或審查測試優先方法時,應該使用此技能。觸發“先編寫測試”、“在代碼之前測試”、“紅綠重構”、“測試驅動開發”。此技能不涵蓋 Vitest 框架細節(使用 vitest 技能)或使用 MSW 進行 API 模擬(使用 msw 技能)。
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
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01