Toolkit: prompts, the reconciliation table, screenshot comparison and acceptance
About 11 min read
Created: 2026-11-06. Companion to the learner lesson. Everything here is meant to be copied and adapted. The square-bracketed parts are yours to fill in, and every example uses fictional content.
1. The ten-step protocol on one page
| Step | What you do | What you leave behind |
|---|---|---|
| 1. Understand the function | List what the screen must show, which processes must survive and which actions happen in another system | A functional inventory (prompt A) |
| 2. Generate the look | Ask an image model for three or four whole-page directions with the same content | Three or four concept images |
| 3. Lock one direction | Pick one. Write down its palette, type, spacing, density and navigation so the next agent finds it | A direction note (prompt C) |
| 4. Make page references | Generate each important page and state in the locked style: selected item, expanded detail, empty, warning, phone | One reference per page or state, saved as files beside the work |
| 5. Reconcile | Go element by element through each reference: adopt the presentation, adapt it, or reject it as invented | The reconciliation table (section 3) |
| 6. Build simply | Implement in the existing stack. No new framework, dependency or animation unless a real requirement asks for it | A small diff and green functional tests |
| 7. Render and compare | Screenshot the real page at fixed viewports with fixed data, beside the reference | A comparison page and a gap list (section 4) |
| 8. Close the gaps | Fix the few gaps that matter most, re-render, compare again. Stop at a set number of rounds | A shorter gap list each round |
| 9. Accept twice | Functional tests say it works. The owner's visual verdict says it looks right. Record both, separately | Two results (section 5) |
| 10. Keep the lesson | Write down what worked, what failed and what added complexity for nothing | A short retro in the unit or repo |
Use it when the look matters and nobody can yet show what "right" looks like. Skip steps 2 to 4 when a working design system or a precise visual specification already exists: then that system or specification is the target, and you start at step 5.
2. Example prompts
A. Functional inventory (to the coding agent, before any image)
Read [the page or component] and its tests. Do not change anything yet.
Return one table with these columns:
- what the screen must show (each piece of information, with its source field)
- which processes or rules must keep working (refresh, counts, links, warnings, permissions)
- which actions happen in another system, and which system (for example: approvals happen in [tool])
- what the tests already prove, and what they cannot prove (anything about how it looks)
Then list the views and states a reference image will need: default, selected item, expanded detail,
empty, warning or stale, long content, phone width.B. Whole-page concepts (to the image model)
Design a [desktop web dashboard] for [one sentence on who uses it and the one decision they make on it].
Show the whole page at 1440 by 900, not a single component.
Use only these sections and actions: [paste the inventory's sections and actions].
Use plausible fictional content: [three or four sample rows].
The person's next action must be the first thing the eye lands on.
Style: [two or three words, for example calm, dense, operational].
Give me four clearly different directions: different navigation, different density, different use of colour.Ask for whole pages. A beautiful button tells the coding agent nothing about where the list, the detail and the navigation sit.
C. Lock the direction (to any model, with the chosen image attached)
This image is the chosen direction for [product]. Describe it as a style note another agent can build from:
layout regions and their widths, navigation pattern, type scale (sizes for title, section, body, label),
spacing rhythm, corner radius, colour roles (background, panel, text, muted, accent, and the colours for
blocked, caution, success and progress), density (rows visible per screen), and how overview and detail relate.
Do not describe features. Describe presentation only.Save the note where the next agent will read it. Do not change the direction with every iteration. If the direction really is wrong, change it once, on purpose, and regenerate the page references.
D. Page and state references (to the image model, with the chosen image attached)
Same visual style as the attached image. Now draw the [Projects] page of the same product at 1440 by 900.
It shows [the inventory items for this view]. Keep the navigation, type and colours identical.
Then draw: the same page with one item selected and its detail open; the empty state; a warning state
where the data is stale; and the [Operate] page at phone width, 390 by 844.Save every reference as a file in the work's folder (for example `references/ref2_operate.png`) and point every later prompt at the path. An image that exists only as a chat attachment can drop out of a long session's context.
On the FF board the five references were in the agent's context during a pass that never compared against them, and a context compaction then dropped them.
E. Reconcile (to the coding agent, with the references and the inventory attached)
These images are visual targets, not specifications. Compare each one with the functional inventory.
For every element in every image, put one row in a table:
element | which image | exists in the app today? | decision: adopt the presentation / adapt / reject | reason.
Reject anything the app does not do or should not do: invented buttons, invented counts or statuses,
navigation to pages that do not exist, data we do not record, actions that belong in another system.
Name each rejection. Do not build anything yet.F. Implement (to the coding agent)
Implement the approved rows of the reconciliation table so the page matches the references as closely as is
practical. Constraints:
- the existing stack and files only: [plain HTML and CSS rendered by X]; no new framework or dependency;
- presentation only: the same items, counts, order, links, warnings and permissions;
- every existing functional test stays green; change a test only where it encoded the old look, and say which;
- then render the page at 1440x900, 1280x800 and 390x844 with the fixed fixture [path], light and dark if both exist,
and put each screenshot next to its reference on one local comparison page.
Report the gaps you can see between each screenshot and its reference, not only the test results.G. Compare a screenshot with its reference (to a model that can see images)
Image 1 is the agreed target. Image 2 is the real page at the same viewport with real or fixture data.
List the ten most visible differences, most important first. For each: the category (composition, navigation,
hierarchy, density, spacing, typography, colour, component style, overview-to-detail relationship, state),
what the target does, what the page does, and the smallest change that would close it.
Ignore differences that come from the reconciliation table's rejected rows: [paste them].
Do not suggest new features.H. Close the gaps in a bounded round (to the coding agent)
Fix gaps [1, 2 and 4] from the list. Nothing else. Keep the functional tests green.
Re-render the same viewports with the same fixture and update the comparison page.
Stop after this round and report: which gaps closed, which remain, and any new difference you introduced.Words that do not work on their own
"Make it cleaner", "make it more modern", "make it look like Linear" and "it still looks the same" are honest reactions, but on their own they give the coding agent nothing to converge on. Turn each one into an image (prompt B or D) or into a named gap against an image you already have (prompt G).
3. The reconciliation table
One row per element you can see in a reference. Fill it in before anyone writes code.
| Element | Image | In the app today? | Decision | Reason |
|---|---|---|---|---|
| Left navigation with three views | Operate | Three views exist as tabs | Adopt the presentation | Same views, better wayfinding |
| "Approve" button on a request | Operate | No: approval is a GitHub review | Reject; show "Open PR in GitHub" instead | GitHub is where approval happens |
| Search with a keyboard shortcut | All | No | Reject for this round | No feature just because an image shows it; search is planned separately (D2) |
| "Live" badge, updates every 15 s | Operate | The board reads a snapshot | Reject | It would claim freshness the page does not have |
| Detail tabs and an event timeline | Evidence | The records hold no event stream | Reject | The data does not exist |
| Flat table of projects | Projects | Pockets contain projects | Adapt: keep both levels, borrow the row style | Both levels carry meaning |
| Progress bars per project | Projects | Round counts exist | Adopt, labelled with the real counts | No invented percentages |
| Count tiles at the top | Operate | The counts exist | Adopt | Same numbers, easier to scan |
The rows above are the real decisions from the FF Work board case. Yours will differ. What matters is that every rejection has a reason, and the reason is about the app, not about taste.
4. Screenshot comparison procedure
Fix the inputs.
- Data: one frozen fixture or snapshot, used for every screenshot in the round, before and after. Include the hard cases: the longest real title, a warning or stale state, an empty group, many items.
- Viewports: at least one desktop and one phone. FF uses 1440×900, 1280×800 and 390×844.
- Theme: light and dark if the product supports both.
- Browser: the same headless browser for every capture, at 100% zoom, with fonts loaded and the page settled.
- Revisions: the exact commit for "before" and for "after".
Capture the states. The default view of each page; one item selected; an expanded detail; the empty state; the warning state; the phone layout. Capture the viewport, not only a full-page image. A full-page image hides what fits on the first screen.
Put them side by side. Make one local page with, for each state, the reference, the before and the after in one row. If the data is internal, the page stays local and is not posted anywhere public.
Compare by category. For each pair, mark each category as matches, close or off:
| Category | The question |
|---|---|
| Composition | Are the same regions in the same places (navigation, list, detail, summary)? |
| Hierarchy | Is the first thing the eye lands on the same as in the target? |
| Density | Roughly how many items show on the first screen, and how many words per item? |
| Spacing | Is the rhythm between and inside blocks similar? |
| Typography | Are the sizes and weights of title, section, body and label in the same proportion? |
| Colour | Do the colour roles match, and do the status colours mean what was agreed? |
| Navigation | Is it the same pattern, in the same place? |
| Overview and detail | Does the selected item open the way the target shows, without losing the list? |
| States | Do the empty, warning, selected and phone states look like their references? |
Write the gap list. Each gap gets the category, what the target does, what the page does and the smallest fix. Rank the gaps by how visible and how important they are. Leave out anything the reconciliation table rejected.
Check parity separately. On the same snapshot, confirm the same items, counts, links, warnings and permission targets as before. This is the functional half and it has its own result.
5. Acceptance criteria
A visually important change is accepted when both halves pass and both are recorded.
Functional acceptance (does it work?)
- Every existing functional test passes, and any test that changed is named with the reason (old presentation or operational contract).
- Same-snapshot parity: identical items, counts, order, links, warnings and authorization targets.
- No new dependency, framework or animation without a stated requirement.
- Keyboard access, visible focus and readable contrast still work.
Visual acceptance (does it look like the agreed target?)
- Screenshots exist for every required state at every review viewport, with the revision and snapshot named.
- Each screenshot sits beside its reference, and each category is marked matches, close or off.
- Every "off" is either fixed or listed with a reason the owner accepts.
- Nothing the reconciliation table rejected has crept back in.
- The person who owns the experience gives a verdict on the screenshots, and the verdict is recorded apart from the test results. Passing tests are never offered as the visual verdict.
6. Signs you are in the loop this lesson is about
Stop and go back to step 2 when you see any of these:
- A second round of written feedback about the look, with no picture of what "right" would be.
- "All tests pass" offered as the evidence that a redesign worked.
- A diff that is mostly colour and spacing tweaks, described as a redesign.
- Screenshots that compare before with after, with no target in the frame.
- The reference images exist only as chat attachments, and no screenshot has been put beside them.
- A test pins a presentation choice the target changes, and the agent keeps the old look to keep the test green. Say whether the test encodes old presentation or an operational rule, and change it only in the first case.
- The owner says it looks almost the same as before.
- The agent asks whether to build a button or a page it saw in an image. The reconciliation step was skipped.
- The aesthetic direction changes between iterations.