"Design a screen" is the worst prompt in product management. It produces something pretty that answers nothing: no one decided what the screen is for, which states it has, or what was already agreed last week. The model fills every gap with a guess, and each guess looks like a decision.
I replaced that prompt with a pipeline of specialist agents, each with a contract: discovery when it's earned, one designer with three intensities, a ledger of locked decisions, a spec agent that isn't allowed to redesign, and a branch that turns the approved prototype into a clickable app. This is how each stage works and why it exists.
The failure it's built to prevent
The design agent's file names the failure in one line: silent styling decisions accumulating until I only see the sum. One model picks a spacing, then a colour for an error state, then a different button style on the third screen, and none of those choices is shown to me as a choice. By the time I review, I'm reacting to fifty decisions at once and can't tell which ones were deliberate.
Every stage below exists to make decisions visible one at a time, write them down, and stop the next stage from quietly changing them.
Design isn't one AI task. It's a supply chain with quality gates.
Stage 1: discovery, only when it's earned
The order is fixed: discovery when needed, then design, then an exit gate, then the spec on request, then review. Discovery is the conditional part, and it's sized to how much I don't know.
- A quick mockup in a known area skips discovery entirely.
- A change to an existing screen gets a short grounding pass on that screen, unless its ledger is already on hand.
- Greenfield work gets the full blindspot pass, or a brainstorm when there's no direction yet.
The blindspot pass doesn't start the task. It first shows me what I don't know I don't know, in four sections: landmines, hidden context, what good looks like (two or three real examples), and the questions I should be asking, each with the agent's best-guess answer. It closes with my original request, rewritten with all of that in it. The principle is one line in the discovery agent: unknowns found during discovery are cheap, and unknowns found mid-implementation are expensive.
Earned is the key word. Running discovery on everything wastes as much as running it on nothing. Since July 2026 discovery never triggers itself over an explicit request: the router suggests the blindspot pass and I decide.
Stage 2: one designer, three intensities
The design agent has three modes. Until July 2026 they were three separate agents. Merging them into one means decisions carry over when the work changes size mid-session.
| Mode | When | How it runs |
|---|---|---|
| Sprint | The pattern already exists, one screen or component, and a wrong guess costs one revision | Builds a first version straight away with an "Assumptions made" block, and closes with a short summary of its decisions |
| Hybrid | An existing product whose style must carry over unchanged, where the new part is one to three core components | Locks the inherited style first, builds the surrounding shell quickly, and gives the core components checkpoints and decision cards |
| Studio | A new pattern, a greenfield surface, a multi-screen flow, or anything strategic or stakeholder-facing | Locks a design brief, builds in increments, and at each checkpoint renders, restates the ledger, then asks |
The agent never asks me "which mode?". The mode follows from how many directions I want to see, which is one of the questions in the opening round, and the agent states the mode it inferred in one line so I can switch it. Sprint also knows when to stop being Sprint: the moment a new pattern is needed, feedback rounds contradict each other, or the scope grows into a flow, it hands up to Hybrid or Studio. I can override the mode at any point, and everything decided so far carries over through the ledger.
Before any render, the agent runs a drift check against what's locked. Before the exit gate, it runs a quality pass: worst-case data instead of tidy sample data, an anti-slop check, a UX-laws pass, a mobile check and a completeness check, plus contrast and touch-target minimums. The UX laws are nineteen behavioural heuristics, each with a check the design can actually fail. A law that doesn't come with a check isn't allowed in the review, and no screen gets more than five.
Stage 3: a locked ledger, not a memory
Every design has a ledger: one file per feature, with a table of locked decisions (which screen, what was decided, the date), a table of open items, a motion table, a table of changes, and the sources of the design tokens. Its header carries one field that matters more than the rest: approved as the basis for the spec, no or yes with a date.
The ledger's rule is printed at the top of the template: nothing locked ever changes silently. A change moves through the changes table with what it was, what it is now, why, and when. The agent is allowed to disagree with a locked line once, with reasoning, and then it respects the call. Reopening a locked line is my decision, never the agent's.
Downstream agents build against the ledger, not against "what we discussed". A later stage never asks again about something an earlier stage locked. If a new request contradicts a locked line, that contradiction becomes the question, put to me as a card. The design stage ends at an explicit gate: is this prototype approved as the basis for the spec package? Only on a yes does the final ledger become the design spec of record.
Stage 4: a spec agent that cannot redesign
Once the prototype is approved, a separate agent turns it into a package a team can build from. Its input is a contract: the approved prototype, the locked ledger and the items deliberately left open. If any of those is missing, it goes back to the designer to get it, rather than reconstructing it.
It produces, in this order:
- An end-to-end flow map.
- A storyboard, with at least one path that isn't the happy one.
- Finalised wireframes in Figma, one frame per screen and every state, with per-screen exports. When Figma isn't available, it writes the flow map and storyboard as text and draws the screens directly as SVG for me to paste in.
- Handoff notes: the design rationale, a screen inventory, a mapping from each acceptance criterion to the screens that cover it, and a ticket-ready breakdown. Each ticket carries its happy path and its edge cases, plus a backend ticket wherever the design implies one.
Screen IDs tie it together. Every screen has one ID, and that ID is the single source of truth across all four artifacts. A screen that's missing from one of them is a defect. That's also why tickets from a design always go through this agent: going around it is how designs reach the backlog without screen IDs, criteria mapping or exports.
Its hard rule: its edits to the design are zero. When it finds a gap, such as a missing state, an unclear rule or an edge case nobody drew, it never fixes it quietly. It batches the gaps into one question round, or sends them back to the designer as decision cards when they need a new render. A decision card gives the options, the recommended one first with its reason, and what depends on the answer. Separation of powers, for AI.
Stage 5: prototype to real app
The same ledger can branch into a working app, alongside the spec package, never instead of it. The demo agent builds a Next.js app with one route per screen ID, the design tokens set up first, every state preserved and the data clearly marked as mock.
It has its own fidelity rule: zero design edits. A screen in the app that doesn't match the approved prototype is a defect, not an improvement. Some deviations are forced by the platform: real routing, real focus behaviour, constraints of the framework. Those are allowed, but each one is logged in a deviations file next to the app. The agent's file calls silent deviation the failure mode it exists to prevent.
Deploys are gated too. A URL is a publication, even a preview one, so the agent asks before every deploy, defaults to a preview behind authentication, and records "demo deployed" only after it has fetched the preview URL and seen the expected page. Production runs only when I ask for it explicitly, for the one project I name. That last rule came from a real slip in October 2026: a request for one site also redeployed another. Now a yes for one project never covers a second.
When a demo graduates to real engineering, the handoff is the app source, the deviations file and the ledger, so the engineers can see exactly what was decided and what the platform forced.
Where do decisions still live in someone's memory?
That was the question I closed the original post with, and it's the question I ask on client work too. In most design flows I've seen, the answer is: in a Figma comment thread, in a call nobody wrote up, or in the designer's head. The pipeline above is my answer for AI agents, but none of it is specific to AI:
- Size discovery to the unknowns, not to habit.
- Make each decision visible as it's made, not as a sum at review time.
- Write it down with a date, and change it only through a logged change.
- Separate the people who decide from the people who document, so a spec never quietly redesigns.
- Log every forced deviation when design becomes code.
This is the structure I bring to product and design work for clients. The rest of the system is on how I work with AI agents.
Questions people ask
Why not let one agent design and spec the screen?
Because an agent that writes the spec will fix gaps by redesigning, quietly. Splitting the roles means every gap comes back to the designer as a visible decision, and the approved prototype stays the source of truth.
What goes in a design ledger?
Locked decisions with the screen and date, open items, motion decisions, a log of changes with the old value, the new value, the reason and the date, and where the design tokens came from. Plus one approval field: whether the prototype is approved as the basis for the spec.
When does a design need discovery first?
When the territory is new: a greenfield surface or a flow nobody has mapped yet. A quick screen in a known pattern skips it, and a change to an existing screen gets a short grounding pass instead.
First published as a shorter post: read the original on LinkedIn. The full system, with every agent and what it owns, is on how I work with AI agents.