Requirements-traced build pipeline

Confirms requirements once, then runs design review, test-driven implementation and acceptance automatically.

#Claude Code#requirements#design review#TDD#acceptance test
Build pipeline skill

WorkflowBuild pipeline skill

Development Claude Code skill

A skill that confirms requirements once, each traced back to the requester's own words, then runs without stopping through outline design, review by two models, a TDD plan and implementation, and acceptance from the user's point of view.

Challenge

  • Real, important requirements get diluted stage by stage through design, review, planning and coding, until they quietly disappear
  • Hand an agent a long job and it either keeps stopping to ask, or runs without checking and builds something else

Approach

  • Every line of the requirement summary and each user case is tied to the requester's original words, and this is the only confirmation stop
  • The outline design and the TDD plan are each reviewed independently by two models, Claude and Codex, and revised until both say READY TO BUILD
  • Implementation writes tests first with a TDD plugin, and acceptance checks each user case against the confirmed requirement page

Outcome

  • People stop only once, to confirm requirements; the rest runs unattended to the end
  • Every stage's output can be traced back to the original words behind each requirement
  • Each stage's pass or fail and the resume point are kept in a state file, so an interrupted run picks up where it left off

What this pipeline guards against is the requirement you are sure you stated, which has somehow vanished by the end. Every stage writes its output to a file, and the confirmed requirement page is the pass criterion for all later stages.

It writes down the requester's original words, drafts an outline design, and has the requester confirm the requirement summary and user cases one item at a time. From there, design review, the TDD plan and its review, test-first implementation and acceptance run automatically.

The full workflow

TaskWhoInputsOutputs
1. Input listDesign agent + State scriptFable 5.1 + state.py—Input list
2. Refine promptPrompt refinerprompt agentInput listDesign prompt
3. Outline designDesign agentFable 5.1Input list, Refers to Design promptOutline design
4. Confirm reqsRequester + State scripthuman + state.pyOutline designConfirmed reqs
5. Design reviewDual review + State scriptCodex + Claude + state.pyOutline design, Refers to Confirmed reqsReview logs
6. TDD planTDD plannersOpus 5.5Outline design, Review logs, Refers to Confirmed reqsTDD plan
7. Plan reviewDual review + State scriptCodex + Claude + state.pyTDD plan, Refers to Confirmed reqsReview logs
8. TDD buildTDD builders + Auto-answer hookSonnet + ask_arbiterTDD planCode + tests
9. AcceptanceAcceptance agentSonnetCode + tests, Refers to Confirmed reqsAcceptance
10. Hand overMain sessionAcceptanceLeftovers
Build pipeline skill

10 steps · 7 roles · 2 tools · 2 loops · 12 runs in 9 project folders since 2026-10-17

The person stops only once, to confirm requirements. Design and plan each pass two separate models, and acceptance is judged against the confirmed requirement page.

  • Steps 1–4 gather the original words, the design and the confirmed requirements; step 4 is the only stop
  • Steps 5–9 run unattended. The design and the TDD plan are each revised until both Codex and Claude say READY
  • Writing and reviewing are done by subagents, each pinned to a model; the main session only asks, submits and records
  • Only the state script writes pass, fail and the resume point. One run of 12 has passed every stage; the rest are paused at, or still working through, a middle stage

Project folders involved (4)

This workflow does not live in one folder: it runs across projects.

~/.claude/skills/build-pipeline
The core: the procedure, requirement templates and the state script
<project>/doc/pipeline/<date>-<task>
One folder per run inside each project: files 00–09 and the state file
~/.claude/hooks/ask_arbiter
Hook that answers mid-run questions only when two models agree
9 project folders
Where it ran: the decision hook, schedule tools, a voice bridge, a book manuscript, a private website folder and more
Input list

Step 1 · Design agent + State script

Input liststage 0

Copy the requester's words verbatim and turn missing inputs into questions.

  • No summarising: the original words become the yardstick for every later stage
  • Anything measurable (performance, counts) is measured before asking
  • Nothing moves on while a decisive input is missing

Claude CodeThe state file is created with the task folder, and each stage is recorded the moment it ends

OutputsInput list
Refine prompt

Step 2 · Prompt refiner

Refine promptstage 1

Have a prompt-refining agent rewrite the request for the design.

  • The rewritten request is saved as a file and becomes the design's input
  • If the agent is missing, the run continues and says "not refined" up front
  • The quality of the request sets the quality of the design
