What does an AI agent actually do with your design system docs?

Luke Murphy
Written by Luke Murphy
Oct 19, 2026

At zeroheight, we spend a lot of time telling folks that their design system should be the context coding agents work from. However, the obvious follow-up from anyone who hears that is a question we didn't have a good answer to: how would I know if my docs are good enough for that?

Most documentation was written for people. People skim, infer, ask whoever sits next to them, and fill the gaps with whatever they remember from the last project. An agent does almost none of that (it does the inferring bit, which is part of the problem). It reads what's on the page and works from there, a bit like a very literal new starter on their first day who has never met anyone on the team.

So we built a tool that lets you watch that new starter try. It's called DS ARC, the Design System Agent Readiness Checker, and it's free at zeroheight.com/arc. This post covers why we built it, what it does, and the slightly ridiculous amount of testing it took to make it something you could trust.

Why did we build it?

The honest answer is that we had a problem of our own. It's hard for a team to see the value of an MCP server when their docs aren't in good shape, and getting docs into good shape takes real effort. If you can't see how far off you are and you can't picture what good looks like, that effort looks enormous and never makes it onto a roadmap.

The obvious fix was a framework, a document that sets out what agent-ready docs look like (there was even talk of one internally). I think a framework like that would be perfectly fine, and almost nobody would read it. DS ARC is something that happens to your docs, with transcripts you can forward to whoever controls the purse strings, and that's a much harder thing to ignore.

What does DS ARC actually do?

You point it at your docs and press Run. A few minutes later (most of that is the agent doing its thing) you get a report. In between, four things happen...

  1. It reads up to 40 pages. We choose them rather than crawling in order: index pages, tokens and foundations first, then a couple of components from each of seven families (actions, selection, text input, overlays, feedback, navigation and data). For each component it picks, it also reads up to three sub-pages, because a lot of systems keep the real detail on a Code or Usage tab. Pages are fetched the way an agent fetches them, with plain HTTP and no browser, so a page that only renders with JavaScript comes back empty. That's annoying, but it's also what an agent would see.
  2. It scores those pages against 12 machine-readability guidelines drawn from the Design System Documentation Spec. Whether a component's API and your token values exist as data rather than as pictures carries the most weight. Others look at things like whether rules say how strong they are and whether invalid combinations are written down. There's no AI model in this part, so the same pages always get the same score.
  3. It writes eight questions tailored to your system, emulating the kind of thing a developer or designer would ask an agent. Which component fits this need? When should I use this one instead of that one? What's the exact token for error text? What props does this take, with types and defaults? What keyboard interactions does it support? One of them is a trap. It asks about a non-existent component, and we want it to say that the component doesn't exist.
  4. It hands those questions to a real agent (Claude Sonnet 4.5) with two tools, search the docs and read a page, and no web access. It gets eight tool calls per job, then it has to answer with a link to where it found the answer or say it isn't documented. Anything with a single right answer gets asked up to five times, because a different answer each time is a problem in its own right.

When a job goes wrong, it lands in one of three buckets: a gap (the answer isn't there), ambiguity (the same question gets different answers), or hallucination risk (the agent answers but can't point to a page that exists). None of those need us to know the 'right' answer for your system, which is what makes it possible to run this against any docs at all.

The report leads with three numbers: how many pages we read, your machine-readability score, and how many of the eight jobs passed. Below is every job and what we asked, plus your single worst failure in full, with a transcript included. Behind an email gate, you get the rest of the failing transcripts, what each guideline was missing, and fixes you can make to your docs. The report link lasts 14 days, and if you fix things and come back, the report shows your score history.

The initial version of the tool, built to run agentically so it can audit itself over hundreds of runs.

How we built it

I started with the questions rather than the tool, because the question set (we call it the battery) is the bit that makes or breaks the whole thing. Generic questions produce generic results, and a weak battery makes a tool like this look like a gimmick.

Two rules went in on day one. First, there's no judge model. Every score is a check that code can do on its own: does the cited URL exist, did five runs give the same answer, did the agent refuse the trap. If something needs an opinion about 'quality', it doesn't get scored. Second, the agent runs at default temperature. It would be easy to pin it down so the results look stable, but nobody's agent runs that way in real life, and variance is something you'd want to know about.

