stitch-mcp-generate-screen-from-text
$
npx mdskill add partme-ai/full-stack-skills/stitch-mcp-generate-screen-from-textGenerates UI screens from text descriptions using Stitch MCP for design and visualization tasks.
- Helps users create, design, or visualize high-fidelity wireframes or screens from textual input.
- Integrates with Stitch MCP tools, specifically the generate_screen_from_text function.
- Activates only when the user explicitly mentions Stitch in requests for UI generation.
- Delivers results as generated screens for specified device types like MOBILE or DESKTOP.
SKILL.md
.github/skills/stitch-mcp-generate-screen-from-textView on GitHub ↗
---
name: stitch-mcp-generate-screen-from-text
description: "Generate high-fidelity UI screens or wireframes from text descriptions via Stitch MCP generate_screen_from_text. Use when the user wants to create, design, or visualize a UI screen using Stitch. Supports MOBILE, DESKTOP, TABLET, and SMART_WATCH device types with Gemini Pro or Flash models."
license: Complete terms in LICENSE.txt
allowed-tools: "stitch*:*, Read, Write"
---
## Tools
This skill is designed to call the Stitch MCP tool:
* `generate_screen_from_text`
If your client namespaces MCP tools, it may appear as `mcp__<serverName>__generate_screen_from_text`.
## When to use this skill
**CRITICAL PREREQUISITE:**
**You must ONLY use this skill when the user EXPLICITLY mentions "Stitch".**
**ALWAYS use this skill when the user:**
- Describes a UI interface **and asks Stitch to generate it**.
- Asks to "Design", "Generate", "Create", or "Make" a screen **using Stitch**.
- Provides specific visual requirements ("Dark mode", "Blue button") for a Stitch generation.
- Wants to visualize a wireframe or concept **via Stitch**.
- Is in the **Step 5** of the `stitch-ui-designer` SOP workflow.
**Trigger phrases include:**
- "Use Stitch to design a screen" (用 Stitch 设计一个页面)
- "Stitch generate UI" (Stitch 生成 UI)
- "Draw a login page with Stitch" (用 Stitch 画一个登录页)
## Input Parameters
The skill expects you to extract the following information from the user request:
* **`projectId`** (required): The numeric Project ID. **Format**: Pure ID (e.g., `37803...`), **NO** `projects/` prefix.
* **`prompt`** (required): The structured text description of the screen (see "Constructing the Prompt" below).
* **`deviceType`** (optional): The target device.
* Values: `MOBILE` (default), `DESKTOP`, `TABLET`, `SMART_WATCH`.
* **`modelId`** (optional): The model to use.
* Values: `GEMINI_3_PRO` (Recommended for quality), `GEMINI_3_FLASH` (Speed).
## How to use this skill
### 0. Call the MCP Tool
Invoke `generate_screen_from_text` with:
* `projectId` (pure numeric string, no `projects/`)
* `prompt`
* `deviceType` (optional)
* `modelId` (optional)
### 1. Constructing the Prompt (The Art of Prompting)
The `prompt` argument is the most critical factor for quality. Do not just pass the user's raw input. You **MUST** enrich it using the **Structure Strategy**:
`[Device] [Mode] [Screen Type]. [Style]. [Layout]. [Components].`
* **Context**: "Mobile High-Fidelity login screen."
* **Style**: "Cyberpunk aesthetic. Dark mode. Neon blue accents."
* **Layout**: "Center-aligned vertical stack."
* **Components**: "Glitch-effect Logo. Input fields with glowing borders. Primary 'Jack In' button."
### 2. Choosing Device Type (`deviceType`)
* `MOBILE` (Default): Vertical layouts, ~375px width. Best for consumer apps.
* `DESKTOP`: Horizontal layouts, ~1440px width. Best for SaaS, Dashboards, Landing Pages.
* `TABLET`: Hybrid layouts.
* `SMART_WATCH`: Tiny, compact layouts.
### 3. Choosing Model (`modelId`)
* `GEMINI_3_PRO`: **Recommended**. High intelligence, better instruction following, superior aesthetics. Use for all complex/final designs.
* `GEMINI_3_FLASH`: Faster, lower cost. Good for simple wireframes or rapid iteration.
## Best Practices
1. **Detailed Components**: Don't just say "Form". Say "Form with Email, Password, and Eye toggle icon".
2. **Color Precision**: Mention specific colors (e.g., "Emerald Green", "#FF5733") if the user specifies them.
3. **Content Realism**: Ask for realistic text placeholders (e.g., "Welcome back, Alice" instead of "Lorem Ipsum").
4. **Device Alignment**: Ensure the `prompt` description matches the `deviceType` (e.g., don't ask for a "Sidebar" on `MOBILE`).
5. **No Code Generation**: This skill generates **Visual Designs**, not implementation code. Do not confuse with coding skills (like `uniappx-project-creator`).
## Output Handling
`generate_screen_from_text` returns session info (e.g., `sessionId` and `outputComponents`). It may not return a screenshot directly.
After the generation completes, retrieve the resulting screen(s) via:
1. `list_screens` with `projectId` in the format `projects/{id}`.
2. `get_screen` with the selected `screenId` to fetch screenshot / html assets.
## Keywords
**English keywords:**
generate screen, design ui, create interface, make page, draw wireframe, text to ui, ui generation, stitch gen, mobile design, desktop design, dashboard, login, prompt engineering
**Chinese keywords (中文关键词):**
生成页面, 设计UI, 创建界面, 画图, 制作网页, 文本生成UI, 界面设计, 移动端设计, 桌面端设计, 仪表盘, 登录页, 线框图, 生成代码
## References
- [Examples](examples/usage.md)
- [Desktop Dashboard Example](examples/desktop_dashboard.md)
- [Mobile App Example](examples/mobile_app.md)
- [Wireframe Example](examples/wireframe.md)
More from partme-ai/full-stack-skills
- adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
- angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
- ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
- ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
- ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
- ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
- ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
- api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
- appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
- ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."