Skip to main content

Google Stitch Integration

Overdeck integrates with Google Stitch, Google’s AI-powered UI design tool, enabling design-to-code workflows.

What is Google Stitch?

Google Stitch generates production-ready UI designs from natural language prompts or image inputs. It’s free (350 standard + 50 experimental generations/month) and requires only a Google account.

Setup (Optional)

Use the /pan-stitch skill to set up the integration:

How It Works

When Stitch is configured, the planning agent can:
  1. Create UI designs - Generate screens for UI-related issues
  2. Document in STATE.md - Record Stitch project/screen IDs for workers
  3. Worker agents pick up designs - Use the Stitch skills to convert to React

Bidirectional Sync

Designs are stored in your Google account and sync bidirectionally:
  • MCP → Web UI: Designs created by agents appear in Stitch web UI
  • Web UI → MCP: Designs created in web UI are accessible to agents
  • Edit anywhere: Refine AI-generated designs in the web UI before workers convert them

Available MCP Tools

Stitch Skills

STATE.md Integration

When planning UI work, add a Stitch section to STATE.md:

Workflow: From Design to Code

1. Planning Phase

During issue planning, the planning agent can create designs:

2. Implementation Phase

The implementation agent picks up the design:

3. Iteration

If the design needs changes:
  1. Open https://stitch.withgoogle.com
  2. Find your project and screen
  3. Edit using the visual tools
  4. Re-run /stitch-react-components to get updated code

Manual Workflow (No MCP)

If you prefer not to set up the MCP:
  1. Design at https://stitch.withgoogle.com
  2. Export HTML/CSS from the UI
  3. Use /stitch-react-components with the exported files

Best Practices

Design Quality

  • Be specific in prompts - Include details about colors, spacing, and layout
  • Use device types - Specify MOBILE or DESKTOP for appropriate layouts
  • Iterate in the web UI - Fine-tune designs visually before converting

Code Quality

  • Review generated code - AI-generated components may need cleanup
  • Extract common components - Don’t duplicate similar UI elements
  • Follow project conventions - Adapt generated code to match your style guide

Team Collaboration

  • Share Stitch projects - Multiple team members can access the same designs
  • Document decisions - Note why specific design choices were made in STATE.md
  • Version control DESIGN.md - Track design evolution alongside code changes

Troubleshooting

”Permission denied” errors

Make sure you’ve authenticated with gcloud:

“API not enabled” errors

Enable the Stitch API:

MCP not connecting

Verify the MCP is registered:
Should show stitch in the list.