Operationalizing a design system for humans and AI agents

Role
Design systems engineering, token architecture, AI tooling and governance
Date
2025 – ongoing
Client
Deloitte, restaurant and retail products
Design system in Figma
Grecia Gabriel and Rebecca Bradley

How do you make a design system that AI tools and agents actually use, instead of approximating it?

Challenge
We had a solid design system in Figma, but it was bypassed the moment PMs prototyped with AI tools: it lived where those tools couldn’t reach.
Contribution
React implementation of the library, token architecture, a published npm package, a component playground and the governance model for AI tooling.
Constraints
NDA-bound enterprise context; components must render safely anywhere; rules must be unambiguous enough for an agent to follow.
Outcome
A published npm package and Figma Make Kit in use on the pricing line, plus a portable Claude skill with a deterministic design linter. A pricing prototype rebuilt on the skill went from 1,723 lint errors to none.
The design system playground: the color foundations, with brand, neutral, text and selection tokens.

In numbers

2

AI entry points, one governance model

3

independent auditors on every component

2.37:1

the warning contrast we caught; WCAG asks for 4.5:1

The problem

The design team already had a mature system in Figma, built by Grecia Gabriel and Rebecca Bradley.

The problem appeared when product managers started using Claude Code and Figma Make to explore ideas with clients. The system dropped out of the conversation because it lived where those tools could not reach.

Exploration got much faster. Consistency dropped just as quickly. Demos no longer shared the system’s visual language, interaction patterns or UX principles. Each PM improvised their own interface, and the design system became a reference file AI never touched.

Why a strong system wasn’t enough

Figma Make can bring a real design system into AI-generated prototypes through Make Kits: a component package, the tokens and styles from a Figma library, and usage guidelines, so generated screens use the real system instead of an approximation.

The catch: a Make Kit can’t be built from a Figma file. It needs a published React package first. Only then can it become part of a Make Kit, and only then can guidelines be layered on top.

The system was strong in Figma, but nothing AI used could consume it. It needed to become code.

Button component in the playground: variants, sizes, icons, states and the bulk-action bar.

My contribution

I took the Figma system and translated it into a working code package so Make Kits and coding agents could use it directly. That covered the React component library, token architecture, an npm release, and a playground to validate each component before opening it to other teams.

Building the code was the vehicle. Governing it was the real challenge.

The decisions that hold it together

A package consumed by agents only works if its rules don’t depend on human judgment. A skilled designer can navigate ambiguity; an agent follows its rules literally and fills any gap with a guess. So the rules had to be right before they were exposed.

Brand color is scarce

The brand green is reserved for the single most important action and its focus rings; active and selected states use separate tokens. Encoding that in tokens lets an agent apply it without ambiguity.

Measured contrast

The warning color looked legible by eye, yet measured 2.37:1 against WCAG’s 4.5:1 threshold. Warning text now uses a darker token that passes, enforced by an automated review layer.

The system doesn’t touch what it doesn’t own

Components render in unfinished prototypes and legacy apps full of CSS, so the package never styles raw HTML globally. No bare h1, body or button selectors; each component ships its own scoped reset.

Tokens are contracts

Token names map directly to Figma, quirks included. The designer reading the library and the engineer or agent reading the code see the same concepts. Changing a token without agreement breaks something people already built on.

MetricCard and InformativeCard components with status badges.
Each status maps to a dedicated token, so an agent applies “On track” or “Watch” deterministically

Governing exploration

PMs needed to explore ideas with clients using AI without turning those explorations into inconsistent experiences that are hard to maintain.

We gave exploration structure: a controlled environment, real production components in a playground, clear principles, and a review cycle where explored concepts return to design before reaching production.

One system, two entry points

Figma Make

The Make Kit connects our published npm package, Figma tokens and usage rules directly inside Figma Make. PMs prototype with the same components engineers ship.

Claude Code

Through a CLAUDE.md with the architecture and hard rules, plus reusable skills for building, validating and documenting components. Three read-only auditors review every component in parallel: tokens, accessibility with measured contrast, and QA.

Generation is fast and confidently wrong. Discipline lives in a review layer with no incentive to approve its own work.

Sidebar component in light expanded and dark collapsed states.

Moving directly to Claude

Next, we are taking the governance out of Figma Make and bringing it directly into Claude. Instead of relying on a Make Kit bridge, teams load a portable prototyping skill that works across claude.ai React Artifacts, standalone HTML and Claude Design canvases.

The skill packages progressive references for tokens and components alongside visual and copy anti-slop guardrails: one primary green CTA per view, realistic domain data, no decorative emojis or unrequested KPI rows, and sentence-case microcopy that states each fact once. A zero-dependency Node linter (design-lint.js) checks every prototype against the base-4 spacing scale, the published palette, native select controls, off-brand fonts and placeholder copy.

