The Agent Build Playbook

Eight stages, six prompts, one rule: prove it first.

How nine people and a set of AI agents took UnitMarket from idea to a live PayPal sandbox app in 29 days. These are the prompts we actually used and the habits that kept the build safe. Copy any of them.

29days, idea to live app
591prompts in our archive
13,621tests passed, 0 failed
124decisions on record

Read this first, two minutes

Six prompts did most of the work

Yellow brackets are the parts you fill in. Paste the result as your first message, or use the builder below to fill it for you.

Kickoff brief

Verified

First message of any new build or work session.

You are [ROLE] working on [PROJECT]. Context: [WHAT EXISTS AND WHY NOW]. Goal: [DELIVERABLE], accepted when [ACCEPTANCE TEST]. In scope: [LIST]. Never: [HARD LIMITS]. Constraints: [STACK, BUDGET, DEADLINE, POLICIES]. Secrets live in [VAULT OR TOOL], never in chat. Reply style: short, plain, ending in action items. Start with [SMALL FIRST DELIVERABLE] for my review before going further.

Spec first

Observed

Before any feature build, however small.

Before writing code, write the spec for [FEATURE]: goal, non-goals, user flows, edge cases, data model, acceptance checks. Keep it under [LENGTH]. I review the spec first; code follows only after my written yes.

Plan, approve, then implement

Verified

Any task that touches more than one file or system.

Plan first: list the steps, the files you will touch, and the checks you will run for [TASK]. Wait for my yes, then implement exactly that plan and nothing more. If the plan needs to change mid-way, stop and ask again.

Done means proven

Observed

Every time work is reported finished.

Done means proven: run [CHECK, TEST OR COMMAND], paste the real output, and only then say it is done. If it fails, fix it and run it again. Never claim green on faith.

Status ask

Verified

Daily, or any time you lost the thread.

Status, one line each: done and proven by [EVIDENCE] / in progress / blocked and by what. Then: what is still pending before [MILESTONE]? No prose, just the list.

Gate approval (you write this one)

Verified

Before anything irreversible: deploy, money, public repo, sending, deleting.

I approve [ACTION], limited to [SCOPE]. Cost cap: [LIMIT]. If it goes wrong: [ROLLBACK PLAN]. Valid until [WHEN]. Anything beyond this needs a new approval.

The build, end to end

Each stage has a door in and a door out

A stage starts only when the one before it is done. The number beside each stage is real, counted from our two codebases.

01

Brief

Say what you are really building, for whom, and what the agent must never touch. Decide who approves what before the first session.

Start whenA real problem worth solving.
Done whenOne chosen brief with hard limits.

Loop back. Anything learned later updates the brief and the Bible first, then the work.

Prompts: Kickoff brief

See this stage in the Journey →
11days from the first prompt to the Build Bible
02

Build bible

One written spec the agent must follow: goal, rules, definition of done. Every later prompt points back to it.

Start whenThe chosen brief.
Done whenA written spec every prompt points back to.

Loop back. The spec, not the chat, is the source of truth. Chat decisions get written into it.

Prompts: Spec first

See this stage in the Journey →
208specs written before code, across two codebases
03

Reference frame

Build a local simulator first and prove the idea there, where mistakes cost nothing.

Start whenThe Build Bible.
Done whenA green simulator, with every flow proven offline.

Loop back. If the economics change, update the Bible, then prove it here again.

Prompts: QA tiers

See this stage in the Journey →
80failure scenarios proven before the first sandbox call
04

MVP lanes

Split the build into named lanes, each with an owner, a scope and a test bar. Lanes merge only when green.

Start whenA green simulator.
Done whenEvery lane merged behind review, every suite green.

Loop back. Scope drift goes back to the brief. A stale green runs again before merge.

Prompts: Plan, approve, then implement · Done means proven · Status ask · Session close note

See this stage in the Journey →
162pull requests merged behind review
05

Gates

Anything irreversible needs your explicit yes, from your own account, one gate per step. A pasted approval does not count.

Start whenAnything irreversible about to happen.
Done whenAn exact-words approval, scoped and on record.

