”What actually gets faster when you automate Design QA — and where is the real bottleneck?”
Background
After development completes, a designer opens Figma, opens the dev build, and checks them side by side: does the padding match? the colors? the component spacing? As the number of screens grows, this becomes repetitive, slow, and error-prone — especially for layout measurements that are hard to catch by eye.
I wanted to fix this. The hypothesis: pull design specs from the Figma API, extract CSS values from the live dev build using browser automation, compare them with AI, and significantly reduce the need for manual checking.
Method
I built a Design QA automation tool. The goal was simple: reduce the time designers spend manually comparing Figma and dev builds side by side. Instead, run it once and get a QA report.
The implementation was in Python. I used Figma API to fetch design specs, browser automation (OpenClaw) to extract values from the dev build, and Claude Vision to synthesize both into actionable sentences.
I shipped the first working prototype in late March 2026, then kept hardening it in production runs. The pipeline is still evolving, but the core loop is already repeatable.
I ran it on a ZEP Quiz dev build screen to validate that the loop works end-to-end. Each run produces one Markdown report.
How does the pipeline work? I defined it as: capture the same screen twice, compare the difference, and write a report. The core principle was leaving the same evidence every time.
PRD text
→ (0.5) Read a branch/PR diff (optional)
→ focus on changed components
→ (1) List screens to check
→ (2) Match each screen to a Figma frame
→ (3) From Figma: collect numbers + take a screenshot
→ (4) From dev: collect numbers + take a screenshot
→ (5) Compare (numbers + pixel diff + Vision summary)
→ (6) Write a Markdown QA report
First, it creates a list of screens from the PRD. Then it maps each screen name to a Figma frame. If this mapping is wrong, the rest of the comparison becomes meaningless.
For matched screens, it collects the same evidence from both Figma and dev. Numbers capture layout specs like padding and spacing. Screenshots capture visual differences that numbers miss.
The comparison happens in two layers. Value comparison catches subtle mismatches like 16px vs 15.98px. Pixel diff shows exactly where things changed in a single image.
The final step is summary. Claude Vision reads the evidence and turns it into sentences a human can fix. The result is saved as a Markdown report and shared on Slack in production.
This pipeline doesn’t just look at screenshots. If you pass a branch or PR name, Step 0.5 runs git diff to extract changed files. From those files, it identifies affected components and narrows the QA scope. This connection is still being refined.
In the current version, this connection is stronger on the source analysis side. The diff narrows which files to analyze and which components are “in scope”. The browser capture is still more conservative. It hasn’t reached the stage of perfectly capturing only changed areas.
Two design choices made this usable. First, I used both value comparison and pixel diff simultaneously instead of picking one. Second, I prioritized pipeline reliability over model cleverness. When a step fails, the pipeline should stop and explain why.
Layout Numbers + Pixel Diff as a Dual Check
At first, I only did value comparison. But I found that identical numbers can still look visually different, and conversely, numeric differences can render within acceptable tolerance. To solve this, I added pixel diff between Figma captures and dev screenshots. Looking at both layers together provided clearer judgment than numbers alone.
50% Automation Is Still Better Than Manual Work
If I had aimed for perfect mapping accuracy from the start, development time would have been excessive. The judgment was: “just narrowing down candidates automatically” provides meaningful time savings compared to manual work. So I deployed it to production even with low completion, and improved only the pain points revealed by real usage. Real-world feedback produced more accurate priorities than theoretical completeness.
Findings
Finding 1: The bottleneck wasn’t CSS comparison — it was naming
The first thing that broke was unexpected. Connecting PRD screen names to Figma frame names was much harder than anticipated. The PRD says “View all responses (modal)”, while Figma says “Question statistics + graph version”. The meanings connect, but the words are completely different.
Average mapping confidence: 0.17. Three of six screens had no Figma match at all. This isn’t an algorithm failure — it’s a structural problem. Design teams and development teams name the same screen differently. When doing manual QA, I was bridging that gap in my head every time. Automation made that implicit knowledge visible.
Finding 2: When mapping works, the automation is genuinely useful
On screens where the Figma match succeeded, the results were good. Some of what automation caught would have been missed in manual inspection: Figma spec padding: 16px → computed dev value 15.98px (invisible visually, but a sign of floating-point accumulation), a pending state color token defined in Figma implemented as plain gray in dev without semantic token binding, card internal spacing implemented as flex gap instead of padding. These are things that numbers catch but look identical to the eye.
Finding 3: Reliability mattered more than the model
The most frustrating problem in production wasn’t wrong comparisons. It was when a step failed silently but still produced a report, wasting even more time. So I fixed the execution flow before the prompts.
I added timeouts, failure logging, and fixed screenshot rules. For a tool, failing the same way every time is more important than succeeding once.
Discussion and Implications
This pipeline was a team tool, not a tech demo. In manual DQA, I was matching PRD screen names to Figma frame names in my head. Automation made that matching work surface as a failure point.
So the improvement direction is closer to process than code. Making CSS comparison more sophisticated improves accuracy slightly. Aligning names or maintaining a mapping table improves both accuracy and speed.
Limitations and Next Steps
This experiment only ran on a subset of ZEP Quiz dev build screens. As screen count grows, mapping failures grow with it. When mapping is unstable and reports are still generated, those reports waste team time.
The next step is stabilizing input. PRD and Figma should call the same screen by the same name. If that’s hard, maintain a mapping table.
I also plan to tighten diff-based focus. Right now, git diff narrows source analysis to changed files only. Next is narrowing capture and comparison the same way. That’s the difference between “a tool you run when needed” and “a tool that runs on every PR.”
Takeaway
This automation was about connection before comparison. PRD and Figma must point to the same screen as the same target. Without that connection, no amount of comparison sophistication will stabilize the results.
So the next work splits into two paths. Align names and mapping to stabilize input. At the same time, narrow QA scope with diff-based focus to run it on every PR. This pipeline is still a work in progress.
I performed the research and implementation myself. I received assistance from Codex in drafting this writeup.