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
| Stage | Content |
|---|---|
| Trigger | The user wants to “save”, “migrate”, or “upload” existing pages to Stitch. |
| Input | A running local dev server, or a build directory with index.html and assets; the target projectId. |
| Steps | Delegate 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. |
| Output | The screen and project-level design system in Stitch, plus a local .stitch/DESIGN.md. |
| Boundary | A 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 fit | Poor fit |
|---|---|
| A runnable frontend that should move into Stitch | No source and no build output |
| Migrating while keeping the design system | Generating from scratch inside Stitch |
| Building screens per route in bulk | Code that must not leave the machine |
How it differs
| Need | Use |
|---|---|
| Migrate a whole frontend into Stitch | code-to-design |
| Only extract rules from source | extract-design-md |
| Only one self-contained HTML file | The extract-static-html skill it calls |
| Only upload HTML you already have | The upload-to-stitch skill it calls |
Source-level risks
| Risk | Source | Impact |
|---|---|---|
| App HTML and the design system go to a remote service | Steps 4 and 5 call the upload script | Code and visual assets leave the machine |
| Depends on three sibling skills | Relative links in the text | A missing skill stops the chain |
| Requires an API key | Step 5 | Key handling is the caller’s responsibility |
| Needs a dev server or build output | Prerequisites | Projects that fail to build cannot be used |
| The HTML upload step omits pre-upload confirmation | Step 5 uploads directly | Inconsistent with the design-system checkpoint |