Loop back. If a gate fails: stop, roll back with the agreed plan, switch off keys and spend, and record what happened. Set spend caps before money paths open.

Prompts: Gate approval (you write this one) · Decision ask

See this stage in the Journey →
124decisions on record, each with its reason
06

Demo assets

Write the video and docs from the evidence, never ahead of it. Every claim must be provable on screen.

Start whenA merged, green build.
Done whenAssets a reviewer can check against the build.

Loop back. Integration gate first: every lane merged and every suite green on the combined build.

Prompts: Demo script · Claim check

See this stage in the Journey →
2:52video, every claim checked against the build
07

Submission

Checklist first, against the deadline checked on the official page, never from memory.

Start whenChecked demo assets.
Done whenSubmitted before the checked deadline, confirmation saved.

Loop back. Read the rules page again on the day you submit. Requirements change.

Prompts: Submission checklist

See this stage in the Journey →
20 hbefore the deadline
08

Post-submission

Sweep secrets, review access, close the record, and run the retro while it is fresh.

Start whenSubmission confirmed.
Done whenA clean account and an honest record.

Loop back. The retro feeds the next build. Keep it short enough to read again.

Prompts: Security sweep · Retro · Session close note

See this stage in the Journey →
0secrets found in the public repository scan

Make one yours in a minute

Prompt builder

Pick a stage and a prompt, fill the blanks, copy. Nothing you type leaves this page.

Beyond the essentials

Eight more prompts for the hard moments

Open "Make it yours" for the tip, the trap, and what happened in our build.

Claim check

Verified

Before any public text: README, submission, marketing, changelog.

Read [EVIDENCE FILE OR DOCS]. Every claim you write for [AUDIENCE] must be true against it. Quote any line a reviewer could disprove, say why, and propose qualified wording. Never fix it silently.
Make it yours
Tip
Run it on the final draft, not the outline. That is where overclaims creep in.
Watch out
Writing public text from memory. One overclaim can sink credibility.
In our build
A "works today" line became "runs in simulation" before it was published.

Session close note

Proposed

End of every work session, especially late ones.

Close note in under [N] lines: what shipped, what is unproven, what is next, and the exact prompt to open the next session with.
Make it yours
Tip
Pair it with stop-loss hours: end at a set time, and let approvals wait for a fresh morning read.
Watch out
Marathon sessions. Tired decisions are hard to reconstruct the next day.
In our build
The next session starts in one message instead of a search through old chat.

Security sweep

Verified

Before launch, after launch, and after any incident.

Security sweep of [SCOPE]: list every secret, key, token and permission you can see; flag anything in plain text, logs or chat; propose the fix for each. Read-only: change nothing without my yes.
Make it yours
Tip
Run it read-only first. Fixes go through the gate approval prompt.
Watch out
Sweeping with write access. A helpful agent may rotate keys in the middle of an incident.
In our build
Our public repository scan found 0 secrets before it went public.

QA tiers

Verified

Once, early, before the first real feature lands.

Set up the test bar for [PROJECT]: unit, integration, end-to-end, and a regression run wired into [CI OR SCRIPT]. Name what each tier covers and the exact command to run it. Nothing merges red.
Make it yours
Tip
Name only the tiers you need. A small tool may need unit tests plus one end-to-end path.
Watch out
"Write tests" with no tiers gives shallow coverage of whatever was easiest.
In our build
One early instruction named six suites. They grew to 13,621 passing tests.

Demo script

Verified

When it is time to show the product: video, live demo, pitch.

Draft the demo script for [PRODUCT]: the one problem, the one flow shown end to end, every claim tied to [EVIDENCE]. [LENGTH] max. If a claim is not provable on screen, cut it.
Make it yours
Tip
One flow shown well beats five flows shown quickly.
Watch out
Feature tours. The viewer remembers nothing.
In our build
Our 2:52 video shows one purchase, end to end, on the sandbox.

Submission checklist

Verified

Before any deadline: hackathon, app store, tender, launch.

