generate-design

Generate screens from prompts or images, with design-token variants.

generate-design turns prompts or images into screens with token-based variants. Requires Stitch MCP.

Design & slidesagents 2Apache-2.0 downloadable Scan upstream repo ↗

What it is

Generates and edits screens in Stitch from text, images, or existing screens, then downloads the HTML and screenshots. It is for designers and frontend collaborators who already have Stitch MCP connected. It does not build design systems (it delegates to manage-design-system) and does not replace human visual review.

Core workflow

StageContent
TriggerA new screen from a description or reference image, an edit to an existing screen, or layout, colour, and content variants.
InputThe user prompt, an optional image or mockup, projectId, and an existing design-system ID.
StepsRun prompt enhancement: find the project and design system, replace vague wording with UI terms, keep only layout, content, and structure; call generate_screen_from_text or edit_screens by mode; surface outputComponents; download HTML and screenshots to .stitch/designs; switch to the edit flow when needed.
OutputThe new or edited screen, local HTML and screenshots, and an updated .stitch/metadata.json.
BoundaryGeneration prompts must not contain hex codes, fonts, or roundness tokens (edit prompts may use hex for precise colour); create a design system first if none exists.
Getting started: set up the design system before generating, and describe only layout and content in the prompt.

Traits

  • Four flows: generate from text, generate from image, edit, and variants.
  • Prompt enhancement is mandatory before generating: analyse the project, replace vague terms, structure the prompt.
  • After every tool call, surface the text description and suggestions in outputComponents.
  • When the result misses, edit rather than regenerate unless the fundamental layout is wrong.

Who it is for and who it is not for

Good fitPoor fit
Projects that already have Stitch and a design systemEnvironments without Stitch MCP
Producing MOBILE, DESKTOP, or TABLET screensOnly wanting a design-spec document
Landing results as local HTML and screenshotsOffline or fully local generation

How it differs

NeedUse
Generate or edit a screengenerate-design
Define tokens and theme firstmanage-design-system
Move existing code into Stitchcode-to-design
Only sharpen the wording of an ideaenhance-prompt

Source-level risks

RiskSourceImpact
Hard dependency on Stitch MCP and a remote serviceallowed-tools lists stitch*:* and tool namesThe flow cannot run without MCP
Tokens leaking into prompts conflict with project settingsCAUTION blockInconsistent output that must be redone
Remote assets fetched with curlDownload steps writing .stitch/designsNetwork or naming failures leave local assets missing
File ends mid-sentenceTail stops at “The metadata file trac”Metadata update rules are incomplete
Depends on external referencesreferences/design-mappings.md and othersMissing files leave term mapping unsupported

Example: input and output

Input

Generate three homepage directions for a scheduling tool.

Output

Outputs three screens with trade-offs.

需要 Stitch MCP。

FAQ

Without MCP?

No — you can only read the workflow.

Does it write code?

Screens only.

Common tasks

CategoryDesign & slides
Version2026-11-28
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
Dependenciesnone
Environment需要 Stitch MCP
Scriptsnone
LicenseApache-2.0
Sourcegoogle-labs-code/stitch-skills ↗
Verification✓ verified
Get itDownload zip
SHA256: bbf38b91c77b70c1fcdfcbee2dcf1d3a2b414914abdd296c6caf1e1b3cd0cc77 · 0.0 MB

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

Install
unzip google-labs-code-stitch-skills-generate-design-2026-11-28.zip -d ~/.claude/skills/

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.