Training the battery

To be clear, we didn't train or fine-tune a model. What we trained was the test.

In early September I set up an unattended loop against four public design systems: Salesforce Lightning, Uber Base, Shopify Polaris and eBay Playbook. Each cycle, a model tailored the eight questions to each system, the agent ran them, and code assessed the results. When something failed, the loop pinged me and kicked off an agent with the findings so it could fix the battery, then went round again, up to ten times or until every system passed.

Every fix was logged in a decision log in the repo, with the reason for it. The rule for the log is to read it before changing the battery, and any change that contradicts an entry must explicitly supersede it rather than override it. That mattered more than I expected, because without it the fixes started undoing each other within a day. By launch, the log had 165 entries, and the battery was on version 112, which gets stamped on every report alongside the model and the spec version.

We left this running for just shy of 1000 runs. A few things came out of it that I didn't expect:

  • Short-answer jobs are effectively deterministic. Asked for a component name, a token name, or about a component that doesn't exist, the agent gave identical answers across every system and every cycle.
  • Prose answers vary in what they say, not just how they say it, with 28 to 61% word overlap between runs of the same question.
  • Three of the four systems couldn't answer a props question at all, each for a different structural reason.
  • All four refused invented components, 20 runs out of 20.
  • On one occasion, an identical prompt against identical docs returned a full answer and then, on the next run, 'not documented', even though the agent had read the page holding the answer.

The most useful lesson was about the model writing the questions. Every time we added a guardrail, it found the next hole along. Stop it making the props question a trap, and it would ask about the props of an invented 'Kanban board' component instead. Require keyboard evidence to name a key, and it quoted a list of icon names, because 'arrow-up' contains a key. Close that, and it discovered that 'enter' is both a verb and a key. The conclusion I came to is that model-written prompts need a closed set of legal shapes that fails closed. A list of banned shapes just keeps growing.

Turning a test harness into a tool

The loop was a scrappy local app. Then it was time to turn it into a full-blown public app.

There are five ways in, and they all turn into the same bundle of pages, so the battery only ever sees one thing and adding a source is just adding an adapter. The two that touch private docs got the most care. Signing in with zeroheight uses read-only scopes, and the token is held for the length of one crawl and then cleared, whether the crawl worked or not. For private GitHub repos we built a GitHub App rather than a classic OAuth app, because classic OAuth can't do 'read-only' for private repos. The only scope that reads them can also write to every one of them, and a promise that we'd only ever read was really important in building this.

The big thing we wanted to do was bring down the cost of each individual run, as we're covering that burden. From testing to production, we managed to cut the cost by 400%. There are limits so it can't run away with us (three checks a day per person, eight a day per docs site, and a daily ceiling across everything), the email gate is enforced on the server so locked content never reaches your browser, and crawled docs and transcripts are deleted after 14 days.

We kept a log of every decision that the agent or we made on the battery, so it can have a running log to sense check against to make sure we're never contradicting ourselves

What happens when the tool grades itself?

The part of the build I'm proudest of is also the most uncomfortable one. More than once, a metric turned out to be measuring our harness rather than the docs in front of it.

