How to Give Coding Agents a Design System

Build a design system coding agents can follow with one guidance file, constrained styles, fixed evals, and a human review loop.

Thursday, September 3, 2026Omid Saffari
Tools
How to Give Coding Agents a Design System

A coding agent can follow your design system when you stop asking it to "make this on-brand" and give it three things instead: one readable file for design judgment, a constrained set of components or styles for repeatable mechanics, and fixed evaluations that expose whether the rules work.

That changes the budget line. The goal is not cheaper code generation. It is fewer hours spent correcting the same typography, hierarchy, spacing, and copy decisions after every first draft. Vercel's public design.md workflow is the clearest working pattern so far, and its own results also show why a human review loop still belongs in the system.

The system is one file, one constraint layer, and one proof loop

The useful idea in Vercel's design.md workflow is not the filename. It is the separation of responsibilities.

  1. Guidance carries judgment. One public file tells an agent who the page is for, what the reader needs to decide, how evidence should be structured, how the brand writes, and which generated-design habits to avoid.
  2. Primitives carry mechanics. A published stylesheet gives the agent a bounded vocabulary of headers, tables, stat strips, chart styles, classes, and tokens. The model names an approved primitive instead of inventing a fresh spacing or typography system.
  3. Evaluations carry proof. Fixed scenarios, deterministic checks, and human review reveal whether a change improved first attempts or merely moved the problem elsewhere.

Think of it like a restaurant. The guidance file is the chef's judgment about the meal. Components and styles are the stocked station and measured tools. Evals are the tasting pass. A detailed recipe without a stocked station still produces wildly different plates.

Architectural infographic showing guidance, constrained primitives, and an evaluation loop
The three layers solve different problems: judgment, repeatable mechanics, and proof.

Vercel arrived at this split after a plain prompt failed. Its first public version described the visual language, but models interpreted subjective phrases differently because they did not have the components and shipped examples available inside Vercel's repositories. The team then rewrote the file against fixed outputs instead of treating prose as finished when it sounded convincing.

That distinction matters. A design system for people can rely on shared taste, institutional memory, and a designer noticing a near miss. An agent-ready system has to make the decision retrievable, the allowed implementation obvious, and the failure observable.

What belongs in your guidance file

Your first file should be shorter than the design system it represents. It is a decision map, not a museum of every component.

Give it six sections:

  • Scope: which surfaces should load the file, and which work should ignore it.
  • Reader and job: who opens each artifact, what they need to understand or decide, and what evidence earns that decision.
  • Observable decisions: rules such as "evidence tables may use the full content width," not adjectives such as "clean" or "premium."
  • Available primitives: the exact component, class, or token names the agent may choose, plus when each one fits.
  • Named failure patterns: recurring bad outputs with memorable names, a concrete symptom, and the preferred correction.
  • Boundaries: facts the agent must preserve, states it must cover, unsupported claims it must omit, and decisions that still require a person.

The file should explain why a choice exists when context matters. It should point to code when code already owns the answer. Copying every CSS rule into the model's context wastes attention and creates two sources of truth. Vercel's public stylesheet loads in the browser while design.md documents the names an agent should use, so the stylesheet code itself does not consume model context.

There is also a retrieval problem. In separate Next.js evaluations, Vercel found that agents failed to invoke an available skill in 56% of cases. Put the trigger in persistent repository instructions, make the scope explicit, ask the agent to report which guidance it loaded, and test loading separately from rule-following. A perfect file that stays unopened is just documentation.

If you are choosing the agent or interface around this system, the practical differences in Claude Design versus v0 for UI generation matter less than whether both receive the same constraints and evaluation.

Route each correction to the narrowest owner

The strongest operating rule is simple: do not solve every design failure with more prose.

Correction typePut it hereExample
Requires context or tasteGuidance fileLead a renewal proposal with the recommendation and commercial evidence
Repeats predictablyComponent, token, or stylesheetUse the approved table width, type scale, spacing, and chart treatment
Can be detected reliablyLinter or deterministic testFlag a table that ignores available width or an unlabelled control
Creates policy or a new standardHuman decisionDecide whether a new interaction pattern becomes approved
Appears in one model onceEvidence backlogWait for repetition before changing a universal rule
Architectural routing infographic sorting corrections into guidance, styles, checks, and human decisions
Every correction should land in the narrowest layer that can enforce it consistently.

This is where many teams make the file too large. They keep adding sentences such as "use the right spacing" when a constrained spacing token would settle the decision every time. Or they turn a product-policy choice into a linter, even though code cannot judge its exceptions. More instructions are not the same as more control.

Run matched evaluations before rollout

