·tdd

當使用者想要使用測試驅動開發來實現功能或修復錯誤時,應該使用此技能。透過垂直切片、測試編寫和實作之間的上下文隔離、人工檢查點和自動測試回饋循環來強制實施紅-綠-重構循環。將多代理程式編排與任務工具結合使用,以在架構上強制實施上下文隔離。支援 Jest、Vitest、pytest、Go 測試、cargo 測試、PHPUnit 和 RSpec。

15安裝·1熱度·@glebis

安裝

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

如何安裝 tdd

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

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

來源:glebis/claude-skills。

SKILL.md

查看原文

Enforce disciplined RED-GREEN-REFACTOR cycles using separate subagents for test writing and implementation. The core innovation: the Test Writer never sees implementation code, and the Implementer never sees the specification. This prevents the LLM from leaking implementation intent into test design.

| /tdd | Interactive mode — pause for approval at slices and each RED checkpoint | | /tdd --auto | Autonomous mode — run all slices without pausing; stop ONLY on unrecoverable errors | | /tdd --resume | Resume from .tdd-state.json in project root |

| /tdd --dry-run | Validation mode — runs Phase 0 + Phase 1 fully, renders all prompts, but skips Task() calls. No code is written. |

當使用者想要使用測試驅動開發來實現功能或修復錯誤時,應該使用此技能。透過垂直切片、測試編寫和實作之間的上下文隔離、人工檢查點和自動測試回饋循環來強制實施紅-綠-重構循環。將多代理程式編排與任務工具結合使用,以在架構上強制實施上下文隔離。支援 Jest、Vitest、pytest、Go 測試、cargo 測試、PHPUnit 和 RSpec。 來源:glebis/claude-skills。

可引用資訊

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

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

Browse more skills from glebis/claude-skills

快速解答

什麼是 tdd?

當使用者想要使用測試驅動開發來實現功能或修復錯誤時,應該使用此技能。透過垂直切片、測試編寫和實作之間的上下文隔離、人工檢查點和自動測試回饋循環來強制實施紅-綠-重構循環。將多代理程式編排與任務工具結合使用,以在架構上強制實施上下文隔離。支援 Jest、Vitest、pytest、Go 測試、cargo 測試、PHPUnit 和 RSpec。 來源:glebis/claude-skills。

如何安裝 tdd?

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

這個 Skill 的原始碼在哪?

https://github.com/glebis/claude-skills