Skills Prompts Hues

Popular categories

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

  1. 1
    Check 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.

  2. 2
    Enhance 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.

  3. 3
    Pick 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.

  4. 4
    Show feedback and save

    After each call it shows Stitch's description and suggestions, then downloads HTML and screenshots into .stitch/designs.

  5. 5
    Refine 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-utilities
Claude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
CursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursor
Any Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skills
OpenCodeCopy 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-design

Commands 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

Also in this pack

All 16 skills →

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.