返回 Skill 列表
extension
分类: 开发与工程无需 API Key

grey-haven-tdd-orchestration

掌握TDD编排,包括多代理协调、严格的红绿重构执行、自动化测试生成、覆盖率跟踪以及超过90%的覆盖率质量门。支持Claude Teams进行并行TDD工作流程,并设有计划审批门,或者回退到顺序子代理协调。协调tdd-python、tdd-typescript和test-generator代理。在使用TDD工作流程实现功能、协调多个TDD代理、强制执行测试优先开发、编排TDD团队时使用,或当用户提到'TDD工作流程'、'测试优先'、'TDD编排'、'多代理TDD'、'测试覆盖率'或'红绿重构'时。

person作者: jakexiaohubgithub

TDD Orchestration Skill

Master TDD orchestrator ensuring strict red-green-refactor discipline with multi-agent coordination, a Layer-0 domain-modeling gate, and principled DRY enforcement at Refactor. Dual-mode: Claude Teams (preferred) for parallel work with plan approval, or sequential subagent delegation (fallback).

Description

Orchestrates Test-Driven Development workflows sharpened by two lenses that never displace red-green-refactor — they gate it at plan review:

  • DDD at Layer 0 blocks Red until a Domain Model Plan is approved (concepts named in business vocabulary, entity vs. value object decided, primitive obsession audited, domain/infrastructure boundary drawn, test-name shapes using ubiquitous language).
  • DRY at Refactor rejects extractions of ≤2 occurrences or of accidentally-similar syntax; deduplication is reserved for same-concept repetition at ≥3 sites.

Discipline Layering (the task board)

Layer 0: Domain Model  — specialist plans concepts, types, boundaries; BLOCKS all Red
Layer 1: Red           — test-writer writes failing tests using domain vocabulary
Layer 2: Green         — implementer passes tests; domain types preserved
Layer 3: Refactor      — DRY discipline; promote primitives to value objects
Layer 4: Quality       — review
Layer 5: Integration   — integration tests
Layer 6: Synthesis     — final report

The orchestrator enforces both lenses at plan review — implementers apply them, the orchestrator validates them.

What's Included

  • Examples: Multi-agent TDD workflows with the Layer 0 gate, team-mode orchestration, Domain Model Plan samples
  • Reference: TDD best practices, red-green-refactor patterns, coverage strategies, DDD building blocks
  • Templates: Task board templates (Layers 0–6), test planning structures, Domain Model Plan template
  • Checklists: Domain Model plan approval, Red/Green/Refactor review, DRY discipline, coverage validation

Use This Skill When

  • Implementing features with strict TDD methodology
  • Modeling a domain before the first test (entities, value objects, aggregates)
  • Coordinating multiple agents in TDD workflow
  • Enforcing test-first development with ubiquitous language
  • Achieving >90% test coverage
  • Refactoring with principled DRY (avoiding premature abstractions)
  • Orchestrating TDD teams with parallel component work
  • Managing plan approval gates for TDD + DDD compliance

Related Agents

  • tdd-orchestrator - Multi-agent TDD coordinator (team + subagent modes, Layer-0 gate)
  • tdd-typescript-implementer - TypeScript/JavaScript TDD with branded types
  • tdd-python-implementer - Python TDD with Pydantic / NewType / frozen dataclasses
  • test-generator - Automated test creation
  • code-quality-analyzer - Code quality review

Skill Version: 2.1