← ClaudeAtlas

spec-tdd-task-looplisted

Use when driving a whole MULTI-TASK feature phase — a task plan split into many self-contained task docs, run one task at a time with per-task commits, a plan-doc status board, and sessions that must survive the phase. The main session stays a LIGHTWEIGHT gate (compile + `git diff --stat` + JUnit-XML number recheck — never deep review, never running the tests itself); each task dispatches a level-1 sub-agent that runs the spec-tdd-escalate/tier machinery and itself dispatches the nested implementer (no self-testing — requires CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=3). Covers mock-first contract phases (the time dimension of tier choice), mid-run tier downgrades delivered by SendMessage, and resuming a half-finished task after a session break. Triggers on task loop, task-by-task spec-tdd, multi-task orchestration, per-task commit cadence, plan status board, not-yet-split requirement/blueprint needing task breakdown, 多 task 迴圈.
BenjaminChenLab/spec-tdd-skill · ★ 3 · Testing & QA · score 76
Install: claude install-skill BenjaminChenLab/spec-tdd-skill
# spec-tdd-task-loop **REQUIRED BACKGROUND:** Understand the `spec-tdd` family first — the front-ends (`grill-spec-tdd`, `spec-tdd-escalate`), the tiers (`spec-tdd-lite` / `spec-tdd` / `spec-tdd-coverage` / `spec-tdd-adversarial`), and [PROTOCOL.md](../PROTOCOL.md) (I1–I21 / A1–A16). 本 skill 不新增也不放寬任何 invariant:每個 task 的執行仍由 tier 機械完整落實(**band 但書**:下緣 lite 是帶補償的加強——強制 fresh review;上緣 coverage 對 critical 單元是經濟規則的結構性不承載,不是 invariant 修改,逃生口見下);這裡定義的是疊在整個家族**外層**的迴圈規則——三層分工、輕量 gate、數字複核、mock-first、續作與揭露。 ## Overview 一個多 task phase:任務總表、每 task 一份自足 doc、逐 task 開發與 commit、可能跨越多個 session。**頂層 context 是整個 phase 最稀缺的資源**——唯一必須從頭活到尾的是它。所以深度工作(acceptance test 撰寫、encoding audit、實作、攻擊輪)全部下沉到可拋棄的 sub-agent context;頂層只做兩類事: 1. **跨 task 狀態管理** — 挑 task、維護權威計畫文件的狀態區與決定區、決策回寫、每 task 一個 commit。 2. **輕量 gate** — 只驗「客觀可核事實」:編譯、檔案範圍、測試數字。每項都是機器可比對的,不需要品味也不需要 level-1 的 full context。 | 層 | 是誰 | 做 | 禁止 | |---|---|---|---| | 頂層 orchestrator | 主 session(program conductor)| 跨 task 流程、輕量 gate、狀態區維護、決策回寫、commit | 深度 code review、親自跑測試、寫 acceptance test、實作 | | level-1 sub-agent(**TOP**,I19)| 單 task 的 spec-tdd orchestrator(跑 escalate 機械)| 寫 acceptance test(RED)、encoding audit、派 level-2、親自驗證(re-run / coverage / hash)、tier 要求的攻擊輪;lite 路線:solo 實作 + fresh-context review dispatch(該 tier 自身的機械形狀) | 自己實作 production code(非 lite tier——例外見 template 的 TIER BAND)、git 寫入 | | level-2 implementer(**MID**,I19)| 實作者 | 實作到綠 + 自身 unit tests | 改 acceptance test(hash 鎖定)、git 寫入 | tier 為 `spec-tdd-adversarial` 時,level-1 內部再派