Skip to content
SkillModel-led3,091 tokens in use

stitch::extract-design-md

Reads a frontend codebase's stylesheets, Tailwind config and components to write a Stitch-ready DESIGN.md without building or running the app.

10,975 stars on the repository Apache License 2.0google-labs-code/stitch-skills · plugins/stitch-design/skills/extract-design-md
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::extract-design-md costs

139tokens idle
3,091tokens in use
10,117tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. 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

shelldeclaredwrites 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 →
Excellent
  • Frontmatter8/15
  • Structure25/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources15/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 reverse-engineers a design system from source code. It detects the framework, reads theme files, Tailwind configs, CSS variables and component styles, and writes a DESIGN.md at .stitch/DESIGN.md with a YAML color block and six sections.

It works on React, Next.js, Vue, Svelte, Angular and vanilla CSS projects, and uses a reference file per framework to know where colors, type and spacing live.

What You Get

  • A .stitch/DESIGN.md with YAML frontmatter holding the name and color tokens
  • Colors grouped by function with descriptive names, hex codes and roles
  • Typography, component and layout sections written in descriptive language
  • Stitch generation notes with example component prompts

Common Use Cases

  • Documenting the design language of an existing codebase
  • Preparing a project for migration into Stitch
  • Finding near-duplicate colors and inconsistent styles across a repo

What Makes It Unique

It reads source files, so it works when the app cannot be built or run. Per-framework reference files guide the search, and the checklist asks for the intent behind styling choices, such as comments in theme files.

Under The Hood

The skill is instructions plus reference files for each framework. The agent reads package.json, Tailwind and PostCSS configs, theme and token files and component styles with file read tools, then writes .stitch/DESIGN.md. It runs no build and no network calls of its own.

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