← scroll to see the full diagram →
Figma → agent proposes structure → I validate against real product intent → structured library → split into AI-readable rules and human-legible docs.
Senior Product Designer: diagnosed why AI output was failing, defined what "correct" meant, and shaped how the agent behaved.
Me, and one developer who dreamed this whole thing up and built the agent and library tooling.
Internal rollout in progress. Next phase adds real code snippets to the library.
AI-generated UI never looked like it belonged in our product. Spacing was off, components were invented, and patterns didn't match our brand. Better prompts didn't fix it, because the AI had nothing real to check itself against. Our design system lived in Figma and in people's heads, and neither of those is something an LLM can read.
A normal style guide means nothing to an AI model. It needed real rules to check itself against. A developer on the team had the idea to build an agent that could construct exactly that, and I made sure every rule it produced reflected real product decisions.
Before referencing the library, prompting AI for a component returned the wrong spacing, invented UI patterns, and the wrong hierarchy. After adding an explicit rule to the library for that pattern, the same prompt produced something close to production-ready.
← scroll to compare before and after →
Recreated example, not the actual product or design system. Before: dark mode, switch style toggles, no save link, irrelevant content. After: consistent colors, use of checkboxes, consistent spacing, relevant content, consistent use of surfaces and save button.
AI output went from needing a full redesign pass to being a usable first draft. The team now has one source of truth for the design system, readable by people and by AI. I turned design knowledge that used to live in Figma and in people's heads into an explicit system that will outlast any specific AI tool.