{"slug": "how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship", "title": "How to Brief an AI Builder So a Design File Becomes Code You Can Actually Ship", "summary": "A developer at VibUI published a handoff method for turning design files into shippable code with AI builders, arguing that a screenshot alone produces lookalike layouts with invented copy, missing states and made-up spacing. The approach requires a written brief naming design tokens, component names and states, real URLs and forbidden inventions, followed by a review pass on both phone and keyboard. The author notes the method works across tools including v0, Lovable, Bolt, Cursor, Claude, ChatGPT, Gemini and GitHub Copilot, and that the catalogue is disclosed as a commercial product.", "body_md": "*Disclosure: I work at VibUI, which sells a prompt catalogue for websites. The catalogue appears once, in a later section. The handoff method below still works if you never open that site.*\n\n**Short answer:** a design file is not a prompt. If you paste a screenshot into an AI builder and write \"match this,\" you usually get a lookalike layout with invented copy, missing states, and spacing the model made up. A handoff that ships is a brief that names the tokens, the components, the states, the real URLs, and the things the model is forbidden to invent, then a review pass on a phone and a keyboard. This holds in v0, Lovable, Bolt, Cursor, Windsurf, Claude, ChatGPT, Gemini, Replit, GitHub Copilot, Framer AI, Google Stitch, Readdy, Aura.build and OpenAI Codex.\n\nThe personal gain is narrow: fewer rebuilds, fewer \"that's not what the file says\" rounds, and a first draft you can review instead of throw away. It is not a promise that the model will pixel-match the file, and it is not a reason to skip a design review.\n\nThe model can see a picture. It cannot see the decisions behind the picture unless you write them down.\n\nTypical failures, in the order I see them:\n\nA screenshot is useful as a reference. It is not a substitute for a brief.\n\nWrite a short document the builder can be pasted into, even if the design file is open in another window. Include:\n\n`tokens.css`. \"Make it clean and premium\" is not a token.` Button/Primary`, `Field/Text`, `Card/Product`), plus which states must exist.`[PLACEHOLDER]`. Forbid invented testimonials, logos, prices, metrics and names.\nIf a fact is not in the file and not in this brief, it should not appear in the draft.\n\nModels follow short, testable rules better than mood. Put the constraints in the same prompt as the section list, not in a follow-up after a bad first draft. A compact shape:\n\n```\nBuild the [PAGE NAME] page for [PRODUCT] from the brief below, not from guesswork.\nPrimary action: [LABEL] linking to [REAL URL].\nVisual system: use only these tokens. Do not introduce new colours, fonts or radii.\n  --bg: [ ]; --text: [ ]; --muted: [ ]; --border: [ ]; --accent: [ ];\n  Font: [family] for body, [family] for headings.\n  Type: [body size/line-height], [h1], [h2].\n  Space scale: [4/8/12/16/24/32/48]. Radius: [ ].\nComponents (use these names; do not invent variants):\n  Button/Primary, Button/Secondary — states: default, hover, focus-visible, disabled.\n  Field/Text — visible label, error text, autocomplete attributes where relevant.\n  Card/[Name] — [anatomy].\nSections in this order: [list].\nCopy: use only the text I paste. Mark anything missing as [PLACEHOLDER].\nDo not invent testimonials, customer logos, prices, usage metrics or awards.\nMatch the section structure of the attached screenshots, but prefer the tokens and component names above when the screenshot and the tokens disagree.\nAccessibility: one h1, logical heading order, 4.5:1 contrast for text, visible focus, labelled form controls, skip link to main.\nResponsive: [your breakpoint rules]. Do not hide essential copy on small screens.\nStack / repo constraints: [framework, existing CSS, packages you may and may not add].\n```\n\nAttach the screenshots *after* this text if the tool accepts images, so the written rules exist first. If you only have a screenshot and no tokens, extract the tokens before you prompt, even if you do it by hand for five colours and two fonts. That half hour is cheaper than restyling a finished draft.\n\nDo not review only at desktop, and do not review only by eye against the screenshot.\n\n| Check | What \"pass\" looks like | Typical miss | \n|---|---|---|\n| Tokens | Colours, type, radius and spacing come from the scale you named | A \"close\" accent, a default system font, inconsistent gaps | \n| Components | Buttons, fields and cards match the named variants and states | One-off styles, missing focus or disabled states | \n| Copy and facts | Every sentence is yours or marked `[PLACEHOLDER]` | Invented quotes, logos, prices or metrics | \n| States | Empty, error, loading and disabled are present if the file or brief asked for them | Happy path only | \n| Page job | The primary action is visible, and it goes to the real URL | A pretty hero with a `#` link or a second invented CTA | \n| Phone | Sections stack in the agreed order; forms and tables remain usable | Horizontal overflow, tiny tap targets, hidden legal text | \n| Keyboard | Tab order is sensible; focus is visible; the form can be completed without a mouse | `outline: none` with no replacement | \n| Contrast and headings | Text meets 4.5:1; one `h1` ; heading levels are not skipped | Pale muted text, a decorative `h1` , skipped levels | \n| Assets | Real files, real alt text | Stock substitution, empty alt on meaningful images | \n\nIf several rows fail, fix the brief and regenerate the section, rather than hand-patching every pixel. The point of the handoff is a brief you can run again when the design file updates.\n\nWrite the brief yourself when the page is a one-off, when your design system is strict, or when you already keep a working handoff template in the repo. The unique work is the tokens, the component names and the copy; a generic \"SaaS landing page\" prompt will fight that.\n\nA starting library earns time only when you repeat the *structure* of common sections (pricing comparison, FAQ, feature grid, a labelled form, footer legal) and you are tired of retyping the same accessibility and \"do not invent proof\" constraints. It cannot supply your tokens or your file. Treat a library entry as the skeleton for part of the brief, then replace the visual system and the facts.\n\nIf you do want a catalogue of those starting briefs, I work on [VibUI](https://vibui.dev): 2,852 website prompt templates, made up of 775 complete pages, 1,100 sections, 817 components and 160 animated backgrounds, with source code attached to roughly 1,000 entries. You buy access once; it does not bill again on its own. The public prices are $48 for a quarter, $99 for a year, and $179 for lifetime access, which the site shows as reduced from $384. You can inspect 60 samples at no cost, and a free account is allowed to copy 2 prompts, which is enough to test whether a section brief actually shortens a handoff you already do. If the samples do not save you setup time on a page you will really build, skip the purchase.\n\n**Can I just upload the Figma file and skip the written brief?**\n\nOnly if the tool genuinely reads your tokens, component names and copy from the file, and you have checked that it did. A flattened screenshot does not carry that data. When in doubt, write the tokens and the \"do not invent\" rules yourself.\n\n**What if the design file is messy or incomplete?**\n\nStop and name the gaps before you prompt. Missing error states, unspecified mobile behaviour, or lorem ipsum in the file will be invented or ignored. A short list of open questions for the designer is part of the handoff, not a delay.\n\n**Should the model match the screenshot exactly when it disagrees with the tokens?**\n\nPrefer the tokens and the component names. The screenshot is a reference for structure and hierarchy. Pixel-for-pixel matching is a later, often manual, pass — and sometimes the wrong goal if the file was never built to a systematic scale.\n\n**Does this replace a human design review?**\n\nNo. It produces a first draft that is closer to the system, so the review can talk about real decisions instead of missing buttons and invented quotes.\n\n**I already pay for Cursor, v0 or ChatGPT. Why would I look at a prompt library?**\n\nThose tools run the model. A library is only a set of starting briefs for repeated section types. You can do this entire handoff with a file you keep in the repo and never buy one.", "url": "https://wpnews.pro/news/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship", "canonical_source": "https://dev.to/riona_he_211b12cf8ae69e74/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship-4nco", "published_at": "2026-11-25 02:05:07+00:00", "updated_at": "2026-11-25 02:14:53.659017+00:00", "lang": "en", "topics": ["ai-tools", "generative-ai", "ai-products", "developer-tools"], "entities": ["VibUI", "v0", "Lovable", "Bolt", "Cursor", "Windsurf", "Claude", "GitHub Copilot"], "also_reported_by": [], "takeaway": "Paste a written brief naming tokens, component variants and states, real URLs and forbidden inventions before the screenshots, so the model follows testable rules instead of guessing from an image.", "recommendation": {"advice": "Put tokens, component names, states and no-invent rules in the same prompt as the section list, attach screenshots after the text, and review on phone and keyboard.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship", "markdown": "https://wpnews.pro/news/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship.md", "text": "https://wpnews.pro/news/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship.txt", "jsonld": "https://wpnews.pro/news/how-to-brief-an-ai-builder-so-a-design-file-becomes-code-you-can-actually-ship.jsonld"}}