/test-driven-development
用紅燈、綠燈、重構的循環,讓測試帶著開發走。
- 安裝次數
- 6.7 萬
- 專案星數
- 11.3 萬 ★
- 授權
- MIT
- 專案更新
- 2026-11-01
什麼時候用
實作任何邏輯、修任何 bug、改變任何行為時;需要證明程式有效、收到 bug 回報、或要修改既有程式碼時⋯⋯
怎麼裝
npx skills add https://github.com/addyosmani/agent-skills --skill test-driven-development安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。
原文
Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline and the request does not mention tests.