stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Generates a high-fidelity UI screen or wireframe from a text prompt using Stitch. This is the core text-to-UI generation tool — the heart of the Stitch workflow.
$ npx -y skills add gabelul/stitch-kit --skill stitch-mcp-generate-screen-from-text --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-mcp-generate-screen-from-textContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates a high-fidelity UI screen or wireframe from a text prompt using Stitch. This is the core text-to-UI generation tool — the heart of the Stitch workflow.
name: stitch-mcp-generate-screen-from-text description: Generates a high-fidelity UI screen or wireframe from a text prompt using Stitch. This is the core text-to-UI generation tool — the heart of the Stitch workflow. allowed-tools: - "stitch*:*"
Generates a UI design screen from a structured text prompt. This is the central action in any Stitch workflow — everything before it (spec generation, prompt assembly) is preparation, and everything after it (screen retrieval, code conversion) is follow-through.
**Only use this skill when the user explicitly mentions "Stitch" or when called from an upstream skill (e.g. stitch-ideate, stitch-orchestrator).**
You must have a `projectId` before calling this. If you don't have one:
{
"name": "generate_screen_from_text",
"arguments": {
"projectId": "3780309359108792857",
"prompt": "[Full structured prompt — see below]",
"deviceType": "MOBILE",
"modelId": "GEMINI_3_1_PRO",
"designSystem": "assets/15996705518239280238"
}
}✅ "assets/15996705518239280238" ❌ "15996705518239280238"
This is how you get design consistency across generated screens — pass the `name` of a design system from `stitch-mcp-create-design-system`, `stitch-mcp-create-design-system-from-design-md`, or `stitch-mcp-list-design-systems` (used as-is, with the `assets/` prefix). This is the opposite format from `apply_design_system`'s `assetId`, which wants the prefix stripped.
✅ "3780309359108792857" ❌ "projects/3780309359108792857"
[Context & Style] [Device] [Mode] [screen type] for [product]. [aesthetic]. [theme]. [colors]. [font]. [Layout] [Describe the structural arrangement] [Components] [Specific named UI components with details]
For best results, use the `stitch-ui-prompt-architect` skill to assemble the prompt before calling this tool.
| Value | Use when | |-------|---------| | `MOBILE` | Mobile app, phone-sized UI (default if uncertain) | | `DESKTOP` | Web dashboard, landing page, SaaS UI | | `TABLET` | Tablet-specific layout | | `AGNOSTIC` | Not tied to a specific device — responsive/fluid layout |
| Value | Use when | |-------|---------| | `GEMINI_3_1_PRO` | **Recommended** — complex layouts, high fidelity | | `GEMINI_3_FLASH` | Fast iteration, wireframes, simple changes | | `GEMINI_3_PRO` | **Deprecated.** Still works but will be removed. Use `GEMINI_3_1_PRO` instead. |
This tool returns session info but **not the actual screenshot/HTML**. To retrieve the design: 1. Call `stitch-mcp-list-screens` with `projects/[projectId]` to find the new screen 2. Call `stitch-mcp-get-screen` with the `projectId` and `screenId` to get the screenshot and HTML
Before calling this tool, verify the prompt:
When the prompt is a **complete PRD document** (product overview, design system, multiple screen specifications, build guide), Stitch will generate **multiple screens in a single call** — not just one. Stitch generates up to 10 screens per call. A PRD with 8 screen specs typically produces 5-7 screens automatically.
This is the same mechanism Stitch's web Ideate uses for "generate all screens". The PRD format acts as a comprehensive prompt that Stitch decomposes internally.
**How to use batch generation:** 1. Send the full PRD text as the `prompt` parameter 2. Stitch generates up to ~10 screens per call from a multi-screen PRD 3. Two possible outcomes depending on whether the MCP response times out:
**If response returns with data:**
**If response returns empty (HTTP timeout):**
Stitch generation takes 60–180 seconds for single screens and up to 5 minutes for multi-screen PRD generation. This is normal behavior, not a timeout.
Your coding agent writes decent code and designs terrible UI. stitch-kit fixes the second half — it wires agents into Google Stitch (text prompts → genuinely beautiful screens) and teaches them to drive it properly.
Repo: gabelul/stitch-kit
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects…
Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and…
Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic…
Converts a Stitch screen, a local HTML file, or a URL into clean, platform-agnostic HTML5 + CSS — semantic markup, CSS custom properties for theming, dark mode…
Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich…