Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files
Written by Google Stitch and published in google-labs-code/stitch-skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
You are an expert Design Systems Lead. Your goal is to analyze the provided technical assets and synthesize a "Semantic Design System" into a file named DESIGN.md.
This skill helps you create DESIGN.md files that serve as the "source of truth" for prompting Stitch to generate new screens that align perfectly with existing design language. Stitch interprets design through "Visual Descriptions" supported by specific color values.
The DESIGN.md file will serve as the "source of truth" for prompting Stitch to generate new screens that align perfectly with the existing design language. Stitch interprets design through "Visual Descriptions" supported by specific color values.
To analyze a Stitch project, you must retrieve screen metadata and design assets using the Stitch MCP Server tools:
Namespace discovery: Run list_tools to find the Stitch MCP prefix. Use this prefix (e.g., mcp_stitch:) for all subsequent calls.
Project lookup (if Project ID is not provided):
[prefix]:list_projects with filter: "view=owned" to retrieve all user projectsname field (e.g., projects/13534454087919359824)Screen lookup (if Screen ID is not provided):
[prefix]:list_screens with the projectId (just the numeric ID, not the full path)name fieldMetadata fetch:
[prefix]:get_screen with both projectId and screenId (both as numeric IDs only)screenshot.downloadUrl - Visual reference of the designhtmlCode.downloadUrl - Full HTML/CSS source codewidth, height, deviceType - Screen dimensions and target platformdesignTheme with color and style informationAsset download:
web_fetch or read_url_content to download the HTML code from htmlCode.downloadUrlscreenshot.downloadUrl for visual referenceProject metadata extraction:
[prefix]:get_project with the project name (full path: projects/{id}) to get:
designTheme object with color mode, fonts, roundness, custom colorsname field in the JSON)Evaluate the screenshot and HTML structure to capture the overall "vibe." Use evocative adjectives to describe the mood (e.g., "Airy," "Dense," "Minimalist," "Utilitarian").
Identify the key colors in the system. For each color, provide:
Convert technical border-radius and layout values into physical descriptions:
rounded-full as "Pill-shaped"rounded-lg as "Subtly rounded corners"rounded-none as "Sharp, squared-off edges"Explain how the UI handles layers. Describe the presence and quality of shadows (e.g., "Flat," "Whisper-soft diffused shadows," or "Heavy, high-contrast drop shadows").
# Design System: [Project Title]
**Project ID:** [Insert Project ID Here]
## 1. Visual Theme & Atmosphere
(Description of the mood, density, and aesthetic philosophy.)
## 2. Color Palette & Roles
(List colors by Descriptive Name + Hex Code + Functional Role.)
## 3. Typography Rules
(Description of font family, weight usage for headers vs. body, and letter-spacing character.)
## 4. Component Stylings
* **Buttons:** (Shape description, color assignment, behavior).
* **Cards/Containers:** (Corner roundness description, background color, shadow depth).
* **Inputs/Forms:** (Stroke style, background).
## 5. Layout Principles
(Description of whitespace strategy, margins, and grid alignment.)
To use this skill for the Furniture Collection project:
Retrieve project information:
Use the Stitch MCP Server to get the Furniture Collection project
Get the Home page screen details:
Retrieve the Home page screen's code, image, and screen object information
Reference best practices:
Review the Stitch Effective Prompting Guide at:
https://stitch.withgoogle.com/docs/learn/prompting/
Analyze and synthesize:
Generate the file:
DESIGN.md in the project directoryClaude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /design-md in Claude Code or $design-md in Codex.
Copy the design-md folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google-labs-code/stitch-skills.git /tmp/google-labs-code-stitch-skills
mkdir -p .claude/skills
cp -r /tmp/google-labs-code-stitch-skills/plugins/stitch-utilities/skills/design-md .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if design-md does not appear.
git clone --depth 1 https://github.com/google-labs-code/stitch-skills.git /tmp/google-labs-code-stitch-skills
mkdir -p .agents/skills
cp -r /tmp/google-labs-code-stitch-skills/plugins/stitch-utilities/skills/design-md .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for design-md and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
design-md ships 3 files, 19.3 KB in total. Select a file to load it from GitHub.