Skills Prompts Hues

Popular categories

Agent skill · Stitch Skills

/extract-design-md Reverse-engineer a design system from frontend source

extract-design-md reads a codebase's styles directly, without building it, and writes a DESIGN.md describing its atmosphere, colours, type, components and layout. It detects the framework, follows framework-specific extraction notes, names and deduplicates colours by role, and ends with prompt notes so Stitch can generate screens in the same style.

Works with

  • Codex
  • Claude Code
  • Cursor
  • Any Agent Skills host
  • OpenCode

When to use it

  • You want to document an app's visual language before redesigning it.
  • The app will not build, but you still need its tokens and patterns.
  • You plan to move an existing product's look into Stitch.

How it works

  1. 1
    Discover the stack

    The agent reads package.json and looks for Tailwind, PostCSS, CSS-in-JS and token files, then loads the guidance for React, Vue, Svelte, Angular or plain CSS.

  2. 2
    Extract each dimension

    It works through atmosphere, colour roles, typography, key components and layout, describing intent rather than dumping properties.

  3. 3
    Name and consolidate

    It gives each colour a descriptive name, hex value and role, and merges near-duplicates.

  4. 4
    Write DESIGN.md

    It writes .stitch/DESIGN.md with the required YAML front matter and six sections, ending with Stitch generation notes and sample prompts.

  5. 5
    Optionally push to Stitch

    If you want, it hands the file to manage-design-system to create the design system in Stitch.

What it steers the agent away from

  • Listing raw CSS values without the intent behind them
  • Keeping near-identical colours as separate tokens
  • Omitting the YAML block other skills parse

Install this skill

It installs with the Stitch Skills pack.

CodexAdds the marketplace; then install stitch-design, stitch-build and stitch-utilities as needed. The sparse flags are optional.
codex plugin marketplace add google-labs-code/stitch-skills --ref main \
--sparse .agents/plugins \
--sparse plugins/stitch-design \
--sparse plugins/stitch-build \
--sparse plugins/stitch-utilities
Claude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
CursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursor
Any Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skills
OpenCodeCopy each skill folder by hand and add the Stitch MCP server as a remote entry in opencode.json; skills named stitch::… need renaming to kebab-case.
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-design

Commands come from the author’s README; check it for changes before you run them.

Questions

How is it different from design-md?

design-md works from screens already in a Stitch project, while this skill reads your source code directly.

Does it need Stitch?

Not for the document itself. Stitch is only needed if you push the resulting design system into a project.

More guides from Stitch Skills

Also in this pack

All 16 skills →

Summary by trendhub. The skill itself lives in google-labs-code/stitch-skills/plugins/stitch-design/skills/extract-design-md by Google Labs Code (Apache-2.0); read the full, current text there.