The biggest was a guideline about whether content could be read by a machine at all. It looked fair until we checked where the pages had come from. Every Base and Lightning page had arrived through zeroheight's documentation API as clean, structured text, and every eBay and Polaris page had come from scraped HTML. So the guideline was comparing our own API's output with other folks' raw markup, and it rewarded the two systems hosted on zeroheight. A benchmark published by zeroheight can't ship with that in it, so it came out. How we reached your content is now reported as context (which route we used, and what we couldn't test, like an MCP server) and never scored. Taking it out flipped the bottom two systems in our test set, which tells you how much it had been skewing things.

A few others:

  • Early reports cited spec clauses like 'component.api' that don't exist. They'd been written from a memory of the spec's shape rather than the spec itself. We pulled every citation, rebuilt the audit against the real schema (v0.20.0), and later turned it into the 12 guidelines, because the spec is an authoring format that not many people have authored their docs in yet.
  • The root URL you paste turned out to matter more than your docs. Submitting Polaris's components page discovered two pages, which would have graded a very large design system on two pages. So there's now a free pre-check that shows what would be read before anything is spent, and refuses a source that's too thin to test.
  • A bit of regex was treating a bolded link (trailing asterisks and all) as a made-up URL. Fixing it moved one test report from a 60% grade to an 80% grade, with the underlying findings byte-for-byte identical, which is a good reminder that a grade can be wrong for very boring reasons.

Every one of these turned up from opening a real report and reading the transcripts behind it. If you're building anything that grades other people's work with an LLM somewhere in the loop, that's something to keep in mind.

Testing it with real teams

Before launch, we put a test build in front of practitioners from a bunch of big and small companies with mature design systems. Between them, they covered every way in: public URLs, Markdown uploads, GitHub, Storybook and the zeroheight connection.

We asked each of them to do one thing before they started: write down a guess. A number out of ten, or a one-line gut feeling about how agent-ready they thought their docs were. It only works if it's written down before you see a score, and it meant we could ask the question we cared about afterward: did the result match your gut, and which one do you trust more?

Real docs broke things our four test systems never had. Just Eat's first runs failed on both the public site and GitHub. Because every run is logged, I could see exactly why and fix it while the test was still going, and it's also why we now review failed runs every day rather than waiting for people to report them (most folks will just leave). A good chunk of the decision log from late September came from real systems like this:

  • Some systems keep a component's substance on Web, Code or Usage sub-pages behind a thin overview, so the sampler now follows those sub-pages instead of reading a pile of landing pages.
  • Sites built with web components ship their content inside declarative shadow DOM, which the parser now unwraps.
  • A Storybook your docs link to is now read for the sampled components, and the report says which facts came from it, because an agent connected to your docs can't follow that link.
  • A system whose components were called Navigation and Popover (rather than Menu or Dialog) used to fail the keyboard question outright. It now falls back properly and reports the actual finding: the docs said 'keyboard accessible' everywhere and never once specified which key does what.
  • If one or two questions can't be written for your docs, we now skip them and say so, instead of stopping the whole run.

The other big change came with the grade we initially gave everyone. We started with an F to A grading, but borderline systems could flip between a B and a C on a rerun purely from agent variance, and a letter is exactly the kind of thing people screenshot. So the letter moved off the top of the report, and the three numbers replaced it. The report also moved to plain language, with the technical detail tucked behind a 'see more', and it says up front that small movements between runs are noise.

The final tool, which you can find at zeroheight.com/arc

What it can't tell you

I'd rather you hear the limits from us than find them in someone's screenshot.

  • It reads a sample of up to 40 pages, not your whole system. Which components get sampled changes the answers, so treat a job result as being about that component rather than about everything.
  • Scores wobble a bit between runs, because the questions are rewritten each time and the agent isn't pinned down. A few points of movement is noise. A change in the number of jobs passed is worth paying attention to.
  • If your site only renders with JavaScript, we see an empty shell (so does any agent crawling it). We try an crawl it the best we can, but it doesn't always work. Point us at your Storybook, your repo, or an upload instead.
  • We can't see your MCP server, llms.txt, or internal API unless it's the route you gave us, so the report tells you what we couldn't test rather than marking you down for it.
  • Hidden text in a set of docs could, in theory, steer the agent and flatter a score. It can't reach anything outside the pages we read, but it's a limit we've accepted and written down.

It's also worth noting that a good result doesn't mean your docs are good for people. DS ARC records what happened when an agent tried to use them, and that's all it claims to do. In saying that, the whole ethos of the design system documentation spec, which we based it all on, is that machine-readable and human-readable docs should be the same thing. So it should still be good docs for everyone.

Try it, but write your guess down first

DS ARC is free at zeroheight.com/arc. It takes about five minutes, and you'll only need a work email if you want the full set of transcripts and fixes.

If you do run it, do what we asked our testers to do and write down your guess before you press Run. Then tell me which one you ended up trusting more, the score or your gut. Get in touch with us on Bluesky or tag us on LinkedIn to let us know!

Luke Murphy
Luke Murphy
Luke (they/them) is Lead Design Advocate @ zeroheight. When they’re not enthusing about DesignOps, they are playing in bands, drawing silly things or writing academic articles about Josie and the Pussycats.
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post