InputsInput list
OutputsDesign prompt
Outline design

Step 3 · Design agent

Outline designstage 1

A strong reasoning model writes the outline design and the baseline.

  • Root cause and fix, evidence and cost for each option, and the points the author must decide
  • Revisions never rewrite the text: they are appended as "rN" sections at the end
  • The baseline is frozen here; later re-measurements go into a separate file

Claude CodeThe design model is never used for execution; every dispatch names its model explicitly

InputsInput list
OutputsOutline design
Refers toDesign prompt
Confirm reqs

Step 4 · Requester + State script

Confirm reqsstage 2

Confirm the requirement summary and user cases with the requester, one item at a time.

  • Every requirement notes which of the original remarks it came from
  • The last question checks that nothing was dropped
  • The confirmed version is never edited afterwards; any change comes back here and is asked again

Claude CodeThis is the only stop; after it, a goal condition lets the rest run on its own

Common misconceptionConfirm only a summary and you cannot tell which remark got dropped

InputsOutline design
OutputsConfirmed reqs
Design review

Step 5 · Dual review + State script

Design reviewstage 3

Codex and a separate Claude review the design without seeing each other's verdict.

  • If either reviewer asks for changes, the round fails
  • Up to four revisions; after that the run stops and reports what is unresolved
  • Self-review cannot pass the gate: if Codex is unavailable, the run stops

Claude CodeThe state script rejects a pass that does not name both reviewers

Common misconceptionREADY comes only from the two reviewers; no automatic answer can stand in for it

InputsOutline design
OutputsReview logs
Refers toConfirmed reqs
TDD plan

Step 6 · TDD planners

TDD planstage 4

Write the work items and test matrix, then have another agent attack them.

  • Each user case gets at least one acceptance test you can observe on a page or in output
  • Each work item names the requirements it covers
  • Only once the adversary stops finding gaps does the plan go to review
InputsOutline design, Review logs
OutputsTDD plan
Refers toConfirmed reqs
Plan review

Step 7 · Dual review + State script

Plan reviewstage 4

The TDD plan is also reviewed by Codex and a separate Claude.

  • The reviewer is a different agent from the one that wrote the plan
  • It checks the work split, whether tests check behaviour, acceptance tests for each user case and manual gates
  • Same rules as design review: four failed revisions and the run stops
InputsTDD plan
OutputsReview logs
Refers toConfirmed reqs
TDD build

Step 8 · TDD builders + Auto-answer hook

TDD buildstage 5

One work item at a time: see the test fail, then implement.

  • One implementer per work item; each item commits and pushes only its own files
  • If an implementer changes a recorded assertion, the person is asked to accept or reject it
  • Manual gates (servers, global settings) are run or explicitly approved by the person

Claude CodeQuestions that come up mid-run are answered automatically only when the dual-model hook agrees

InputsTDD plan
OutputsCode + tests
Acceptance

Step 9 · Acceptance agent

Acceptancestage 6

Run each confirmed user case for real and fill in the acceptance table.

  • The "expected" column is copied from the confirmed version; rewriting it would swap the yardstick
  • Every original remark gets evidence: passed, carried out, or deliberately deferred
  • One failure and the run is not done

Common misconceptionAll automated tests passing is not enough while items that need a person's eyes or ears remain

InputsCode + tests
OutputsAcceptance
Refers toConfirmed reqs
Hand over

Step 10 · Main session

Hand overstage 7

Turn leftovers into issues and write down where work had to be redone.

  • Deferred items, unrun gates and known risks each become an issue
  • The retrospective ends with what the next input list should add
  • The project's README is updated here too
InputsAcceptance
OutputsLeftovers

Loops and rework

  • Changes requested in design review → step 3: Append a revision and resubmit to both reviewers; four revisions at most
  • Changes requested in plan review → step 6: Append a revision to the plan and resubmit

Key points

Requirements trace back to the original words. Each summary item notes which remark it was derived from, and confirmation questions go out one item at a time, ending with a single check that nothing was dropped.

Review by two models. Both the design and the TDD plan are reviewed by Claude and Codex without seeing each other's verdicts; if either asks for changes, a revision is appended and both review again. Up to four revisions are allowed; after that the pipeline stops and reports.

Acceptance from the user's side. Each confirmed user case gets an acceptance test you can observe directly, on a page, a command or its output, and every original remark needs evidence of pass or fail. A requirement without evidence does not count as done.