Download for macOS
Skill

stitch::code-to-design

@google-labs-code Updated 2026-07-30

Convert frontend code (Vite, React, Angular, Vue, etc.) to a Stitch Design by chaining static HTML extraction, design system extraction, and file upload. **ALWAYS** use this skill when the user's intent is to move existing web apps or React/Angular/Vue components into Stitch (e.g., requests to "save", "migrate", or "upload"). You must use this skill even for simple "save" operations, as it is the only way to ensure the design system is extracted and assets are properly linked.

Install

git clone https://github.com/google-labs-code/stitch-skills /tmp/stitch-skills && ln -s /tmp/stitch-skills/plugins/stitch-design/skills/code-to-design ~/.claude/skills/stitch::code-to-design

From README

Code to Design Transform your existing frontend code (React + Vite, Next.js, Angular, Vue, etc.) into a Stitch Design so you can iterate and improve it using Stitch. This skill orchestrates three other skills in sequence: extract-static-html: Extract a single self-contained HTML file from your build output or running dev server (e.g., Vite dev server or Angular CLI ng serve). extract-design-md: Analyze the source code (including Angular angular.json, external .html templates, theme files, and components) to create a design system (DESIGN.md). upload-to-stitch: Upload that HTML file and the design system to your Stitch project. Workflow Follow these steps to convert your existing code. Prerequisites A running local dev server (e.g. npm run dev, ng serve) OR a built web application directory containing index.html and assets. Target Stitch projectId (use listprojects if unknown).