Sketch to Vue on Claude Code: Orchestrated Agents, Design IR, and an Auto-Fixing Visual QA Loop
Orchestrated AI design-to-code stops being a one-shot chat and becomes an auditable, resumable engineering process. The 98% pixel gate plus region-based checks forces AI output to match a design before it reaches a browser, which is the difference between a demo and something a team can ship.
A proposed Sketch-to-Vue pipeline rests on one decision: no single agent tries to do the whole job. An orchestrator splits design restoration into six serial stages, parallelizes inside stages, and hands each phase to a specialist agent. Eight agents cover project analysis, Sketch parsing, layout analysis, component planning, component and page development, integration, and visual QA. Eight reusable Skills keep agent definitions from bloating, and deterministic TypeScript scripts handle JSON parsing, screenshots, and image comparison so the AI doesn't re-derive what code can do reliably.
The pipeline inserts a Design IR between Sketch's raw JSON and Vue generation. That intermediate model preserves layer IDs, parent-child relationships, local coordinates, transforms, styles, and asset references, so later layout analysis and code generation share one stable view of the design. Two human approval gates sit before parallel development and after integration, and a third gates final delivery.
Visual QA closes the loop: Playwright captures the rendered page, a pixel-diff script compares it with the Sketch screenshot, and the AI receives a difference report to fix. Initial quality targets cap critical dimension and position deviations at 2px, require 100% asset mapping, and set pixel similarity at 98% or higher. After at most three auto-fix rounds, unresolved work is marked NEEDS_REVIEW for a human. Task state and intermediate artifacts persist in .design-work/, with commands like /design-start and /design-resume making the whole flow resumable.
The separation of agent roles from reusable skills is what makes the eight-agent setup maintainable; agent definitions stay small because professional knowledge lives in Skills that can be shared.
Human approval gates placed before parallel development and after integration catch design misreads early, before many page agents waste effort, and again after reality of integration sets in.
The 98% pixel similarity target is bold given anti-aliasing, shadows, and browser rendering differences; the source itself acknowledges pixel similarity isn't a full quality score, so the region-based checks are the real guarantee.