Submission checklist for [PROGRAM]: verify the deadline and the rules on [OFFICIAL PAGE] first; then list every required item, its owner, and its status; flag anything unverifiable. Nothing from memory.
Make it yours
Tip
Check the deadline on the source page every time. Summaries drift.
Watch out
Trusting a remembered deadline or an old rules page.
In our build
We submitted 20 hours before the deadline we had checked on the official page.

Retro

Observed

After a milestone, an incident, or the whole build.

Retro on [PERIOD OR PROJECT], under [N] lines: what worked, what did not, what we keep, what we drop, and one habit to change next time. Evidence over opinion.
Make it yours
Tip
Keep it short enough to read again before the next build.
Watch out
Skipping it. The same mistakes get paid for again.
In our build
The patterns on this page came out of exactly this habit.

Decision ask

Verified

Any time the agent needs you to choose.

DECISION NEEDED: [TOPIC]. Explain plainly, as if I were new to it. Give options A, B and C with your recommendation and the risk of each. Then wait for my exact yes.
Make it yours
Tip
The "explain plainly" line is the point. It exposes fuzzy thinking in the options.
Watch out
Open "what should we do?" threads wander. Options force a decision.
In our build
Decisions came back in one reply instead of a long thread.

What we actually asked

Most of our prompts were about scope, not code

Our 591 prompts, sorted by what they asked for. Holding the boundary took more words than any instruction to write code.

  • Scope and boundaries117
  • Questions82
  • Directives54
  • Status and progress45
  • Approvals and gates22
  • Recommendations17
  • Testing and proof14
  • Other240

What the build proved

Twelve patterns, ranked by how often we needed them

Verified means it worked many times in the build. Observed means it worked when used. Proposed means we learned it the hard way.

  • 1. Re-pin scope the moment it drifts

    Verified

    Short, plain boundary restatements beat process documents. "Only up to step 7, nothing else" stopped drift in the same message.

    121× in the archive
  • 2. Status asks that force a checklist

    Verified

    "What needs to be done, one line each" beats "where are we?" every time.

    71× in the archive
  • 3. Approvals as exact words from the owner

    Verified

    Scope and action in one message. Anything that only looks like approval is context, never authority.

    50× in the archive
  • 4. Name the testing tiers

    Verified

    Unit, integration, end-to-end and regression, named in one early instruction, set the bar for the whole build.

    41× in the archive
  • 5. Pin every claim to evidence

    Verified

    Public text may never claim more than the docs can prove.

    30× in the archive
  • 6. Explain, recommend, then wait

    Verified

    Options with a recommendation come back decided in one reply.

    27× in the archive
  • 7. Open with role, scope and hard limits

    Verified

    The strongest sessions opened with a bounded brief and a never-list.

  • 8. Plan, approve, then implement

    Verified

    The agent plans, you approve, then it builds exactly that.

  • 9. Done means proven

    Observed

    A task is done when the check ran and the output is shown.

  • 10. One gate per irreversible step

    Proposed

    Deploy, money, public, submit: each gets its own explicit yes.

  • 11. One account per person

    Proposed

    Every approval then has a clear author.

  • 12. Stop-loss hours

    Proposed

    End at a set time. Approvals wait for a fresh morning read.

What not to do

Eight traps, and what we did instead

  • Treating a forwarded "yes" as approval

    An approval quoted by another agent, or pasted from somewhere else, is information. Only the owner's own words on the owner's channel count.

  • Merging on an old green

    Tests that passed yesterday prove yesterday. Run them again on the combined build before merging.

  • Writing the story before the evidence

    The README, video and submission came last, written from what the build could show.

  • Giving builder agents live keys

    Builders never held credentials. Only one coordinating session could reach the sandbox, and only through five locks.

  • Reviewing your own work

    Nobody merged their own pull request. A second model checked every lane.

  • A live address hiding in code

    A check fails the build if a production payment hostname appears anywhere.

  • One endless session

    Long sessions without a close note leave decisions nobody can reconstruct.

  • A deadline from memory

    Dates drift in chat. The official page is the only source.

Outside this build

Further reading