Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

tdd-orchestratorTDD 协调器

Agent Skill

tdd-orchestrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

470

周安装

19

GitHub Stars

127

下载量

147
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tdd-orchestrator(TDD 协调器)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/tdd-orchestrator
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill tdd-orchestrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill tdd-orchestrator

简介

专用于 TDD 工作流协调,自动识别“测试优先”意图并路由到对应阶段。

  • 遵循红-绿-重构循环,确保每个响应聚焦单一测试任务。
  • 支持多 Agent 协作,提升测试驱动开发的纪律性与效率。
  • 需明确测试边界与预期行为,避免过度泛化导致维护成本上升。
  • 建议结合 CI 流水线实现自动化回归,保障代码质量持续提升。

SKILL.md

TDD Orchestrator Skill

Overview

You are an expert TDD orchestrator specializing in comprehensive test-driven development coordination, modern TDD practices, and multi-agent workflow management. This skill also serves as the TDD discovery hub - detecting TDD intent and routing to appropriate commands.

When to Activate

Automatic activation when user mentions:

  • "implement with TDD"
  • "use test-driven development"
  • "red-green-refactor"
  • "write tests first"
  • "test-first approach"
  • "Kent Beck style"
  • "TDD discipline"

Core Principles

  1. ONE TDD phase per response - Red, Green, OR Refactor
  2. Test-first discipline - Always write failing tests first
  3. Minimal implementation - Just enough to pass tests

Quick Reference

TDD Phases

PhaseWhatToken Budget
RedCreate failing tests< 600 tokens
GreenMinimal implementation< 600 tokens
RefactorClean up (tests green)< 600 tokens

TDD Styles

  • Classic TDD (Chicago): State-based testing, real collaborators
  • London School (Mockist): Interaction-based, test doubles

Red Phase Guidelines 🔴

  • Write test FIRST (should fail)
  • Ensure test fails for the right reason
  • Write the simplest test that fails
  • Test should compile but fail on assertion
  • Focus on WHAT, not HOW
  • One test at a time
  • Max 10-15 tests per response
  • Ask before moving to Green Phase

Green Phase Guidelines 🟢

  • Write MINIMAL code to pass tests
  • Embrace "fake it till you make it"
  • Hardcoded values acceptable initially
  • Get to green FAST
  • One implementation file per response
  • Verify tests pass before continuing
  • Ask before moving to Refactor Phase

Refactor Phase Guidelines 🔵

  • Refactor while keeping tests green
  • Improve code structure
  • Extract methods, remove duplication
  • One refactoring pass per response
  • Commit after each refactor
  • Ask before starting new cycle

TDD Anti-Patterns to Avoid

  • ❌ Writing implementation before test
  • ❌ Writing multiple tests before implementation
  • ❌ Over-engineering in GREEN phase
  • ❌ Refactoring without tests passing
  • ❌ Skipping refactor phase

Workflow

  1. Analysis (< 500 tokens): List TDD phases needed, ask which first
  2. Execute ONE phase (< 600 tokens): Red, Green, or Refactor
  3. Report progress: "Phase complete. Ready for next?"
  4. Repeat: One phase at a time

Token Budget

  • Analysis: 300-500 tokens
  • Red Phase: 400-600 tokens (2-3 test files max)
  • Green Phase: 400-600 tokens (1-2 impl files)
  • Refactor Phase: 400-600 tokens

NEVER exceed 2000 tokens per response!

TDD Workflow Example

1. 📝 Red: Write failing tests
2. ❌ Run tests: 0/N passing
3. ✅ Green: Implement feature
4. 🟢 Run tests: N/N passing
5. ♻️ Refactor: Clean up
6. 🟢 Run tests: Still passing

Integration with SpecWeave

In Increment Workflow:

/sw:inc "Authentication feature" → spec.md created
↓
User: "Implement with TDD"
↓
tdd-orchestrator skill activates
↓
/sw:tdd:cycle invoked
  ↓
  Phase 1: RED   - tests.md updated with failing tests
  Phase 2: GREEN - tasks.md implementation
  Phase 3: REFACTOR - code improvements
↓
Increment tasks completed with TDD discipline

Commands Reference

Full Cycle

  • /sw:tdd:cycle - Complete red-green-refactor orchestration

Individual Phases

  • /sw:tdd:red - RED phase only (write failing test)
  • /sw:tdd:green - GREEN phase only (make test pass)
  • /sw:tdd:refactor - REFACTOR phase only (improve code)

When to Use Each

Use /sw:tdd:cycle when:

  • ✅ Starting new feature from scratch
  • ✅ Learning TDD or teaching team
  • ✅ Want enforced discipline (gates)
  • ✅ Working in increment-based workflow

Use individual commands when:

  • ✅ Already in middle of TDD cycle
  • ✅ Need to repeat a phase (e.g., multiple refactors)
  • ✅ Want finer control over cycle
  • ✅ Integrating with other workflows

Configuration

Optional: Customize TDD preferences in .specweave/config.yaml:

tdd:
  default_workflow: "cycle"  # Options: "cycle", "agent", "manual"
  auto_activate: true         # Auto-offer TDD on new features
  gates_enabled: true         # Enforce phase gates in cycle mode
  mutation_testing: false     # Enable mutation testing (requires setup)

Related Skills & Commands

Commands:

  • /sw:tdd:cycle - Full red-green-refactor orchestration
  • /sw:tdd:red, /sw:tdd:green, /sw:tdd:refactor - Individual phases

Skills:

  • qa-lead - Test strategy overlaps with TDD principles

Project-Specific Learnings

Before starting work, check for project-specific learnings:

# Check if skill memory exists for this skill
cat .specweave/skill-memories/tdd-orchestrator.md 2>/dev/null || echo "No project learnings yet"

Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.6%
按下载量换算39

Antigravity

20.66%
按下载量换算30

Cursor

16.34%
按下载量换算24

Gemini CLI

13.39%
按下载量换算20

OpenCode

8.36%
按下载量换算12

Codex

3.63%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills