AI Tooling
Design Reviewer: AI QA for Design-to-Code

- Tools
- Claude Code, Figma MCP, React, Tailwind CSS
- Timeline
- 1 week (concept to working workflow)
Why I Built This
When you use AI to build screens from Figma designs, the AI decides when the screen is "done." And it always thinks it’s done.
I was building a personal project using Claude Code with Figma MCP to turn my Figma designs into production React components. The workflow was fast: write a detailed spec, point Claude Code at the Figma frame, and let it build.
But every screen came back with visual bugs. Font weights that were "close enough." Spacing that used hardcoded pixels instead of design tokens. Components that looked right at first glance but didn’t match the design at the detail level.
The problem isn’t the build quality, it’s the review step. When I asked Claude Code to check its own work in the same session, it couldn’t see the issues. It had already decided ‘gap-6’ was correct when it wrote it.
I needed a second pair of eyes. A reviewer that never saw the build conversation.


What I Built
A design reviewer subagent - a separate AI instance that runs in a fresh context, reads the built code and the Figma spec, and reports every place the design drifted. It’s one markdown file: .claude/agents/design-reviewer.md
- Read-only tools: The reviewer gets Read, Grep, Glob, Bash - no Write. A reviewer that can edit files will start fixing instead of flagging. Removing write access means it can only do one thing: report.
- Fresh context: It spins up as a subagent with no memory of the build conversation. No knowledge of why the builder chose gap-6. It just sees the output and the spec. Same principle as design critiques; the person who made it shouldn’t evaluate it.
- Spec-first comparison: It compares element by element against three sources: the Figma design data (pre-saved as a local file), the screen spec, and the design token files.

How I Built It
- Claude Code builds the screen from a spec + Figma node ID.
- Before reviewing: "Pull Figma design context for this frame and save to specs/reference/."
- Then: "Use the design-reviewer subagent to review this page against this frame."
Learning
The real learning came from the first test run on a built page. The reviewer flagged 18 issues. 17 were false positives.
It was flagging values like p-[20px] and w-[257px] as hardcoded violations - but those were explicitly specified in the build spec to match Figma measurements. One finding was real: a redundant spacing issue that could be consolidated.

The fix was one rule added to the agent: "Do not flag values the spec explicitly prescribes." After that, the second run returned three focused findings - wrong font weight, wrong spacing gap, wrong border radius, each with the exact file, line, and fix. Claude Code applied all three in one pass.
The Workflow
After iterating, the complete workflow for every screen is:
Step 1: Build.
Write a detailed spec. Give it to Claude Code with the Figma node ID. Let it build.
Step 2: Save reference.
In the same Claude Code session: "Pull Figma design context for frame [name] and save to specs/reference/."
Step 3: Review.
"Use the design-reviewer subagent to review [page file] against [frame name]."
Step 4: Fix.
Read the report. Tell Claude Code "fix items 1, 3, 5." Done.
The entire review cycle takes about 2 minutes. Without it, I was spending 20-30 minutes per screen manually comparing, describing issues in words, and going back and forth.
Challenges & Learnings
MCP Tools Don’t Work in Subagents
PROBLEM: The ideal workflow - reviewer calls Figma MCP directly - failed silently. The subagent just skipped the Figma comparison without reporting an error.
SOLUTION: Pre-save Figma data to local files before invoking the reviewer. The main Claude Code session has full MCP access; the subagent reads the saved output.
LEARNING: When designing AI agent workflows, always test your tool assumptions. The tools available to a main agent aren’t automatically available to its subagents.
Generic Rules Produce False Positives
PROBLEM: The reviewer flagged 17 false positives on its first run because it applied token rules without checking whether the spec intentionally prescribed specific values.
SOLUTION: Added an explicit instruction: "Do not flag values that match the spec." The reviewer now checks the spec before flagging anything.
LEARNING: An AI reviewer told to "find problems" will always find something. Constraining what counts as a problem is more important than expanding what it checks.
For Designers Who Want to Build This
- Create the file at .claude/agents/design-reviewer.md in your repo
- Scope the tools to read-only: tools: Read, Grep, Glob, Bash
- Tell it what to check: component usage, spacing, typography, colors, dimensions
- Tell it what NOT to flag: values that match the spec, style preferences, code structure opinions
- Define the report format: numbered findings with file, line, and exact fix
- Save Figma data first: before invoking the reviewer, pull design context to a local file
- Iterate on the instructions after the first run; false positives teach you what rules to refine
What I learned
- 01
AI tools are builders, but unreliable self-critics
This project reinforced something I keep learning: AI tools are powerful builders but unreliable self-critics. The same property that makes them fast - confidence, makes them bad at catching their own mistakes.
- 02
QA is the new critical skill
As designers increasingly direct AI to build their work, quality assurance becomes the critical skill. Not writing code, not debugging but knowing what "correct" looks like and building systems that enforce it.