react-components
Converts Stitch designs into modular Vite and React components, or syncs/updates existing React components to align with the latest Stitch designs, using…
Generate new screens from text prompts or images, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional UI/UX terminology, design tokens and theme system
$ npx -y skills add google-labs-code/stitch-skills --skill generate-design --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/generate-designContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate new screens from text prompts or images, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional UI/UX terminology, design tokens and theme system
name: stitch::generate-design description: >- Generate new screens from text prompts or images, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional UI/UX terminology, design tokens and theme system capabilities. allowed-tools: - "stitch*:*" - "Bash" - "Read" - "Write" - "web_fetch"
Create new design screens from text descriptions, images, or mockups, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP.
> [!NOTE] > Refer to your system prompt for instruction on handling MCP tool prefixes for > all tools mentioned in this skill (e.g., `list_projects`, > `generate_screen_from_text`, `edit_screens`).
Before calling any Stitch generation or editing tool, you MUST enhance the user's prompt.
suitable project exists, create one using `create_project`.
`list_design_systems`. If one exists, design tokens (colors, fonts, roundness) are already applied at the project level — do NOT include any color, font, or theme instructions in the generation prompt. If none exists, delegate to the **manage-design-system** skill first before generating screens.
Consult [Design Mappings](references/design-mappings.md) to replace vague terms.
logo"
Use [Prompting Keywords](references/prompt-keywords.md) for component names, adjective palettes, color roles, and shape descriptions.
Format the enhanced prompt for Stitch. Focus exclusively on **layout, content, and structure** — never include colors, fonts, or theme instructions (these are handled by the manage-design-system skill at the project level).
For **new screens**, use this template:
[Overall purpose and user intent of the page] **PLATFORM:** [Web/Mobile], [Desktop/Mobile]-first **PAGE STRUCTURE:** 1. **Header:** [Description of navigation and branding] 2. **Hero Section:** [Headline, subtext, and primary CTA] 3. **Primary Content Area:** [Detailed component breakdown] 4. **Footer:** [Links and copyright information]
For **edits**, be specific about what to change:
'Learn More'."
> [!CAUTION] > Do NOT include hex codes, font names, color palettes, roundness values, or > any design system tokens in a **generation** prompt. These are applied at the > project level by the manage-design-system skill and will conflict if > duplicated. (For **edit** prompts, hex codes are acceptable for precise > color adjustments.)
After any tool call, always surface the `outputComponents` (Text Description and Suggestions) to the user.
See [examples/enhanced-prompt.md](examples/enhanced-prompt.md) for a full before/after prompt enhancement example.
--------------------------------------------------------------------------------
Decide which flow to use based on the user's request:
---
Apply the Prompt Enhancement Pipeline above.
Use `list_projects` to find the correct `projectId` if it is not already known.
Call the `generate_screen_from_text` tool with the enhanced prompt and the `designSystem` ID (if found in Step 1).
{
"projectId": "...",
"prompt": "[Your Enhanced Prompt]",
"designSystem": "assets/...", // Optional: Pass if found in Step 1
"deviceType": "DESKTOP" // Options: MOBILE, DESKTOP, TABLET
}Always show the text description and suggestions from `outputComponents` to the user.
After generation, download the HTML and screenshot urls from `outputComponents` to the `.stitch/designs` directory.
to make targeted adjustments.
---
Use this flow when the user provides an image, screenshot, or design mockup to recreate in Stitch.
Use `list_projects` to find the correct `projectId`. If no suitable project exists, create one using `create_project`.
Delegate to the **upload-to-stitch** skill to upload the image to the project. This creates a new screen with the image as its content.
Once uploaded, use `list_screens` to find the newly created `screenId`, then call `edit_screens` with a descriptive prompt to refine the design:
{
"projectId": "...",
"selectedScreenIds": ["<uploaded-screen-id>"],
"prompt": "[Describe what to adjust, enhance, or recreate from this mockup]"
}> [!TIP] > For best results, describe the intent behind the image rather than j
A collection of agent skills and plugins for Google Stitch, following the Agent Skills open standard. Compatible with coding agents such as Codex, Antigravity, Gemini CLI, Claude Code, Cursor, and OpenCode (manual install).
Repo: google-labs-code/stitch-skills
Converts Stitch designs into modular Vite and React components, or syncs/updates existing React components to align with the latest Stitch designs, using…
Convert Stitch HTML designs to React Native components, or syncs/updates existing native components to align with the latest Stitch designs, using StyleSheet.
Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).
Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best…
Convert frontend code (Vite, React, Angular, Vue, etc.) to a Stitch Design by chaining static HTML extraction, design system extraction, and file upload.…