claude-workflows Author
An AI product team that turns a brief into one reviewed PR
2026 — claude-workflows is the AI product team I designed and run for my projects: one Claude Code command takes a brief through planning, parallel development, review and browser QA to one pull request, left open for me to merge. This site, Cave Croisette, Mon Ami and features of DeLiky and ThreadPilot were built with it.
Key facts
- 11
- agent roles in the workflow, each with its own prompt and a pinned model and effort level
- Source product-team.js · 1 Dec 2026
- 11 of 11
- harness scenarios passing with mocked agents, including the review cap and the never-merge rule
- Source test-workflow.mjs · 1 Dec 2026
- 34,184
- fidelity checks on the Cave Croisette build against its signed-off prototype, 0 unexcused differences
- Source cave-croisette PR #8 · 15 Oct 2026
- Me: brief, design picks, merge Mine
- Director: brief + yes/no criteria Mine
- CTO + BA: docs check, subtask DAG Mine
- Designer / Copywriter Mine
- Developer pool: worktrees, TDD Mine
- Principal review, max 2 rounds Mine
- QA in a real browser, then PO Mine
- One pull request (GitHub) External
- Me: brief, design picks, merge → Director: brief + yes/no criteria: task, answers, ok
- Director: brief + yes/no criteria → CTO + BA: docs check, subtask DAG: brief + criteria
- CTO + BA: docs check, subtask DAG → Designer / Copywriter: when the task needs UI or copy
- CTO + BA: docs check, subtask DAG → Developer pool: worktrees, TDD: subtasks in waves of 4 (max 6)
- Designer / Copywriter → Developer pool: worktrees, TDD: shared design spec, final copy
- Developer pool: worktrees, TDD → Principal review, max 2 rounds: git diff per subtask
- Principal review, max 2 rounds → Developer pool: worktrees, TDD: REWORK
- Principal review, max 2 rounds → QA in a real browser, then PO: merged one at a time
- QA in a real browser, then PO → Developer pool: worktrees, TDD: bugs, fixed in parallel
- QA in a real browser, then PO → One pull request (GitHub): PO verdict
- One pull request (GitHub) → Me: brief, design picks, merge: I review and merge
- Mine
- External
Agents do the work inside a run; I write the brief, approve the criteria and make the calls that need judgment, and the workflow never merges a pull request by default.
What I built
A brief with yes-or-no criteria
I type /team in Claude Code, and a Director agent questions me until every acceptance criterion can be checked yes or no. Nothing starts before I approve the brief. After that the run goes on by itself and comes back to me for the calls that need taste or business judgment.
Review, browser QA and one pull request
A reviewer agent reads each subtask's real diff as soon as its developer finishes, for two rounds at most; anything still open goes into the pull request as a known issue. A QA agent then tests the merged task branch in a real browser and marks every criterion pass or fail with evidence, and a PO agent judges the result as a user would.
A design stage that waits for my pick
Design subtasks run as a pair in one worktree: Fable, the design model, only draws, while a cheaper Sonnet assistant writes the documents, runs the checks and handles git. Logs had shown about two thirds of Fable's spend going to that work (an estimate). For Cave Croisette the team drew five directions and recommended a mix of two; I picked another.
Context
I build my own products and sites for clients. The first version of this workflow gave one frontend and one backend agent a whole task each. Their context grew until the task ended, so every call cost more than the one before, and the task moved at the pace of the slower agent. I rebuilt it around one plan and many small subtasks running in parallel.
My role
I designed the pipeline and its rules, and I'm the only author of the repository; agents wrote part of its code on my instruction. On a run I answer the Director, make the calls that need judgment and sign off; every other role is an agent. On long runs Hermes, an open-source agent, keeps the Director session alive and relays my decisions as dated files.
Architecture
- Me: brief, design picks, merge Mine
- Director: brief + yes/no criteria Mine
- CTO + BA: docs check, subtask DAG Mine
- Designer / Copywriter Mine
- Developer pool: worktrees, TDD Mine
- Principal review, max 2 rounds Mine
- QA in a real browser, then PO Mine
- One pull request (GitHub) External
- Me: brief, design picks, merge → Director: brief + yes/no criteria: task, answers, ok
- Director: brief + yes/no criteria → CTO + BA: docs check, subtask DAG: brief + criteria
- CTO + BA: docs check, subtask DAG → Designer / Copywriter: when the task needs UI or copy
- CTO + BA: docs check, subtask DAG → Developer pool: worktrees, TDD: subtasks in waves of 4 (max 6)
- Designer / Copywriter → Developer pool: worktrees, TDD: shared design spec, final copy
- Developer pool: worktrees, TDD → Principal review, max 2 rounds: git diff per subtask
- Principal review, max 2 rounds → Developer pool: worktrees, TDD: REWORK
- Principal review, max 2 rounds → QA in a real browser, then PO: merged one at a time
- QA in a real browser, then PO → Developer pool: worktrees, TDD: bugs, fixed in parallel
- QA in a real browser, then PO → One pull request (GitHub): PO verdict
- One pull request (GitHub) → Me: brief, design picks, merge: I review and merge
- Mine
- External
The runtime is a Claude Code Dynamic Workflow, and the Director is my own Claude Code session. Twelve JSON-schema contracts type every hand-off. If any subtask is not done, the run returns BLOCKED with its full ledger instead of opening a partial pull request.
Decisions
Plan once as a graph, then build in parallel
A CTO agent cuts each task into a graph of subtasks with explicit dependencies. Developers take them in waves of four by default (six at most), each in its own git worktree with tests written first. Each sees only its subtask and one-line summaries of its dependencies, which is designed to keep the context small. The price is that one wrong assumption in the plan lands in every worktree at once. To limit that, the CTO reads current documentation through context7 before planning and maps the task as nodes and edges first, so a gap shows up as an edge nobody builds.
Pin a model and an effort level to every role
An expensive model goes where a mistake is expensive: Opus plans and reviews, Fable draws, Sonnet writes code against a ready spec and runs QA. The rule came from a bug. Every agent call inherited the session's model, and since my local settings said Sonnet, the CTO had been silently planning on the cheaper model. Now each role has its own model and effort level, and the test harness fails any call that lacks either. In return I keep a routing table by hand and update it whenever the models change.
Results
/team is installed and in use (verified 1 Dec 2026). Built with it:
- This site: three design directions, the design system and the build.
- Cave Croisette, cave-croisette.fr: the design research, five directions, the design system and the build.
- DeLiky, deliky.com.ua: features such as city-scoped search and readable medicine names.
- Mon Ami — Atelier Étoile, rufbeauty.fr: the main builds of the salon's site.
- ThreadPilot: dashboard and backend features, in September 2026.
- A zhulova.com redesign: five directions drawn, not shipped.
Not measured yet: cost and speed against my first version on real runs.
What I'd do differently
- I'd size each run to the weekly model limits before it starts: in October 2026 they stopped runs, including the Cave Croisette build, which wound down until the weekly reset.
- My own gates need deadlines. One redesign run drew five directions, then waited for my pick, and it was never shipped.
- I'd measure spend before and after each change on a real run. My figures are price-weighted estimates whose scripts are gone, so I can't reproduce them.
Plates
Previous case


