All writing

Design systems

Making your AI agent a user of your design system

When you ask your coding agent to build a screen for you, it's supposed to read your components and your docs to decide how and what to build. That makes it a user of your design system, just like the developers on your team. The difference is that it never asks a colleague, never gets a feel for the codebase over time, and it'll happily write a new component if it can't find the right one.

Written by
Gideon Awolesi
Published
Reading time
6 min read

What your agent needs to find

A developer who joins your team learns the system by asking questions and reading other people's code. An agent learns it from whatever's in the repository when you give it the task. So everything it needs has to be written down and easy to find: the components, what each one is for, the tokens, and the rules about when to use what.

Write docs the agent can actually use

Documentation that lives on a separate website, or in screenshots and videos, doesn't help an agent much. Put a short text file next to each component that says what it's for, when not to use it, and shows an example. Those same files help the people on your team too.

Give it instructions

Coding agents read an instruction file in the repository before they start, like CLAUDE.md or AGENTS.md. Use it to tell the agent where the components and tokens are, and what to do when nothing fits. "Stop and ask" is the most important line, because without it, the agent fills the gap itself.

Connect the design to the code

If your agent reads designs from Figma, Code Connect is what tells it which code component each Figma component maps to. At Syndigo, I wrote the Code Connect and component files for all 200 components, so a design and the code that ships it point at each other.

Test it like you'd test any user

Ask the agent to build three real screens from your product, and then review what it wrote. Count the components it reused, the ones it wrote from scratch, and the values it hard-coded. Every new component and every hard-coded value points to a gap in what the agent could find. Fix the gap, and run the test again.

AI-Ready Design System Audit

Want a second pair of eyes on your product?

My AI-Ready Design System Audit includes a three-screen AI readiness test of your system, with a ranked plan to close the gaps, in three weeks from €4,500. If you'd rather start small, send me one AI flow for a free review.