Skip to content
SkillModel-led717 tokens in use

stitch::code-to-design

Moves an existing frontend app into Google Stitch by extracting static HTML, a DESIGN.md design system and uploading both to a Stitch project.

10,975 stars on the repository Apache License 2.0google-labs-code/stitch-skills · plugins/stitch-design/skills/code-to-design
npx skills add google-labs-code/stitch-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing stitch::code-to-design costs

117tokens idle
717tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldeclared and detectedwrites filesdeclared

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter8/15
  • Structure23/25
  • Examples3/15
  • Output12/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity80
  • Maintenance52
  • Community68
  • Maturity32
  • Momentum40

This skill converts a React, Vite, Next.js, Angular or Vue app into a Stitch design. It chains three other skills: static HTML extraction, design system extraction and upload.

Each page becomes a Stitch screen titled with its route path, and the extracted DESIGN.md becomes the project’s design system, so the design can be iterated on inside Stitch.

What You Get

  • A standalone HTML file for each page of the app
  • A .stitch/DESIGN.md file extracted from the source code
  • A design system created in the target Stitch project
  • Stitch screens titled with the route path of each page

Common Use Cases

  • Migrating a shipped React or Angular app into Stitch for redesign
  • Saving a page of a Vue app to Stitch with its design system attached
  • Bringing a prototype from a local dev server into a shared Stitch project

What Makes It Unique

It claims every request to move, save or upload existing web code into Stitch, so the design system extraction always runs and screens carry route-path titles. The skill itself holds only the sequence and delegates the work to specialist skills.

Under The Hood

The skill contains no scripts. It reads the instructions of three sibling skills and follows them in order: a Puppeteer snapshot of the running app, a source analysis that writes .stitch/DESIGN.md, and a Python upload script that sends the files to the Stitch API with an API key. It tags uploads with a generated-by value naming the skill.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers