stitch-code-to-design
Installation
SKILL.md
Stitch Code To Design
This skill is a catalog-normalized import from https://github.com/google-labs-code/stitch-skills at commit 3f64079d75d025bc5890c73669f27c26a2d80b31, source path plugins/stitch-design/skills/code-to-design. The upstream control file was corrected for this workspace: the verified Stitch MCP surface here is design-system oriented, so screen lookup, screen generation, and screen editing tools must be used only when the current host explicitly exposes them.
When to Use This Skill
- Use when an existing web app, React view, or static page must be moved into Stitch.
- The task involves Google Stitch project IDs,
.stitch/artifacts, DESIGN.md files, Stitch exports, or Stitch-specific validation. - The broader
stitch-designrouter points here as the narrowest workflow.
Workflow
- Resolve the target app root, route, and intended Stitch project. If the project ID is unknown, require a user-provided Stitch URL/project ID, the Stitch web UI, or a host-listed lookup tool.
- Run
stitch-extract-static-htmlfor the relevant route or UI state and keep the output under.stitch/. - Run
stitch-extract-design-mdagainst the source tree and save.stitch/DESIGN.md. - Run
stitch-manage-design-systemto create or update the Stitch design system, using--generated-by 'stitch::code-to-design'when the bundled upload helper is needed. - Run
stitch-upload-to-stitchfor the static HTML only after the user approves the exact file, size, and destination; identify the producer with--generated-by 'stitch::extract-static-html'. - Update
.stitch/metadata.jsonwith project, screen, and design-system identifiers.