**Optional lesson: Generate the target first**
About 8 min read
(optional, unscored: no exam form, no weight)
Lane: implementation. The proof is a screen that matches a picture the owner agreed to, with its functional tests still green.
Outcome: when a screen's look matters, you get a picture of the target agreed before a coding agent builds it, you reconcile that picture with what the product really does, and you accept the result twice: once for function, once for look.
Setup purpose: fewer redesign rounds that pass every test and still look wrong. It maps to no Command OS data point.
The question you came with
"The AI keeps improving the page, the tests keep passing, and it still looks the same. What am I doing wrong?"
You are describing a picture in words and asking the AI to guess it. Coding agents are good at building what a sentence says.
A sentence about how a page should feel ("cleaner", "more modern", "like Linear") leaves almost everything open, and the agent fills the gaps with small, safe changes to the layout it already has. Give it the picture instead.
Image generation can produce one in minutes, and that picture becomes the missing specification between what you want and what the code does.
Section 1. Words don't converge on a look
The idea. A written brief is good at function: what must show, what must keep working, where an action happens. It is bad at composition: where things sit, what the eye lands on first, how dense the page is, how the overview relates to the detail.
When the look exists only in prose, every round of feedback is another paragraph, and the agent's safest reading of a paragraph is a smaller version of the page it already has. Tests cannot catch this.
They check that the right things are on the page, not that the page looks the way you meant.
What happened at FF. The FF Work board is FF's internal dashboard of who needs to do what. On the morning of 2026-11-06 Phoenix described it as looking like "an AI-generated internal compliance report" and asked for something other than "a prettier version of this same layout".
It got two redesign passes from detailed written briefs. The first moved the next action to the centre and quieted the styling.
The second chose better what to show and put evidence one step away. Both were independently reviewed and the full suite passed (1,278 tests after the second).
Phoenix compared the screenshots and said the interface "looks almost identical". The agent's acceptance checks had measured only that nothing was lost: the same anchors, links and counts.
Its own words afterwards: "I never put the screenshots next to your references. So I changed what each section showed, but kept the old layout, styling, spacing and type."
There is a sharper detail. Phoenix had sent five AI-generated reference images an hour before that verdict, with the second brief.
The second pass was built with them in the agent's context. The agent even made before-and-after screenshots for Phoenix to judge, but no reference was ever in the frame, and a context compaction after the pass dropped the images from its working memory.
A picture in the chat is not a target in the work. It only becomes one when it is saved beside the work and every screenshot is compared against it.
What you do. Look at the last screen you asked an AI to improve. Count the rounds of written feedback about its look. If there were two or more and the owner still is not happy, stop writing and move to Section 2.
Practice (unscored). Take one screen you or a teammate has asked an AI to "make cleaner". List every piece of visual feedback it got, word for word.
Next to each, write what a picture would have settled that the words did not. Done when each item names something concrete a picture would fix (where the list sits, what is biggest, how many rows show).
Section 2. Generate the target, choose it, reconcile it
The idea. Steps 1 to 5 of the protocol happen before anyone writes visual code.
- Understand the function. List what the screen must show, which processes must keep working and which actions belong in another system.
- Generate the look. Ask an image model for three or four whole-page directions with the same content. Whole pages, not buttons: the agent needs the layout.
- Lock one direction. Choose it, write down its palette, type, spacing and density, and stop changing it every round.
- Make page references. Generate each important page and state in that style: selected item, expanded detail, empty, warning, phone. Save each one as a file beside the work, with a fixed name, so it outlasts a long session and every later prompt can point at it.
- Reconcile. A generated image is a visual target, not a specification. Image models invent buttons, counts, statuses and pages. Go through each image, element by element, and adopt, adapt or reject each one, with a reason about the product.
What happened at FF. Phoenix's account: he generated broad design concepts with GPT image generation, chose one direction, then generated a reference for each page. Five images reached the agent: the full dashboard, Operate, a request's evidence, Projects and Audit.
They showed what no brief had: side navigation, a title per page, count tiles, compact request rows beside a key-value detail pane, project rows with progress bars. Phoenix sent them with a warning that, being AI-generated, they might invent functionality, statuses and numbers, and a rule: "If an attractive mockup conflicts with an important operational requirement, the operational requirement wins."
So the images were reconciled. They had "Approve" buttons, but approval at FF is a GitHub review, so the board links to GitHub instead.
They had search, an About page and a "Live" badge that the board doesn't have, detail tabs and an event timeline the records don't contain, a flat project table where FF needs both pockets and projects, and an audit event table with no data behind it. One even carried the test count from that morning's report, a number that belongs to the records, not to a design.
Each of those was named and left out. Red was reserved for genuine blockers and critical failures.
What you do. Before the next visual change, run steps 1 to 5 with the toolkit prompts and fill in the reconciliation table.
Practice (unscored). For one real or sandbox screen, produce the functional inventory, four whole-page concepts, a locked direction note and a reconciliation table with at least three rejections. Done when every rejection gives a product reason ("approval happens in GitHub"), not a taste reason ("I don't like it").
Section 3. Build simply, compare screenshots, accept twice
The idea. Steps 6 to 10 turn the target into a screen without breaking anything.
- Build simply. Use the existing stack: plain HTML, CSS and the components already there. Add no framework or dependency just to imitate a picture.
- Render and compare. Screenshot the real page at fixed viewports with fixed data, and put each screenshot beside its reference. Compare composition, hierarchy, density, spacing, type, colour, navigation and states.
- Close the gaps in bounded rounds. Fix the few gaps that matter most, re-render, compare again, and stop at a set number of rounds.
- Accept twice. Functional tests say whether it works. The owner's verdict on the screenshots says whether it looks right. Record both, separately. Passing tests are never the visual verdict.
- Keep the lesson. Write down what worked, what failed and what added complexity for nothing.
Skip steps 2 to 4 when a working design system or a precise visual specification already exists. Then that system is the target. Everything else still applies.
What happened at FF. The agent recovered the five images, saved them as files and compared against them directly. Thirty-eight minutes later, the next pass had changed the board's composition, not just its styling, using the same HTML and CSS and one line of script.
Five tests had pinned "Your move" closed. They were changed, and the change was explained: they encoded the old presentation, not an operational rule.
Nothing operational was lost: on the same records snapshot, every anchor, link, unit and fold stayed identical, and the full suite passed (1,288 tests after the review follow-ups). The before and after screenshots were laid out beside the references at 1440×900, 1280×800 and 390×844, in light and dark.
Phoenix's verdict: "a meaningful improvement". It was still not identical to the pictures, and it was not meant to be: the closest practical look, with no regression in what the board must do.
What you do. For your next visual change, keep two results apart: the functional one (tests and same-data parity) and the visual one (screenshots beside the target, judged by the owner).
Practice (unscored). Do the practical exercise: redesign a fictional job board from an agreed target, keep its seven contract tests green without editing them, and record both acceptances. Done when the commit history shows the target before the code, and the visual verdict is about the screenshots, not the test results.
The FF layer
- Overview Loom slot. [LOOM SLOT: Phoenix, three minutes. The FF Work board on the morning of 2026-11-06: the two written passes, "it looks almost the same", the five images, and the pass that finally moved.] Filled during the rebuild.
- FF's own approach. For anything people look at, the target is a picture agreed before code, reconciled against what the product does. GitHub stays the place where approval happens. Pocket and project levels stay. Red means a genuine blocker or a critical failure. Build in the existing stack, and accept function and look as two separate results.
- Public training. None yet. This lesson is FF's own experience.
Where this lesson connects
- Lesson 11, Don't re-prove what the tests proved: a test proves behaviour, and how a page looks is one of the things only a person can accept. This lesson gives that person a picture to judge against.
- Lesson 12, Check the system shows it: write the acceptance check first. For a look, the acceptance check is the agreed image.
- Lesson 3, Transcription quality: a weak input gets filled with AI defaults. A prose description of a look is a weak input.
- C8, Capstone: if your capstone has a screen, run this method on it.
Before you move on
You can say why careful written briefs and passing tests did not change how the FF board looked, and you can run the ten steps on a screen of your own: inventory, concepts, a locked direction, page references, a reconciliation table, a simple build, screenshots beside the target, bounded rounds and two separate acceptances. This is FF's preferred approach for visually important screens, shown on one project.
It is not proof that one workflow is best for every frontend, and where a working design system or a precise visual specification exists, that is your target. From here, when the look matters, show the AI a picture before it writes code.