Stitch::manage Design System
Manage design systems in Stitch using MCP tools. Includes retrieval of assets, creating/updating design systems in Stitch, and applying them to screens.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install google-labs-stitch-manage-design-systemManual setup by platform
Claude Code
~/.claude/skills/google-labs-stitch-manage-design-system/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Design-System
Create a "source of truth" for your project's design language to ensure
consistency across all future screens.
[!NOTE]
Refer to your system prompt for instruction on handling MCP tool prefixes for
all tools mentioned in this skill (e.g.,get_screen,
create_design_system_from_design_md,apply_design_system).
📥 Retrieval
To analyze a Stitch project, you must retrieve metadata and assets using the
Stitch MCP tools:
- Project lookup: Use
list_projectsto find the targetprojectId. - Screen lookup: Use
list_screensfor thatprojectIdto find
representative screens (e.g., "Home", "Main Dashboard"). - Metadata fetch: Call
get_screenfor the target screen to get
screenshot.downloadUrlandhtmlCode.downloadUrl. - Asset download: Use
read_url_contentto fetch the HTML code.
🧠 Synthesis from Description
If you need to extract a design system from existing screens, use the design-md skill (in the stitch-utilities plugin).
If there are no existing screens (new project), or the user provides a direct description (e.g., "dark theme, blue and purple, rounded, Inter font"):
- Map the user's vague terms to precise values using the design mappings (see
design-mdskill institch-utilitiesorgenerate-designskill). - Select concrete hex codes, font families, and roundness values.
- Generate the
DESIGN.mdfile (refer to thedesign-mdskill institch-utilitiesfor structure). - Proceed to the "Create or Update Design System in Stitch" step below.
📝 Output Structure
The DESIGN.md file should follow the structure defined in the design-md skill (in the stitch-utilities plugin).
🚀 Create or Update Design System in Stitch
After generating .stitch/DESIGN.md, make sure to also create or update the
design system in Stitch.
Two-step design system creation:
[!WARNING]
Checkpoint — User Confirmation Required.
Before uploading, you MUST pause and ask the user for
confirmation. Present a summary of the design system you are about to create
(display name, key colors, fonts, and roundness) and wait for explicit approval
before proceeding. Do NOT upload until the user confirms.
- Upload
DESIGN.md:-
Option A (Recommended - Uploader Script): Use the modified
upload-to-stitchPython script which natively handles.mdfiles. It base64-encodes the markdown file in-process and sends it to the/v1/projects/{projectId}/screens:batchCreateendpoint, bypassing output token limits.python3 stitch-skills/plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py \ --project-id <PROJECT_ID> \ --file-path /path/to/DESIGN.md \ --api-key <API_KEY> \ --generated-by <GENERATED_BY>Set
<GENERATED_BY>to identify the skill or tool that produced the
DESIGN.md. Use the calling skill name when invoked from another skill
(e.g.stitch::code-to-design), or the agent/tool name for standalone
use (e.g.Gemini,Claude Code). If omitted, the script defaults to
UserUploadedDesignMd.This returns the
sourceScreenID and thescreenInstanceID. -
Option B (Direct MCP Tool): If the
DESIGN.mdis small (under ~5KB), you can call theupload_design_mdMCP tool directly, passing the base64-encoded design markdown content asdesignMdBase64.
-
- Create Design System: Call the
create_design_system_from_design_mdtool immediately after the upload, passing theprojectIdand theselectedScreenInstance(containing theidandsourceScreenreturned from the upload step).
Once the upload script and create_design_system_from_design_md have both completed,
Stitch holds the design tokens at the project level — you do NOT need to repeat
them in generation prompts.
🎨 Apply Design System to Screens
Use apply_design_system to apply a design system to existing screens.
[!IMPORTANT]
selectedScreenInstancesmust contain onlyidandsourceScreen— do
NOT include position/dimension fields (x,y,width,height) or the
request will fail with "invalid argument". Get the screen instance IDs from
get_project.
{
"projectId": "...",
"assetId": "...",
"selectedScreenInstances": [
{
"id": "...",
"sourceScreen": "projects/.../screens/..."
}
]
}
How to get the required IDs:
- Call
get_projectto retrievescreenInstances— each has anidand
sourceScreen. - Call
list_design_systemsto retrieve the design systemname(format:
assets/{assetId}) — use the part afterassets/as theassetId. - Filter out any instances with
type: "DESIGN_SYSTEM_INSTANCE"— only pass
real screens.
📋 Update Project Metadata
After writing .stitch/DESIGN.md, also create or update .stitch/metadata.json
to track the projectId, title, all known screens, and design system summary.
See examples/metadata.json for the format.
Schema Reference
See reference/tool-schema.md for the full
designSystem object schema with all available options.
💡 Best Practices
Refer to the design-md skill (in the stitch-utilities plugin) for best practices on describing design elements.
Security
Reviews (0)
Related skills
Browse all →More from Google Labs
View source →More Build skills
Browse category →Frequently asked questions about stitch::manage-design-system
What does the stitch::manage-design-system skill do?
Manage design systems in Stitch using MCP tools. Includes retrieval of assets, creating/updating design systems in Stitch, and applying them to screens. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the stitch::manage-design-system skill?
Run `npx @skills-hub-ai/cli install google-labs-stitch-manage-design-system` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-labs-stitch-manage-design-system/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does stitch::manage-design-system work with?
stitch::manage-design-system runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the stitch::manage-design-system skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use stitch::manage-design-system after installing it?
In Claude Code, type `/google-labs-stitch-manage-design-system` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the stitch::manage-design-system skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.