All articles

7 Things to Do to Make Your Design System AI-Ready

Do this before AI agents build with your design system: the component list, where it lives, tokens, taste, retired names, one name in design and code, and a check.

Eight design system components as tiles. Button, Input, Switch, Checkbox, Tabs and Avatar are white tiles with their names. Two more are empty dashed outlines marked No name. A cursor tagged Agent has picked Switch.

This week I asked Claude, the AI I build TimiTomi with, a blunt question: is our design system ready for agents, or are you still hallucinating?

It checked before it answered. The components were fine: all 77 are released and the type check passes. Then it read the guide, the instruction file an agent reads before it builds a screen (AGENTS.md, CLAUDE.md or Cursor rules, depending on the tool). The guide named 44.

I was confused. The components are ready in the library, so what are they missing? Nothing. The gap was in the guide. An agent that reads it knows 44 components, and for the other 33 it builds its own copy or guesses the options.

Many teams are in the same place. zeroheight’s State of AI in Design Systems 2026 surveyed 123 design system practitioners: 82% of their teams use AI in some form, 17% rate their documentation as “very AI-ready”, and 59% report UI that bypasses the design system.

So here are seven things I would have ready before agents build with a design system. Six come from my own library this week. Each has a picture of what it looks like.

1. Name every component

A picture headed Component guide, 44 of 77 named. A grid of 77 squares: four rows are lit, three rows are empty dashed outlines.
Four rows of components are in the guide. Three rows are not.

My guide named 44 of 77 components. The fix was 28 lines: 21 short entries that cover the 33 missing ones. An entry is the name, what the component is for and its main options. The one for Alert says it is an inline message block with five variants, a title, optional actions and a way to dismiss it. One more line tells agents to check the list before building something new, and says every new component gets an entry.

A rule that says “use the design system” is not enough. James Coombs, a design engineer, tested this on his own 60-component system, in a small test. With an instruction file that said “always use the design system”, the output scored 16.4 out of 30 for following the system, the same as with no guidance. When the agent could look up the real components, it scored 26.7.

2. Put the list where agents work

A picture headed Components the AI can see, 1 of 3 is full. Three bars: in the design system 77, in the dashboard app 24, in the website 6.
The design system has all 77. In the two apps the AI sees 24 and 6.

The guide I fixed sits inside the library, and only an agent working on the library reads it. Screens get built in the apps, and each app has its own instruction file for the AI. The one in our dashboard app names 24 components as “the staples”. The one in our website names six and ends with “etc.” Neither said where the full list is.

What does travel into every app is the readme inside the library package. It listed 37 names. Now it lists all 83, parts and helpers included. This also solves versions: my three apps were on 0.44.1, 0.43.5 and 0.28.0 of the library, and a list that ships inside the package matches the version that app has installed.

Vercel measured where documentation should live for coding agents. Packaged as a skill, a bundle the agent has to choose to open, it changed nothing: the pass rate was 53% with the skill and 53% without it, and in 56% of the cases the agent never opened it. As an 8 KB index inside the instruction file the agent always reads, the pass rate was 100%.

Some teams go one step further and give agents a live connection to the component list, an MCP server. In the zeroheight survey 48% already run one.

3. Close the token set

A picture headed Warning banner, 4 of 4 from tokens. A yellow banner, then four rows: Background yellow-50, Border yellow-300, Icon yellow-600, Text gray-900.
A warning banner where every value is a token.

An agent with no list of colours and sizes makes them up. Hardik Pandya writes: “LLMs don’t look up your design system tokens.” His examples are card padding of 16px in one component and 12px in another, and a link colour that changes between the navigation and the content. In one project he found 418 raw values across 28 files and mapped them to more than 230 tokens.

My guide says to use existing tokens only, and it lists them: seven colour scales, four text sizes, thirteen shadows. That is a closed set. The agent picks from the list, and a value from outside it is a mistake someone can catch. Pandya catches it with a script that runs on every change and flags raw values, and the change can’t merge until there are none.

Tokens have a shared file format now too. The Design Tokens Community Group published the first stable version of its specification on 28 October 2025, and Figma, Sketch, Framer and Penpot are among the tools that support it or are adding it.

4. Write down your taste

