extract-design-md
Reverse-engineer a Stitch-compatible DESIGN.md design system from existing frontend source code. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens in React, Vue, Svelte, Angular, or plain HTML/CSS, and writes a structured document that can be version-controlled, shared with the team, and used to keep future UI consistent.
How do I install this agent skill?
npx skills add https://github.com/podo/design-agent-skills --skill extract-design-mdIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill allows for the reverse-engineering of design systems from existing frontend source code by analyzing component files and stylesheets. It fetches its core logic from a verified Google Labs GitHub repository. While it processes external source code which theoretically presents an indirect prompt injection surface, this is a standard function of its intended use case.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
extract-design-md
<!-- das:install:start — generated from stub.yaml by `npm run generate`; edit stub.yaml, not this block -->Catalogue stub — full skill: google-labs-code/stitch-skills
Decision tree
-
Is the full skill already installed? Upstream names this skill
stitch-extract-design-md, so it installs next to this pointer (the pointer is not replaced).- Global:
f=~/.agents/skills/stitch-extract-design-md/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer" - Project:
f=.agents/skills/stitch-extract-design-md/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer" installed→ the skill is installed asstitch-extract-design-md, invoke it and proceedpointer→ go to step 2
- Global:
-
Detect scope, then install:
[ -e ~/.agents/skills/extract-design-md ] && echo "global" || echo "project"Global:
npx skills add google-labs-code/stitch-skills --skill stitch::extract-design-md -g -yProject:
npx skills add google-labs-code/stitch-skills --skill stitch::extract-design-md -yClaude Code: send a command as a chat message starting with
!to run it without leaving the conversation.
Heads-up
- Requires: Optional Stitch MCP server, only to push the resulting DESIGN.md into a Stitch project (the extraction itself reads source files only)
- License: Apache-2.0
Invoke after install
- Skill name:
stitch-extract-design-md(the upstream name isstitch::extract-design-md; the CLI installs it under the sanitised directory name) - Trigger phrases: "extract design md", "design system from source code", "reverse engineer design system", "DESIGN.md"
What it does
Reads a frontend codebase and extracts its design system into a DESIGN.md file in the format Google Stitch uses: colors, typography, spacing, component patterns, and layout principles, plus notes for Stitch generation. It works from source files only (stylesheets, component files, Tailwind and theme configs, CSS-in-JS), so it needs no build, no running app, and no Stitch connection. Typical uses: auditing the visual language of a repo, reconciling inconsistent styles, or migrating a project's identity into Stitch. The direction is code to DESIGN.md, not Stitch output to DESIGN.md. Part of Google Labs' official Stitch skills.
When NOT to use
- You have a rendered Stitch project and want its DESIGN.md — use the
design-mdskill fromgoogle-stitch-skillsinstead - You want design tokens (JSON/CSS) pulled from a live website rather than a DESIGN.md from source — use
extract-design-system - You only want a DESIGN.md for a well-known brand — use
brand-design-md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/podo/design-agent-skills/extract-design-md">View extract-design-md on skillZs</a>