stitch-design-md
Skill45 starsChanged 8 months agoApache-2.0View on GitHub
Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and Stitch-ready prompt snippets. Use this before stitch-loop or any multi-page build to establish design consistency.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- jh941213/my-cc-harnesstheir own version, first seen Jul 27, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- jh941213/my-cc-harness★ 126same name
- PracticalSwan/agent-skills★ 18same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- stitch-a11ySkill
- stitch-animateSkill
- stitch-design-systemSkill
- stitch-html-componentsSkill
- stitch-ideateSkill
- stitch-loopSkill
- stitch-mcp-apply-design-systemSkill
- stitch-mcp-create-design-system-from-design-mdSkill
- stitch-mcp-create-design-systemSkill
- stitch-mcp-create-projectSkill
- stitch-mcp-delete-projectSkill
- stitch-mcp-edit-screensSkill
- stitch-mcp-generate-screen-from-textSkill
- stitch-mcp-generate-variantsSkill
- stitch-mcp-get-projectSkill
- stitch-mcp-get-screenSkill
- stitch-mcp-list-design-systemsSkill
- stitch-mcp-list-projectsSkill
- stitch-mcp-list-screensSkill
- stitch-mcp-update-design-systemSkill
- stitch-mcp-upload-design-mdSkill
- stitch-nextjs-componentsSkill
- stitch-orchestratorSkill
- stitch-react-componentsSkill
- stitch-react-native-componentsSkill
- stitch-remotionSkill
- stitch-setupSkill
- stitch-shadcn-uiSkill
- stitch-skill-creatorSkill
- stitch-svelte-componentsSkill
- stitch-swiftui-componentsSkill
- stitch-ued-guideSkill
- stitch-ui-design-spec-generatorSkill
- stitch-ui-design-variantsSkill
- stitch-ui-prompt-architectSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 3 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Constraint: Only use this skill when the user explicitly mentions "Stitch" or when preparing design system documentation for Stitch …
- Very specific: line 23
Use stitch-design-md first if you're building more Stitch screens.
- Very specific: line 36
If the user pastes a Stitch design URL like …
- Very specific: line 41
Call [prefix]:get_screen with those IDs
- Very specific: line 46
Run list_tools → find the Stitch MCP prefix
- Very specific: line 47
Call [prefix]:list_projects with filter: "view=owned" → select project by title → extract numeric ID
- Very specific: line 48
Call [prefix]:list_screens with projects/[projectId] → pick the representative screen
- Very specific: line 49
Call [prefix]:get_screen with numeric projectId and screenId
- Very specific: line 50
Call [prefix]:get_project with projects/[projectId] → get full designTheme including:
- Very specific: line 83
If designTheme.description exists, use it as the starting point.
- Very specific: line 94
If
namedColorsis available fromget_project: Use it as the authoritative color source. - Very specific: line 96
If
backgroundLight/backgroundDarkare available: Use them as the canonical background colors for light/dark modes. - Distinctive: line 141
Use this exact structure:
- Distinctive: line 211
Functional roles matter: Don't just name the color — say what it does
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stitch → DESIGN.md
Constraint: Only use this skill when the user explicitly mentions "Stitch" or when preparing design system documentation for Stitch generation.
You are an expert Design Systems Lead. Your job is to analyze Stitch project assets and synthesize a Semantic Design System into a file named DESIGN.md — written in natural language, not CSS.
When to use this vs. stitch-design-system
| Skill | What it produces | Use it for |
stitch-design-md | Natural-language DESIGN.md | Feeding back into Stitch prompts; multi-page visual consistency; design docs |
stitch-design-system | design-tokens.css, tailwind-theme.css, DESIGN.md | Code-level theming for Next.js, Svelte, React, HTML output |
Use stitch-design-md first if you're building more Stitch screens. Use stitch-design-system when you're converting to code.
Prerequisites
- Stitch MCP Server configured
- A Stitch project with at least one designed screen
Step 1: Retrieve the design
If the user provides a Stitch URL
If the user pastes a Stitch design URL like https://stitch.withgoogle.com/projects/3492931393329678076?node-id=375b1aadc9cb45209bee8ad4f69af450:
- Parse the URL:
projectId= segment after/projects/and before?(e.g.3492931393329678076)screenId= query paramnode-id(e.g.375b1aadc9cb45209bee8ad4f69af450)
- Call
[prefix]:get_screenwith those IDs - Skip ahead to Step 2
If project/screen IDs are unknown
- Run
list_tools→ find the Stitch MCP prefix - Call
[prefix]:list_projectswithfilter: "view=owned"→ select project by title → extract numeric ID - Call
[prefix]:list_screenswithprojects/[projectId]→ pick the representative screen - Call
[prefix]:get_screenwith numericprojectIdandscreenId - Call
[prefix]:get_projectwithprojects/[projectId]→ get fulldesignThemeincluding:- Core:
colorMode,customColor,colorVariant,roundness,spacingScale - Fonts:
headlineFont,bodyFont,labelFont - Colors:
namedColors(40+ semantic tokens), override colors - Documentation:
designMd(auto-generated design system — if present, use as foundation for DESIGN.md) - Backgrounds:
backgroundLight,backgroundDark
- Core:
Download the assets
# Download the HTML for color and Tailwind class analysis
bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "temp/source.html"Parse the HTML for:
- Tailwind utility classes (colors, typography, spacing, shadows)
- Inline
tailwind.configblock (custom tokens) - CSS variables
Step 2: Analyze the design
Work through these layers systematically:
2.1 Project identity
- Project title and numeric ID (from
namefield) deviceType(MOBILE / DESKTOP / TABLET / AGNOSTIC)designTheme.headlineFont,designTheme.bodyFont,designTheme.labelFont(font roles)designTheme.roundness,designTheme.colorMode,designTheme.colorVariantdesignTheme.spacingScale(0=minimal, 1=compact, 2=normal, 3=spacious)
2.2 Visual atmosphere
If designTheme.description exists, use it as the starting point. If designTheme.designMd exists, it contains a full design system document — extract the creative direction, do's/don'ts, and component philosophy from it.
Then describe the aesthetic in 2–3 sentences. Go beyond generic adjectives — what does it feel like? What editorial or product category does it evoke?
Examples:
- "Sophisticated minimalist sanctuary — gallery-like spaciousness, photography-first, Scandinavian calm"
- "High-density productivity tool — information-first, sharp edges, focused contrast"
- "Warm artisanal brand — handcrafted feel, organic textures, generous breathing room"
2.3 Color palette
If namedColors is available from get_project: Use it as the authoritative color source. It provides 40+ semantic tokens (primary, secondary, tertiary, surface hierarchy, error states, inverse variants). Map these directly to palette documentation instead of guessing from HTML.
If backgroundLight/backgroundDark are available: Use them as the canonical background colors for light/dark modes.
For each key color, write:
[Descriptive name] ([hex]) — [functional role]Example:
Deep Muted Teal-Navy (#294056) — Primary actions, links, active states
Warm Barely-There Cream (#FCFAFA) — Page background
Charcoal Near-Black (#2C2C2C) — Headlines and product names
Soft Warm Gray (#6B6B6B) — Body copy and metadataAim for 4–6 colors. Include light AND dark mode backgrounds if both present.
2.4 Typography
- Font family name (from
designTheme.fontor Tailwind class) - Weight scale (what's used for display, section headers, body, labels)
- Any notable letter-spacing, line-height, or size conventions
2.5 Shape and geometry
Translate Tailwind classes to descriptive language:
rounded-full→ "Pill-shaped"rounded-lg(12px) → "Gently rounded corners"rounded-md(8px) → "Subtly rounded corners"rounded-none→ "Sharp, squared-off edges"
2.6 Depth and elevation
Describe shadow presence and style:
shadow-none→ "Flat, no shadow"shadow-sm→ "Whisper-soft diffused shadow"shadow-lg→ "Prominent floating elevation"
2.7 Layout principles
- Max content width, grid columns, breakpoint behavior
- Base spacing unit (4px / 8px system)
- Section margins and padding patterns
- Touch target sizes (if mobile)
Step 3: Write DESIGN.md
Use this exact structure:
# Design System: [Project Title]
**Project ID:** [numeric ID]
**Device:** [MOBILE / DESKTOP / TABLET / AGNOSTIC]
## 1. Visual Theme & Atmosphere
[2–3 sentences describing the overall aesthetic and mood]
## 2. Color Palette & Roles
- **[Descriptive Name]** ([#hex]) — [Functional role]
- **[Descriptive Name]** ([#hex]) — [Functional role]
[...4–6 colors total]
## 3. Typography Rules
**Primary Font:** [Name] — [One-line character description]
- **Display (H1):** [weight], [size range]
- **Section (H2):** [weight], [size range]
- **Body:** [weight], line-height [value], [size]
- **Labels/Captions:** [weight], [size]
## 4. Component Stylings
- **Buttons:** [shape (Xpx radius)], [color], [padding]; hover [behavior]
- **Cards/Containers:** [roundness (Xpx)], [background], [shadow]; hover [behavior]
- **Inputs/Forms:** [border style], [background], [roundness], [focus behavior]
## 5. Layout Principles
- Max content width: [value]; [grid description]; [column behavior at breakpoints]
- Base spacing unit: [4px/8px]; section margins [range]; touch targets [size]
## 6. Design System Notes for Stitch Generation
[This section is copy-paste ready for new Stitch prompts]
When creating new screens:
- **Atmosphere:** "[Quote the atmosphere description from Section 1]"
- **Colors:** Always use descriptive name + hex (e.g. "[Name] ([#hex])")
- **Shape:** "[Describe buttons and cards using the language from Section 4]"
- **Spacing:** "[Describe the whitespace/density philosophy]"
- **Font:** [Font name] — [one-line descriptor]Step 4: Integration
Tell the user what to do with it:
## DESIGN.md created
Saved to: ./DESIGN.md
**How to use it:**
1. **More Stitch screens:** Copy Section 6 into the DESIGN SYSTEM block of your next Stitch prompt.
This keeps every new screen visually consistent with your existing design.
2. **Multi-page build with stitch-loop:** Include Section 6 in every `next-prompt.md` baton file.
3. **Code conversion:** Hand off to `stitch-design-system` when you're ready to generate
`design-tokens.css` and `tailwind-theme.css` for your framework.Best practices
- Descriptive over technical: "Ocean-deep Cerulean (#0077B6)" not just "blue"
- Functional roles matter: Don't just name the color — say what it does
- Section 6 is the payoff: This is the copy-paste block that makes every future screen consistent
- Be precise: Exact hex codes always. Vague approximations ("kind of warm beige") are useless
Common pitfalls
- Leaving
rounded-xlin the doc instead of translating to "generously rounded corners (12px)" - Listing colors without functional roles
- Skipping the font weight scale (just saying "Manrope" doesn't tell you when to use 400 vs 600)
- Writing Section 6 without the actual hex codes — useless for Stitch
References
examples/usage.md— Worked examplesexamples/DESIGN.md— Complete sample output for a furniture e-commerce sitedocs/color-prompt-guide.md— 8 ready-to-use color palettes for inspirationscripts/fetch-stitch.sh— Reliable HTML downloader for GCS URLs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