A picture headed House rules, 3 of 3 applied. An Active badge beside Cancel and Save changes buttons, then three rules: sentence case, submit stays enabled, no dot in a badge.
Three of my rules, and a row that follows them.

Some rules no model can guess, because they are my taste. Button text is in sentence case: “Save changes”, not “Save Changes”. A submit button is never disabled. If a field is empty, the field shows the error and shakes. A status badge has no dot, because the colour and the word already say it. I despise the dot.

I told the AI the submit rule twice before I wrote it down. Pandya’s test for when to write a rule: “If a designer corrects the same thing in two PR reviews, it’s a pattern. Write it down.”

Keep this part short. Researchers at ETH Zurich and LogicStar tested coding agents with and without instruction files. The files did not generally raise the success rate, and they raised the cost by more than 20% on average. Their advice is to include only what the agent can’t find somewhere else, such as specific conventions. My three rules are in no readme and no code comment, so they qualify.

5. Mark what is retired

A picture headed Retired names, 3 marked. Calendar points to BookingCalendar, TipTapEditor points to RichTextEditor, and the blur option on BackdropBlur does nothing now.
Two old names and one dead option, each with what to use now.

A design system keeps old names alive so old screens don’t break. Mine has two. Calendar is now BookingCalendar, and TipTapEditor is now RichTextEditor. There is also an option called blur that still exists and does nothing.

The dashboard app still uses the old Calendar name, so an agent working there sees it in real code and has no reason to think it is retired. A model also remembers a library as it was when the model was trained. Vercel’s index has one instruction for this: “Prefer retrieval-led reasoning over pre-training-led reasoning”. In plain words: read the docs in front of you before you trust your memory.

The fix is one line in the readme that ships with the library: the old names, marked as not for new code, each with its replacement.

6. Use one name in design and code

A picture headed Design to code, 12 of 12 mapped. Four design names, Button, Text field, Table and Dialog, each tied to its code name: Button, Input, DataTable, Modal.
Four parts of a design, each tied to its component in code.

If the design says “Text field” and the code says Input, an agent has to guess they are the same thing. Figma’s Code Connect is a map from each design component to the real one in code.

Figma tested it on 27 design-to-code tasks across two design systems. With the map, the median task used 29.5% fewer tokens and finished 19.6% faster, and code quality went from 2 to 3 on a 4-point scale. The biggest factor in their numbers was how much of the system was mapped.

Coinbase’s design system team had not updated their map since before Figma’s MCP server came out. They used an agent to redo it: “In about four hours, we went from having a few of our components migrated to the newer Code Connect format to full coverage of our design system.” In their test, one design built three times, the job then cost 22.5% less.

I skipped this one. I ditched Figma and design in code now, so my system has one set of names.

7. Check the docs against the code

A picture headed Guide against the code, 3 of 3 passed. Three checks with their counts: File links 16, Names in the guide 87, Public components 77.
Three checks that passed: 16 links, 87 names, 77 components.

Before I changed anything, I had the AI test the guide against the real code: 16 file links, 87 component and helper names, every style class and animation it mentions. All of them exist. Everything in the guide was true. It only named too few.

After the fix I counted again: 77 of 77 components named, and every name and option in the new entries exists in the code.

This check still runs by hand, when I ask for it. My library has no tests, and the type check is its only automatic gate, so the list can fall behind again the first time someone adds a component and forgets the line. The next step is a script that compares the public components with the guide on every change and fails when one is missing. Headway’s Billy Sweetman calls this level “Validated”, the fourth of his five, and writes: “Getting from Structured to Validated is where most teams see the biggest return on the effort.”

The other way is to generate the list from the code, so it can’t fall behind. Storybook does this with its component manifest: it reads the stories and the prop types, and its MCP server hands the result to agents.

Try it on your own system

Ask your agent to list every component it can use, with one line on when to use each. Then count what the library really has. The difference is what the agent will rebuild by hand or guess at. In my library it was 33.

The seven things in one list, each with a short note: 44 of 77 named, 1 of 3 is full, 4 of 4 from tokens, 3 of 3 applied, 3 marked, 12 of 12 mapped, 3 of 3 passed.
All seven, each with the note from its picture.