·tdd

使用紅綠重構循環的測試驅動開發。當使用者想要使用 TDD 建置功能或修復錯誤、提到「紅綠重構」、想要整合測試或要求測試優先開發時使用。

51安裝·0熱度·@brianlovin

安裝

$npx skills add https://github.com/brianlovin/claude-config --skill tdd

如何安裝 tdd

透過命令列快速安裝 tdd AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/brianlovin/claude-config --skill tdd
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:brianlovin/claude-config。

SKILL.md

查看原文

Core principle: Tests should verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't.

Good tests are integration-style: they exercise real code paths through public APIs. They describe what the system does, not how it does it. A good test reads like a specification - "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.

Bad tests are coupled to implementation. They mock internal collaborators, test private methods, or verify through external means (like querying a database directly instead of using the interface). The warning sign: your test breaks when you refactor, but behavior hasn't changed. If you rename an internal function and tests fail, those tests were testing implementation, not behavior.

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/brianlovin/claude-config --skill tdd
分類
</>開發工具
認證
收錄時間
2026-02-22
更新時間
2026-03-11

Browse more skills from brianlovin/claude-config

快速解答

什麼是 tdd?

使用紅綠重構循環的測試驅動開發。當使用者想要使用 TDD 建置功能或修復錯誤、提到「紅綠重構」、想要整合測試或要求測試優先開發時使用。 來源:brianlovin/claude-config。

如何安裝 tdd?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/brianlovin/claude-config --skill tdd 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/brianlovin/claude-config

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-22