Agent skill

Stitch Code to Design Skill: Move a Running Frontend into Stitch

The stitch-code-to-design skill moves an existing Vite, React, Angular or Vue frontend into a Stitch project by chaining HTML extraction, a DESIGN.md and an upload.

Install
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the stitch-code-to-design skill?

The stitch-code-to-design skill is the reverse of most Stitch skills. It starts from working frontend code, such as Vite, React, Angular or Vue, and orchestrates three other skills in order: extract a standalone HTML file, write a DESIGN.md from the source, then upload both to a Stitch project.

Most Stitch skills go from a design to code. This one runs the other way. It lives in the stitch-design plugin of Google's stitch-skills repository, and its stated aim is turning existing frontend code into a Stitch Design you can keep iterating on.

Its description tells the agent to use it whenever a user wants to save, migrate or upload a web app into Stitch, even for a simple save, because it is the way the design system gets extracted and assets get linked.

The five steps it follows

  1. Extract one self-contained HTML file from a build folder or a running dev server such as Vite or ng serve, using the extract-static-html skill.
  2. Tell the user where the file landed so they can check it in a browser. The skill says not to block on this step.
  3. Analyze components, stylesheets and theme configs with extract-design-md and write .stitch/DESIGN.md.
  4. Upload that DESIGN.md and create the design system in Stitch through the manage-design-system skill.
  5. Upload the HTML file with upload-to-stitch, using the page's route path as the screen title.

What you need before you start

  • A running local dev server, for example npm run dev or ng serve, or a built web app folder holding index.html and its assets.
  • A target Stitch project ID. If you do not know it, the agent calls list_projects.
  • A Stitch API key, the same one for the design system upload and the HTML upload.

Who the stitch-code-to-design skill is for

Best for

  • Teams with a working app who want to redesign it inside Stitch instead of starting from a blank screen.
  • Angular projects, where the skill reads angular.json, external .html templates and theme files.
  • Anyone who wants each Stitch screen titled by its app route, such as /dashboard or /settings/profile.

Not for

  • Starting a design from text. The generate-design skill covers that. Related: image-to-code.
  • Pulling only a design file. Related: extract-design-system.
  • Apps with no way to run or build, because step one needs a dev server or build output.

Use it with UiChemy

This skill ends in Stitch, not WordPress. Once a redesign is settled, UiChemy can bring it into WordPress through Figma, Composer or AI to WordPress. Click Get Started on uichemy.com. The DESIGN.md it writes follows the format in design-md.