Use when designing UI screens, generating component layouts, creating new pages, or needing design ideation. Triggers on tasks like "create a screen", "design a page", "generate UI", or when visual design decisions are needed before implementation.
Stitch MCP brings AI-powered UI design directly into your coding workflow. Generate designs from prompts, download production-ready HTML/Tailwind code, and convert to React components—all without leaving your IDE.
digraph stitch_decision {
"Need UI work?" [shape=diamond];
"New screen/page?" [shape=diamond];
"Redesigning existing UI?" [shape=diamond];
"Use Stitch" [shape=box, style=filled];
"Skip Stitch" [shape=box];
"Need UI work?" -> "New screen/page?" [label="yes"];
"Need UI work?" -> "Skip Stitch" [label="no"];
"New screen/page?" -> "Use Stitch" [label="yes"];
"New screen/page?" -> "Redesigning existing UI?" [label="no"];
"Redesigning existing UI?" -> "Use Stitch" [label="yes"];
"Redesigning existing UI?" -> "Skip Stitch" [label="no"];
}
Use Stitch for:
Don't use for:
Show me my Stitch projects.
List each screen under each project with its screen id.
Download the HTML code for the [Screen Name] screen in the [Project Name] project.
Use curl -L to download.
Create a file named ./tmp/[screen-name].html with the HTML code.
Download the image for the [Screen Name] screen in the [Project Name] project.
Use curl -L to download.
Create a file named ./tmp/[screen-name].png with the image.
The HTML serves as a translation base. Convert to project's component structure:
Convert this HTML to React components following our project patterns:
- Use shadcn/ui components where applicable
- Follow Next.js App Router conventions
- Keep Tailwind classes, adapt to our theme
- Split into logical component files
| Element | Purpose | Example | |---------|---------|---------| | Idea | What it is | "A booking confirmation screen" | | Theme | Visual style | "Modern, clean, uses brand colors" | | Content | Specific elements | "Show date, time, professional name, service details" | | Image | Reference (optional) | Upload existing screen as reference |
Idea: A booking confirmation screen for a service appointment app.
Theme: Modern, clean, light mode with subtle shadows.
Content:
- Success checkmark animation
- Appointment date/time prominently displayed
- Professional's name and photo
- Service name and duration
- "Add to Calendar" and "View Details" buttons
- Option to cancel or reschedule
Target one change at a time. Be specific:
Update the [specific element] on the [screen name].
[Specific visual instruction].
[UI/UX keyword for clarity].
Good: "Update the CTA button to be larger with more padding. Add a subtle shadow for depth."
Bad: "Make it look better."
| Mode | Best For | |------|----------| | Thinking with 3 Pro | Complex logic, production candidates | | Redesign (Nano Banana) | Modernizing old UIs, vibe-based workflows | | 2.5 Pro | High-fidelity HTML, A/B comparisons | | Fast | Rapid wireframing, Figma exports |
When converting Stitch HTML to this project:
frontend/src/components/[feature]/frontend/src/app/[route]/page.tsx<button> → <Button> from @/components/ui/button<input> → <Input> from @/components/ui/inputtailwind.config.ts| Mistake | Fix | |---------|-----| | Trying to perfect first prompt | Iterate! Get past blank page, then refine. | | Changing too many things at once | One major change per prompt. | | Generic prompts ("make it nice") | Use specific UI/UX keywords and targets. | | Forgetting to download both code AND image | Always get both for reference during conversion. | | Not using project component library | Map HTML to shadcn/ui equivalents. |
# List projects
"Show my Stitch projects with all screens and IDs"
# Get code
"Download HTML for [Screen] in [Project] to ./tmp/"
# Get image
"Download image for [Screen] in [Project] to ./tmp/"
# Convert
"Convert ./tmp/[screen].html to React components using shadcn/ui"
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer