
Design Md
Turn an existing Stitch screen set into a DESIGN.md semantic design system so new UI prompts stay on-brand.
Overview
design-md is an agent skill for the Build phase that analyzes Stitch projects and writes DESIGN.md as a semantic design-system source of truth for aligned screen generation.
Install
npx skills add https://github.com/google-labs-code/stitch-skills --skill design-mdWhat is this skill?
- Retrieves Stitch project screens via MCP (namespace discovery, then prefixed Stitch tools)
- Synthesizes a semantic design system into a DESIGN.md source-of-truth file
- Aligns with Stitch “visual descriptions” plus explicit color values for prompting
- Requires Stitch MCP access and at least one designed screen in the project
- Points to the Stitch Effective Prompting Guide for follow-on generation
Adoption & trust: 47.1k installs on skills.sh; 6k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You have Stitch screens but no shared, prompt-ready design language, so every new screen request risks inconsistent UI.
Who is it for?
Solo builders iterating in Stitch who want one DESIGN.md before scaling UI generation across many screens.
Skip if: Teams with no Stitch project or MCP access, or builders who only need one-off screens without a design system.
When should I use this skill?
You have a Stitch project with designed screens and need DESIGN.md before generating more UI with Stitch.
What do I get? / Deliverables
You get a DESIGN.md file that Stitch (and your agent) can use to generate new screens that match your established visual system.
- DESIGN.md semantic design system file
- Documented color and visual-description rules aligned to Stitch prompting
Recommended Skills
Journey fit
Canonical shelf is Build because the deliverable is a design-system artifact consumed while implementing or extending product UI. Frontend is where semantic colors, typography, and visual language are applied to screens and components.
How it compares
Stitch-oriented DESIGN.md synthesis—not a general design-token linter for arbitrary codebases.
Common Questions / FAQ
Who is design-md for?
Indie and solo builders using Stitch with the MCP server who need a documented design system before generating more UI.
When should I use design-md?
During Build (frontend) once a Stitch project has at least one screen—before you prompt Stitch for additional screens or flows at scale.
Is design-md safe to install?
It uses Stitch MCP, Read, Write, and web_fetch; review the Security Audits panel on this page and scope MCP access to trusted Stitch projects only.
SKILL.md
READMESKILL.md - Design Md
# Stitch DESIGN.md Skill 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`. ## Overview 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. ## Prerequisites - Access to the Stitch MCP Server - A Stitch project with at least one designed screen - Access to the Stitch Effective Prompting Guide: https://stitch.withgoogle.com/docs/learn/prompting/ ## The Goal 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. ## Retrieval and Networking To analyze a Stitch project, you must retrieve screen metadata and design assets using the Stitch MCP Server tools: 1. **Namespace discovery**: Run `list_tools` to find the Stitch MCP prefix. Use this prefix (e.g., `mcp_stitch:`) for all subsequent calls. 2. **Project lookup** (if Project ID is not provided): - Call `[prefix]:list_projects` with `filter: "view=owned"` to retrieve all user projects - Identify the target project by title or URL pattern - Extract the Project ID from the `name` field (e.g., `projects/13534454087919359824`) 3. **Screen lookup** (if Screen ID is not provided): - Call `[prefix]:list_screens` with the `projectId` (just the numeric ID, not the full path) - Review screen titles to identify the target screen (e.g., "Home", "Landing Page") - Extract the Screen ID from the screen's `name` field 4. **Metadata fetch**: - Call `[prefix]:get_screen` with both `projectId` and `screenId` (both as numeric IDs only) - This returns the complete screen object including: - `screenshot.downloadUrl` - Visual reference of the design - `htmlCode.downloadUrl` - Full HTML/CSS source code - `width`, `height`, `deviceType` - Screen dimensions and target platform - Project metadata including `designTheme` with color and style information 5. **Asset download**: - Use `web_fetch` or `read_url_content` to download the HTML code from `htmlCode.downloadUrl` - Optionally download the screenshot from `screenshot.downloadUrl` for visual reference - Parse the HTML to extract Tailwind classes, custom CSS, and component patterns 6. **Project metadata extraction**: - Call `[prefix]:get_project` with the project `name` (full path: `projects/{id}`) to get: - `designTheme` object with color mode, fonts, roundness, custom colors - Project-level design guidelines and descriptions - Device type preferences and layout principles ## Analysis & Synthesis Instructions ### 1. Extract Project Identity (JSON) - Locate the Project Title - Locate the specific Project ID (e.g., from the `name` field in the JSON) ### 2. Define the Atmosphere (Image/HTML) Evaluate the screenshot and HTML structure to capture the overall "vibe." Use evocative adjectives to describe the mood (e.g., "Airy," "Dense," "Minimalist," "Utilitarian"). ### 3. Map the Color Palette (Tailwind Config/JSON) Identify the key colors in the system. For each color, provide: - A descriptive, natural language name that conveys its character (e.g., "Deep Muted Teal-Navy") - The specific hex code in parentheses for precision (e.g., "#294056") - Its specific functional role (e.g., "Used for primary actions") ### 4. Translate Geometry & Shape (CSS/Tailwind) Convert technical `border-radius` and layout values into physical descriptions: - Describe `rounded-full` as "P