stitch-mcp-create-design-system-from-design-md
Skill45 starsChanged 8 months agoApache-2.0View on GitHub
Creates a Stitch Design System from a DESIGN.md that was already uploaded with stitch-mcp-upload-design-md. Second half of a two-step pair — the upload must happen first.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- stitch-a11ySkill
- stitch-animateSkill
- stitch-design-mdSkill
- stitch-design-systemSkill
- stitch-html-componentsSkill
- stitch-ideateSkill
- stitch-loopSkill
- stitch-mcp-apply-design-systemSkill
- 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
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Never on its own
≈ “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 MCP — Create Design System from DESIGN.md
Turns an uploaded DESIGN.md into a real Stitch Design System and displays it in the UI. This is step two of a pair — stitch-mcp-upload-design-md must have run first, because this tool consumes the screen instance that upload created.
Calling it without a prior upload fails: there's no screen instance to point at.
Critical prerequisite
Only use this skill when the user explicitly mentions "Stitch" in their request. Never trigger Stitch operations silently during regular conversation.
When to use
- Immediately after
stitch-mcp-upload-design-mdreturns — always, as a pair - Never on its own
Step 1: Confirm you have the screen instance
You need two values from the upload step. If you didn't capture them, fetch them now with get_project (note: this one takes the projects/ prefix):
{
"name": "get_project",
"arguments": { "name": "projects/3780309359108792857" }
}Take the newest entry in screenInstances and read off both id and sourceScreen.
Step 2: Call the MCP tool
{
"name": "create_design_system_from_design_md",
"arguments": {
"projectId": "3780309359108792857",
"selectedScreenInstance": {
"id": "a1b2c3d4e5f6",
"sourceScreen": "projects/3780309359108792857/screens/98b50e2ddc9943efb387052637738f61"
},
"deviceType": "DESKTOP"
}
}Three different ID formats in one call. This is the single easiest place to get it wrong:
| Field | Format | Example |
projectId | numeric only, no prefix | 3780309359108792857 |
selectedScreenInstance.id | screen instance id — not the source screen id | a1b2c3d4e5f6 |
selectedScreenInstance.sourceScreen | full resource path, both prefixes | projects/.../screens/... |
deviceType is optional: MOBILE, DESKTOP, TABLET, or AGNOSTIC. Omit it and Stitch decides.
Step 3: Confirm and capture the asset id
On success you get back a design system with an asset id in assets/NUMERIC_ID form. Store both forms: apply_design_system wants the bare numeric part, generate_screen_from_text's designSystem param wants the full assets/NUMERIC_ID string.
Announce it:
"Design system created from your DESIGN.md (asset
15996705518239280238). Want me to apply it to existing screens, or use it for the next generation?"
Step 4: Put it to work
- Apply to existing screens →
stitch-mcp-apply-design-system - Use for new screens → pass
designSystem: "assets/15996705518239280238"togenerate_screen_from_text
ID format rules (critical — different tools need different formats)
| Tool | ID format required |
create_design_system_from_design_md | Numeric projectId + the screen-instance pair above |
upload_design_md | Numeric only: 3780309359108792857 |
apply_design_system | Numeric assetId, no assets/ prefix |
generate_screen_from_text | designSystem does take the assets/ prefix |
get_project | Full path: projects/3780309359108792857 |
Yes —
apply_design_systemwants the bare asset id whilegenerate_screen_from_textwants it prefixed. Same identifier, two formats, depending on which tool you hand it to.
Integration
- Preceded by
stitch-mcp-upload-design-md, always - Followed by
stitch-mcp-apply-design-systemor a generation call - List what already exists with
stitch-mcp-list-design-systems
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.

