Agent skill · Stitch Skills
/generate-design Generate and refine Stitch screens from better prompts
generate-design is the core Stitch design skill. Before any generation call, the agent rewrites your request into a structured prompt with platform and page sections, leaving colours and fonts to the project's design system. It then creates screens from text or an image, applies targeted edits or produces variants, and saves the resulting HTML and screenshots locally.
Works with
- Codex
- Claude Code
- Cursor
- Any Agent Skills host
- OpenCode
When to use it
- You want a new web or mobile screen in Stitch from a short description.
- You have a mockup or screenshot and want Stitch to rebuild it as an editable design.
- You want several layout or colour variations of an existing screen to compare.
How it works
- 1Check context
The agent finds or creates the Stitch project and checks for a design system, handing off to manage-design-system first if none exists.
- 2Enhance the prompt
It swaps vague wording for precise UI terms and structures the prompt by platform and page sections, keeping hex codes and fonts out of generation prompts.
- 3Pick a flow
It chooses between generating from text, uploading an image then editing it, editing an existing screen, or generating one to five variants at a chosen creative range.
- 4Show feedback and save
After each call it shows Stitch's description and suggestions, then downloads HTML and screenshots into .stitch/designs.
- 5Refine by editing
It prefers focused edit prompts over regenerating and updates .stitch/metadata.json when screens change.
What it steers the agent away from
- Putting colours and fonts in generation prompts where they clash with the design system
- Regenerating a whole screen when a targeted edit would do
- Hiding Stitch's own suggestions from you
Install this skill
It installs with the Stitch Skills pack.
CodexAdds the marketplace; then install stitch-design, stitch-build and stitch-utilities as needed. The sparse flags are optional.
codex plugin marketplace add google-labs-code/stitch-skills --ref main \
--sparse .agents/plugins \
--sparse plugins/stitch-design \
--sparse plugins/stitch-build \
--sparse plugins/stitch-utilitiesClaude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-codeCursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursorAny Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skillsOpenCodeCopy each skill folder by hand and add the Stitch MCP server as a remote entry in opencode.json; skills named stitch::… need renaming to kebab-case.
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-designCommands come from the author’s README; check it for changes before you run them.
Questions
Does it need the Stitch MCP server?
Yes. Every flow depends on Stitch MCP tools, for example the ones that list projects, generate a screen from text, edit screens and create variants.
Can I use exact colours?
In edit prompts, yes; hex values are allowed there. New screens take their colours from the project's design system instead.
More guides from Stitch Skills
/react-componentsTurn Stitch screens into modular, validated React codeConverts Stitch screens into modular Vite and React components with hooks, mock data, typed props and an AST validator.Read the guide →/remotionMake a walkthrough video from your Stitch screensProduces a walkthrough video of a Stitch project's screens in Remotion with transitions, zooms and text overlays.Read the guide →/extract-design-mdReverse-engineer a design system from frontend sourceBuilds a Stitch-ready DESIGN.md from frontend source files, Tailwind configs and theme tokens without running the app.Read the guide →/stitch-loopBuild a multi-page site with an autonomous Stitch loopBuilds a site page by page in Stitch, passing a baton file between iterations and wiring each new page into navigation.Read the guide →
Also in this pack
/react-nativeTranslates Stitch HTML designs into React Native components with StyleSheet, a shared theme file and native navigation.↗/react-vite-dashboardTurns Stitch screens into data-dense React and Vite dashboards using TanStack Query, DESIGN.md tokens and optional ethers or viem reads.↗/shadcn-uiGuides finding, installing and customising shadcn/ui components through the shadcn MCP tools and CLI.↗/code-to-designMoves an existing web app into Stitch by snapshotting it as static HTML, deriving its DESIGN.md and uploading both.↗/extract-static-htmlCaptures a running app as one self-contained HTML file with inlined CSS and images, via Puppeteer or a browser agent.↗/design-mdReads an existing Stitch project's screens and writes a DESIGN.md describing its look in Stitch-friendly language.↗/site-mdDrafts a .stitch/SITE.md with mission, visual vibe, sitemap and roadmap to drive the multi-page build loop.↗/taste-designWrites a DESIGN.md with strict anti-generic rules for type, colour, asymmetric layout and motion to steer Stitch output.↗
Summary by trendhub. The skill itself lives in google-labs-code/stitch-skills/plugins/stitch-design/skills/generate-design by Google Labs Code (Apache-2.0); read the full, current text there.