Agent skill

Stitch Extract DESIGN.md Skill: Read a Design System from Source Code

The stitch-extract-design-md skill reads stylesheets, Tailwind configs and theme files from a frontend repo and writes a Stitch-ready DESIGN.md, with no build or running app required.

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-extract-design-md skill?

The stitch-extract-design-md skill reverse-engineers a design system from frontend source. An AI coding agent scans React, Vue, Svelte, Angular or plain CSS files, gathers colors, type, components and layout, then writes .stitch/DESIGN.md with a YAML color block, without ever building or rendering the app.

The skill belongs to the stitch-design plugin in Google's stitch-skills repository. Its job is to describe the visual language of a codebase, including colors, typography, spacing, component patterns and layout, in a DESIGN.md that Stitch can use.

The SKILL.md explains why it exists. The sibling design-md skill works from rendered HTML, but sometimes the build is broken or dependencies are missing, and reading source files is faster and works anywhere.

How it reads a project

  1. Discovery. The agent reads package.json and signal files to detect React, Vue, Svelte, Angular, Tailwind, PostCSS, CSS-in-JS or plain CSS.
  2. It maps the source tree, looking at components, styles, theme folders, tailwind.config and any theme or tokens file.
  3. It opens the matching reference for React with Tailwind, Vue, Svelte, Angular or plain CSS.
  4. Deep extraction covers atmosphere, color roles, typography, components, layout and notes for Stitch generation.
  5. It writes .stitch/DESIGN.md, with an optional hand-off to manage-design-system.

What goes into the DESIGN.md

  • A YAML frontmatter block with a name and a colors mapping. The skill calls leaving it out a failure, because other skills parse that data.
  • Six numbered sections: theme and atmosphere, color palette and roles, typography, component stylings, layout principles and Stitch generation notes.
  • Color names that describe character, such as Deep Muted Teal-Navy for one hex value, with near-duplicates consolidated.

Who the stitch-extract-design-md skill is for

Best for

  • Developers who inherit a repo and want its design language written down before touching it.
  • Teams migrating a project's visual identity into Stitch.
  • Anyone auditing inconsistent styles, since the skill consolidates near-duplicate colors and favors theme files over scattered inline styles.

Not for

  • Sites you can only view in a browser, with no source. Pages like that need a rendered-HTML route such as design-md.
  • Writing a design system from a blank brief. Related: create-design-md.
  • Uploading to Stitch on its own. The hand-off to manage-design-system does that part.

Use it with UiChemy

The output is a design document, not a page. If the same brand needs to appear in WordPress, UiChemy can build from Figma, Composer or AI to WordPress. Click Get Started on uichemy.com. Related: extract-design-system.