An evaluation is useful only when the comparison is fair. Pick one recurring artifact with a real reader, real inputs, and a short rubric. Generate a baseline, then run the same prompt, data, model, and viewport with your guidance loaded. Keep first attempts. Shuffle the outputs before review so the reviewer does not know which version used the new rules.

Vercel built seven scenarios from recurring work, including a renewal proposal, benchmark report, planning page, security brief, and presentation deck. Full rounds ran all seven on Claude Opus 4.8 and Codex with GPT-5.5. Each stored run kept its prompt, inputs, model configuration, guidance version, screenshots, and reviewer feedback.

The result worth remembering is specific, not universal. Across three desktop scenarios and six first-attempt pages, Vercel counted 39 known failures with design.md and 91 without it, 57% fewer in that test. The test was small, the checks could see only failures already encoded, and every page still had at least one issue serious enough to block shipping. Do not paste 57% into a business forecast. Copy the method and measure your own review burden.

Architectural matched-evaluation loop comparing a baseline with the same input plus guidance
Hold the prompt, inputs, model, and viewport steady. Change the guidance, then review blind.

Start with this business math:

  • Count the minutes a designer or senior engineer spends correcting each first draft.
  • Multiply that by the number of repeated artifacts shipped each month.
  • Add the time spent explaining the same correction in chat, pull requests, and design review.
  • After introducing the system, run the same artifact set and measure the difference.

For example, four recurring pages that each need two hours of correction consume eight review hours. If the constrained system removes one hour of repeated fixes from each page, the gain is four hours. That is a measured saving. "The output feels more on-brand" is not.

The current market gives another useful anchor. AI website builders span roughly $0 to $160 per month in the live pricing results, while one 2026 custom-site guide puts custom builds at $1,500 to $5,000. A brand-control layer has to justify itself against both options. Its value is not another generation button. It is reducing revision, approval, and brand-risk costs across repeated work.

Seven use cases, ranked by who benefits most

1. Multi-brand agencies producing repeatable campaign sites

An agency with ten active clients can keep one guidance file and one constrained primitive set per client, then run the same launch-page evaluation whenever an agent, component library, or model changes. The payoff is fewer senior-design hours spent restoring typography and hierarchy after the page already works. This group benefits most because each accepted correction can improve every later artifact for that client.

2. Product teams letting several agents touch the same interface

A platform team can route all UI work through one repository instruction, load guidance only for user-facing changes, and enforce mechanical rules in linting. The exact agent may change, but the accepted decisions stay beside the code. The payoff is consistency across contributors without asking each model to infer intent from shipped components alone.

3. Revenue teams generating proposals, benchmarks, and reports

A sales operations team can freeze a renewal-proposal scenario with mock customer data, an executive-read rubric, and a detailed-audit rubric. Each new guidance version must keep the recommendation prominent, preserve supplied figures, and give evidence enough space. The payoff is faster first drafts without allowing a generic dashboard layout to bury the commercial decision.

4. Design-system teams preparing for agent adoption

A design-system team can document the exact tokens and components agents may use, name common failure patterns, and add deterministic checks where the rule is mechanical. The payoff is turning a component library into an operating system for decisions, not just a catalog agents imitate inconsistently.

5. Startups without a full-time design-review queue

A small team can begin with one artifact, such as its weekly metrics page, and its last ten recurring corrections. It does not need Vercel's full evaluation app. One baseline, one matched run, and one human scorecard are enough to expose the biggest misses. The payoff is concentrating scarce design judgment in a reusable place while keeping final approval with a founder or designer.

6. Internal-tools teams serving different departments

An internal platform team can share approved accessibility, state, and layout mechanics while keeping a small guidance layer for each job, such as finance reconciliation or support operations. The payoff is common implementation quality without forcing materially different workflows into one visual template.

7. Regulated teams that need an audit trail

A healthcare, finance, or security team could store the prompt, inputs, model version, guidance version, render, checks, and reviewer decision for each run. The payoff is traceability: a reviewer can see which rule shaped an output and which person approved the exception. This pattern does not make the output compliant by itself, but it makes the review evidence easier to reconstruct.

If your organization is still deciding whether the agent workflow itself should be a product or an internal capability, this build-versus-buy framework for coding agents is the next useful decision.

Three products worth building

1. Agent-ready design-system compiler, the strongest opportunity

Build a workspace that turns a company's existing tokens, component documentation, and repeated review corrections into a versioned guidance file, a constrained implementation map, and a starter evaluation pack. Design-operations and platform teams would pay because the product sits directly between their existing system and every coding agent they adopt.

