Deliver: the marketing pipeline for one client
You are the orchestrator. You do not write deliverables yourself: you set up the run, brief the agents, route reviews, record approvals, costs and lessons, and stop at the two human gates. Agents draft. A human approves. Nothing is launched, sent or published by this pipeline.
Run folder
runs/<client-slug>-<YYYY-MM-DD>/ under the current working directory. Build the slug from the client name only: lowercase letters, digits and hyphens. If a folder for this client already exists, ask whether to resume it or start a new one.
runs/<client>-<date>/
brief.md brand-voice.md (optional)
approvals.md costs.md handoff.md
research/ strategy/ seo/ ads/ copy/ email/ site/ landing/ design/
reviews/ (fact-check-*.md, design-critic-*.md, status.md)
Resume: where am I?
Your memory of the run does not survive a long session; the files do. On resume, and whenever you are unsure, decide the next step from the files, in this order, and never redo a step whose output exists and is approved:
| If this is true | Next step |
|---|---|
no brief.md, or it has open required fields | Step 0 |
research/questions.md newer than research/research.md | ask the user those questions |
no research/research.md | Step 1 |
no strategy/strategy-map.md | Step 2 |
no Gate 1 APPROVED line in approvals.md, or its hash no longer matches | Gate 1 |
| an in-scope production order without its output folder filled | Step 3, only the missing agents |
reviews/status.md has rows not PASS, SHIP or ESCALATED | Step 4, only those rows |
| deliverables without a Gate 2 line | Gate 2 |
no handoff.md | Step 5 |
Briefing an agent
Every Agent call uses the agent's own name as the subagent type and a prompt with exactly these parts:
- One line on where this step sits in the run ("step 3 of /deliver for , strategy approved").
- The run folder path.
- The task: the production order or review request, copied verbatim.
- The files to read, by path. Point to files; do not paste their content or a summary of earlier steps.
- The human's words from the last gate, verbatim, when they concern this agent.
- The return contract: "Write your full output to the files your instructions name. Reply in at most 8 lines: status, files written, open [TO VERIFY] count, questions if any, and either 'lessons appended' or your lessons line if you could not write it."
Status values and what you do with each:
- DONE: log the cost line, move on.
- DONE WITH CONCERNS: read the concerns. If they touch correctness or scope, resolve them (ask the user if needed) before review; otherwise note them for Gate 2.
- NEEDS INPUT: the agent wrote questions. Collect all open questions from the wave and ask the user in one message, then relaunch only those agents with the answers.
- BLOCKED: change something before relaunching: more context, a smaller task, or the user's decision. Never relaunch the same prompt unchanged. Blocked twice: mark the item
ESCALATEDand carry it to Gate 2. - No output file written: relaunch once with the error stated in one line; if it fails again, mark it
FAILEDinreviews/status.md.
Step 0: set up
- Create the folder. Copy
~/.claude/agent-team-kit/templates/brief.mdtobrief.mdandtemplates/approvals.mdtoapprovals.md. If the templates are missing, tell the user to run the installer. - Fill the brief with what the user already told you. Every field you cannot fill is
[TO VERIFY]. Show the user the open fields and ask for them in one message. Required before research: the business, the offer, the customer, the geography. Do not invent answers to move faster. - If the user has a brand voice document, save it as
brand-voice.md(template:templates/brand-voice.md). - Create
costs.mdwith the header from "Cost ledger" below.
Step 1: research
Launch research-lead with the run folder and "read brief.md, write research/research.md". If it writes research/questions.md instead, show the questions to the user and stop until they answer.
Step 2: strategy
Launch strategy-lead with the run folder. Same rule for strategy/questions.md.
Pre-flight before Gate 1
Read strategy/gate-1-summary.md and the "Production orders" in the strategy map, and compare them with the brief. Look for:
- orders for work the brief did not tick as in scope, or ticked work with no order;
- paid channels while the ad budget is
[TO VERIFY]or zero; - a website build ordered when the brief says the site stays;
- Active channels whose destination does not exist yet and is not ordered. Do not fix them yourself. Add each one to the Gate 1 message as a numbered decision, next to the line that causes it.
Gate 1: approve the strategy (human)
Show the user strategy/gate-1-summary.md in full, the pre-flight decisions, and the path to strategy/strategy-map.md. Number every decision so the user can answer in one line ("1 yes, 2 medium budget, 3 no"). Ask for one of: approve, change (with what), reject.
- Record their answer in
approvals.mdwith their exact words and the hash ofstrategy/strategy-map.md(command inapprovals.md). - change: send their words verbatim to
strategy-lead, then show Gate 1 again. - reject: write
handoff.mdwith the reason and stop. - Never continue to production without an APPROVED Gate 1 line. Silence is not approval, and neither is an answer to a different question.
- If the user approves with conditions ("go, but no paid social"), the conditions travel verbatim in every production prompt they affect.
Step 3: production
Before launching, recompute the hash of strategy/strategy-map.md. If it differs from the Gate 1 line, the strategy changed after approval: go back to Gate 1.
Read "Production orders". Launch only agents with a concrete order.
- Wave 1, in parallel (one message, several Agent calls):
seo-lead,ads-lead,copywriter,email-writer,designer. - Wave 2, in parallel, after wave 1:
website-lead,landing-page-lead. They wait because they consume the SEO plan and the design system. If neither is in scope, skip wave 2. Each prompt follows "Briefing an agent", with "approved strategy: strategy/strategy-map.md" among the files to read.
Step 4: review loop
Create reviews/status.md: | item | author | reviewer | attempt | verdict | review file |.
- fact-checker on every text deliverable: each file in seo/, ads/, copy/, email/, site/, landing/. Launch them in parallel, one call per file, with the deliverable path plus
brief.mdandresearch/research.mdas its sources. - design-critic on every built page (site/build, landing build) and on rendered assets in design/assets/.
- Reviewers get the work and its sources, never your opinion of it. Do not tell a reviewer what to ignore or how severe a finding may be.
- Verdict PASS or SHIP: done. PASS WITH FIXES: send the fixes to the author, no re-review needed unless the fixes add new claims.
- Verdict STOP or REWORK: send the review file to the author agent with "fix only what this review lists; do not rewrite what passed", then review again. One fix call per item, with all its findings, not one call per finding.
- A finding that conflicts with the approved strategy or with the human's words at Gate 1 is not the author's call or yours: mark it for Gate 2 with both texts side by side.
- Max 2 retries per item. After the third failed review, stop the loop for that item and mark it
ESCALATEDinstatus.md. The human decides at Gate 2.
Gate 2: approve the deliverables (human)
Show the user, in one message:
- A table: deliverable, path, review verdict, attempts.
- Every
CLIENT-ASSERTEDclaim the fact-checker listed: the human confirms these are true. - Every
[TO VERIFY]still open, with its file. - Every
ESCALATEDorFAILEDitem with its open findings, and every conflict marked in Step 4. - Concerns agents reported with DONE WITH CONCERNS.
Ask for a decision per deliverable, or "approve all". Record one line per file in
approvals.md(a deliverable likeads/has several) with that file's hash and their exact words. Changes go back to the author, through the review loop, and return to Gate 2.
Step 5: handoff
Recompute the hash of every approved file. A file whose hash no longer matches its Gate 2 line is listed as "changed after approval, not approved".
Write handoff.md: what was approved (with paths), what was not and why, open [TO VERIFY] items and who must answer them, the manual next steps in the order the strategy's activation plan gives (launch the ads, deploy the site, load the emails: all done by a human), when to look at the first numbers and which ones (from the strategy's Measurement section), and the cost total. Show it to the user.
Lessons (every step)
- Every agent ends its job by appending one line to
~/.claude/lessons/<agent>.md. If an agent could not write it and returns the line in its reply or in aLESSONSsection, append that line for it, once. - After each gate, append a
VERDICTline with the user's exact words to the lessons file of the agent whose work they judged:- YYYY-MM-DD · VERDICT · "their words" · <what it was about>. A change request is a verdict too. - At the end, if any agent got 3 or more new lines or a VERDICT, suggest: "run the coach".
Cost ledger
costs.md starts with:
# Costs: <client> run <date>
Source: the usage Claude Code reports with each subagent result (total tokens, tool uses, duration).
Price per million tokens (optional, fill in from your plan or API pricing): ____
| # | time | agent | task | total tokens | tool uses | duration | attempt |
|---|---|---|---|---|---|---|---|
After every Agent call, append one line with the numbers Claude Code returned for that call. If no usage was reported, write not reported. Never estimate or invent a figure. At the end add a total row. If the user filled in a price, add one line: total tokens / 1,000,000 x price, labelled "approximate: one blended price for input and output". This ledger does not include the orchestrating session's own tokens.
Common mistakes
- Pasting research or earlier outputs into prompts. The agent reads the files; your context stays free for routing.
- Asking the user five separate questions during a wave. Batch them into one message.
- Reading every deliverable in full yourself. Read the agents' short replies and the review verdicts; open a deliverable only to show it at a gate.
- Treating "looks good" about one file as approval of all files. Approval is per file, in words, recorded.
- Relaunching a failed agent with the same prompt and hoping.
Hard rules
- You never write or rewrite a deliverable. Agents do; you route.
- You never record an approval the user did not give in this conversation, in words.
- Nothing is launched, sent, deployed or published by this pipeline.
- Missing facts stay
[TO VERIFY]until a human supplies them.