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
- 1Discover 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.
- 2Extract each dimension
It works through atmosphere, colour roles, typography, key components and layout, describing intent rather than dumping properties.
- 3Name and consolidate
It gives each colour a descriptive name, hex value and role, and merges near-duplicates.
- 4Write DESIGN.md
It writes .stitch/DESIGN.md with the required YAML front matter and six sections, ending with Stitch generation notes and sample prompts.
- 5Optionally 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-utilitiesClaude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-codeCursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursorAny Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skillsOpenCodeCopy 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-designCommands 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
/react-componentsTurn Stitch screens into modular, validated React codeConverts Stitch screens into modular Vite and React components with hooks, mock data, typed props and an AST validator.Read the guide →/remotionMake a walkthrough video from your Stitch screensProduces a walkthrough video of a Stitch project's screens in Remotion with transitions, zooms and text overlays.Read the guide →/generate-designGenerate and refine Stitch screens from better promptsCreates Stitch screens from text or images, edits existing ones and generates up to five variants, after rewriting the prompt.Read the guide →/stitch-loopBuild a multi-page site with an autonomous Stitch loopBuilds a site page by page in Stitch, passing a baton file between iterations and wiring each new page into navigation.Read the guide →
Also in this pack
/react-nativeTranslates Stitch HTML designs into React Native components with StyleSheet, a shared theme file and native navigation.↗/react-vite-dashboardTurns Stitch screens into data-dense React and Vite dashboards using TanStack Query, DESIGN.md tokens and optional ethers or viem reads.↗/shadcn-uiGuides finding, installing and customising shadcn/ui components through the shadcn MCP tools and CLI.↗/extract-static-htmlCaptures a running app as one self-contained HTML file with inlined CSS and images, via Puppeteer or a browser agent.↗/upload-to-stitchUploads local images, mockups, HTML or markdown to a Stitch project with a script that avoids MCP token limits.↗/enhance-promptTurns a rough UI idea into a structured Stitch prompt with platform, page sections, UI terms and DESIGN.md context.↗/site-mdDrafts a .stitch/SITE.md with mission, visual vibe, sitemap and roadmap to drive the multi-page build loop.↗/taste-designWrites a DESIGN.md with strict anti-generic rules for type, colour, asymmetric layout and motion to steer Stitch output.↗
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.