Collaboration stays explicit. PMs and engineers explore behavior in their own copy; when someone insists on breaking a rule, Claude builds what they asked and marks the handoff with “Design review:” naming the rule, so design catches every exception before integrating work into the main prototype.

Inside the skill

The skill loads only the reference a task needs.

SKILL.md
The workflow (design read, build, self-critique) and the rules that are always on: one green primary action per view, base-4 spacing, Open Sans at 400 and 600, one control per intent.
references/foundations.md
Tokens for color, charts, type and spacing.
references/components.md
The component catalog, a control matrix and the WCAG 2.2 AA requirements.
references/anti-slop.md
Visual and copy guardrails, each with a bad and a good example.
references/claude-ai-formats.md
How to build for React Artifacts, standalone HTML and Claude canvases.
kit/
The system stylesheet and a starter screen for each format.
scripts/design-lint.js
The deterministic check. Errors for spacing off the scale, colors outside the palette, native selects, table headers off the system style and broken markup; warnings for emoji, buzzwords, fonts and gradients.

Result: one prototype, before and after

The prototype is a price optimization tool for a grocery retailer: teams build optimization scenarios, set the constraints prices must respect, run them and publish the result.

A PM built the first prototype without the skill, then rebuilt it with the skill. I polished that second version: I cut the copy and took it through stakeholder rounds with the client. The polished version is the one the Figma hand-off documents.

The linter found 1,281 colors outside the palette, 408 spacing values off the base-4 scale and 34 native selects in the first prototype; the rebuild passes with none. Both versions below render the same screen from the same preset, with mock data.

1,723 → 0

design-lint errors, first prototype vs. rebuild

59 → 137

screens and states covered, first prototype vs. rebuild

0

steps added or removed from the flow

Constraints and objectives

Eleven constraint tabs and an objectives tab, each with paragraphs of explanation, become one list grouped by objectives, product families and other constraints, with a status on every row. Each constraint opens in a drawer, so the overview stays in place.

First prototype: twelve constraint and objective tabs above a family table and paragraphs of explanation.
Rebuild: one list of constraints grouped by objectives, product families and other constraints, with a status badge on each row.

Product families

Five count tiles and four native dropdowns become type tabs with counts, a search and the system’s Select. Families, constraints and strategy codes share one Settings area.

First prototype: count tiles, native dropdown filters and a dense family table.
Rebuild: Settings with tabs, type filters with counts, a search, a category select and the family table.

A name already in use

The error moves from a sentence under the form to the field itself, and Next stays disabled with its reason beside it. Zones become a checkbox list with store counts and a tri-state “All zones”, the control the skill prescribes for short multi-selects.

First prototype: zone buttons and an error sentence at the bottom of the form.
Rebuild: the error under the name field, a disabled Next with its reason, and zones as a checkbox list with store counts.

Editing a gap threshold

Paragraphs, radio cards and a reference table become one field with a % | $ segmented control and a “Required” error. Modals stay for short decisions, as the control rules ask.

First prototype: a dialog with paragraphs, gap-type cards, an error and a reference table.
Rebuild: a compact dialog with one field, a percent or dollar toggle and a Required error.

States the first prototype didn’t have

Constraints can contradict each other, so running a scenario needed states for checking, blocking, failing and warning. The check, the preview and the upload review came out of a stakeholder round.

  • Step 2 list with conflict and warning badges and a Check finished toast.

    The constraint check runs in the background; rows show conflicts and warnings, and a toast opens the details

  • Constraints preview drawer filtered to two conflicting rules.

    A read-only preview of every rule, filtered to conflicts; each row says what is wrong

  • Step 3 with Run disabled and a View in step 2 link.

    Run is disabled with its reason and a link to the conflict

  • A failed scenario with its conflict and a View in setup link.

    A failed run names the conflicting rule and links to it

  • Scenario results with two soft warnings next to All hard constraints met.

    Warnings never block a run; they stay visible on the result

  • Review upload dialog listing new rules and skipped rows.

    An upload is reviewed before it applies: what is added, what is skipped and why

Early outcomes

The pricing line already works with the npm package, the Make Kit, shared Claude Code rules and team knowledge-transfer sessions. Now those rules live in the portable Claude prototyping skill and its design linter, checking prototypes before they reach design review.

With those guardrails in place, PMs iterate on explorations close to production quality, and my time goes where it should: cognitive load, efficiency and information architecture.

Reflection

Once anyone can generate a screen in seconds, the work moves from drawing screens to encoding the rules that keep them coherent.