code-to-design

Turn existing frontend code back into design screens and specs.

code-to-design reverses existing frontend code into design screens. Requires Stitch MCP.

Design & slidesagents 2Apache-2.0 downloadable Scan upstream repo ↗

What it is

Moves an existing frontend app (Vite, React, Next.js, Angular, Vue and others) into Stitch: extract self-contained HTML, extract the design system, then upload both as an iterable design. It is for developers who want to keep improving a current UI inside Stitch. It does not modify the original project and does not design new screens.

Core workflow

StageContent
TriggerThe user wants to “save”, “migrate”, or “upload” existing pages to Stitch.
InputA running local dev server, or a build directory with index.html and assets; the target projectId.
StepsDelegate to extract-static-html for a standalone HTML file; tell the user the path without blocking; delegate to extract-design-md to write .stitch/DESIGN.md; delegate to manage-design-system to upload and create the system; then upload the HTML, titling it with the route.
OutputThe screen and project-level design system in Stitch, plus a local .stitch/DESIGN.md.
BoundaryA dev server or build output is required; uploads need an API key; the HTML upload records –generated-by as stitch::extract-static-html.
Getting started: confirm the route first, then name the screen by route so Stitch maps back to source.

Traits

  • Chains three skills in a fixed order: HTML extraction, spec extraction, upload.
  • Screen titles use the route path (such as /dashboard) to match the source.
  • Even a plain “save” must run the full chain so the design system is extracted.
  • Does not block on manual verification; issues are fixed after the user reports them.

Who it is for and who it is not for

Good fitPoor fit
A runnable frontend that should move into StitchNo source and no build output
Migrating while keeping the design systemGenerating from scratch inside Stitch
Building screens per route in bulkCode that must not leave the machine

How it differs

NeedUse
Migrate a whole frontend into Stitchcode-to-design
Only extract rules from sourceextract-design-md
Only one self-contained HTML fileThe extract-static-html skill it calls
Only upload HTML you already haveThe upload-to-stitch skill it calls

Source-level risks

RiskSourceImpact
App HTML and the design system go to a remote serviceSteps 4 and 5 call the upload scriptCode and visual assets leave the machine
Depends on three sibling skillsRelative links in the textA missing skill stops the chain
Requires an API keyStep 5Key handling is the caller’s responsibility
Needs a dev server or build outputPrerequisitesProjects that fail to build cannot be used
The HTML upload step omits pre-upload confirmationStep 5 uploads directlyInconsistent with the design-system checkpoint

Example: input and output

Input

Reverse a React page into design screens.

Output

Outputs structure and design notes.

需要 Stitch MCP。

FAQ

Legacy projects?

Yes.

Frameworks?

Mostly HTML/React.

Common tasks

CategoryDesign & slides
Version2026-11-28
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
Dependenciesnone
Environment需要 Stitch MCP
Scriptsnone
LicenseApache-2.0
Sourcegoogle-labs-code/stitch-skills ↗
Verification✓ verified
Get itDownload zip
SHA256: 8672cf69f63cb72b4187bbb034934cdb58b884b0c06b4a3be09874a77793642e · 0.0 MB

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

Install
unzip google-labs-code-stitch-skills-code-to-design-2026-11-28.zip -d ~/.claude/skills/

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.