The demand is narrower than generic website generation but much closer to the buyer. About 260 US searches a month target design system software, with commercial intent, keyword difficulty 14, and a $12.33 CPC. That CPC matters because it signals that vendors already value the attention even though the query volume is modest.

The smallest sellable version needs one input path, such as a repository plus a structured review-correction form, and one output path: design.md, an approved primitive map, three fixed scenarios, and a report showing which rules each run passed. Start with one framework and one artifact class.

The catch is onboarding. A company's most valuable design judgment is rarely clean enough to import automatically. The early product will behave partly like software and partly like a service, and its moat will come from turning messy review history into reliable, testable decisions.

2. Brand-bound microsite factory

Build a generator for agencies and revenue teams that creates one narrow class of on-brand page, such as proposals or campaign microsites, from approved data and a client-specific constraint pack. The buyer pays for controlled iteration and approval evidence, not for raw page generation.

The broad demand is large: ai website builder gets about 40,500 US searches a month, up 49% in the yearly trend, with commercial intent and a $31.41 CPC. Existing offers span free plans through roughly $160 per month, so a new entrant cannot win with "type a prompt, get a site." It needs a sharper promise: the same brand rules, the same approved primitives, and the same review evidence on every run.

The MVP should support one page type, one import format, a fixed component set, three evaluation scenarios, and a side-by-side approval screen. The catch is a crowded category with strong incumbents. Governance and repeatability have to be the product, or this becomes another thin interface around a model.

3. Agent design QA service

Build a pull-request service that renders agent-made pages at fixed viewports, runs mechanical design checks, stores the model and guidance versions, and sends subjective differences to a blind human review queue. Teams already using coding agents would pay to catch repeat failures before they reach a senior reviewer.

About 320 US searches a month target visual regression testing, with keyword difficulty 8 and a $20.56 CPC. That is not mass-market volume, but it is direct evidence of teams looking for automated visual verification. The low difficulty leaves room for an agent-specific angle built around rule adherence rather than pixel difference alone.

The MVP can start with a GitHub check, two viewports, a dozen deterministic rules, screenshot storage, and a reviewer verdict. The catch is that visual difference is not design quality. A pixel diff can catch drift, and a model judge can draft a critique, but hierarchy, product meaning, and new policy still need people.

What this pattern does not solve

One file will not turn a weak design system into a strong one. It cannot supply decisions your team has never made, repair inaccessible components, prove factual accuracy, or decide a new product policy. It also will not make every model behave the same way.

Constraints can suppress repeatable variation, but they can also freeze a bad primitive. Evals can prevent known failures, but they can reward a narrow rubric and miss a new problem. Human review can catch judgment errors, but only if reviewers record corrections in a form the system can reuse.

The Vercel result is a useful signal precisely because Vercel states its limits. Six pages are not a reliability study. Known-failure checks are not a measure of overall design quality. Every tested page still had a shipping blocker. The honest target for your first rollout is fewer repeated corrections, not autonomous design approval.

The Monday move is concrete: choose one recurring page, save the unassisted first draft, collect the last ten corrections your team made to that kind of page, route each correction to guidance, primitives, code, or a human decision, then run one blind matched comparison. Expand only after that loop reduces measured review time.

Can AI really build me a website?

Yes. Coding agents and AI website builders can produce working pages from a prompt. The harder question is whether the first draft follows your brand, preserves the supplied facts, covers the right states, and survives review. Guidance, constrained primitives, and matched evaluations address those gaps.

Are AI website builders any good?

They are useful for speed, especially when the job is narrow and the implementation choices are constrained. They are less reliable when "good" depends on unstated product judgment, a proprietary design language, or new policy decisions. Judge them on first-attempt correction time, not on the prettiest rerolled demo.

How much do AI website builders cost?

The live pricing results span about $0 to $160 per month for AI website builders. That price does not include your team's review, correction, approval, and brand-risk costs. Measure those hours separately before deciding whether a more controlled internal system pays back.

Is it better to build your own website or use a website builder?

Use a builder when the page is standard, the stakes are low, and its constraints fit your brand. Build a controlled agent workflow when you repeat the same artifact, need approved components and evidence, or spend meaningful senior time correcting outputs. The deciding number is recurring review cost.

If you want this kind of design-aware coding-agent workflow built for your business, see AI agent development.

Last Updated

Sep 3, 2026

CategoryBuild

Prefer this site in Google

Add omidsaffari.com as a preferred source in Google Search

Mark omidsaffari.com as preferred and Google lifts it in Top Stories, AI Overviews and AI Mode for you.

Newsletter

One letter, every Sunday. Working systems, not hot takes.

Build logs, working systems, and field notes from running a portfolio of AI ventures.

Weekly. No spam. Unsubscribe anytime.