본문으로 건너뛰기
cccskills
무료GitHub에 공개

stitch-mcp-generate-screen-from-text

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(3)

  • SKILL.md5.9 KB
  • examples/desktop.md2.8 KB
  • examples/mobile.md3.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Stitch MCP — Generate Screen from Text

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.

Critical prerequisite

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:

  • Create a new project via stitch-mcp-create-project
  • Or find an existing project via stitch-mcp-list-projects

When to use

  • User asks to "design", "generate", "create", or "make" a screen using Stitch
  • The orchestrator has assembled a prompt via stitch-ui-prompt-architect
  • User provides specific visual requirements and wants a Stitch-generated result

Call the MCP tool

{
  "name": "generate_screen_from_text",
  "arguments": {
    "projectId": "3780309359108792857",
    "prompt": "[Full structured prompt — see below]",
    "deviceType": "MOBILE",
    "modelId": "GEMINI_3_1_PRO",
    "designSystem": "assets/15996705518239280238"
  }
}

Parameter reference

designSystem — optional, PREFIXED asset id

✅ "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.

projectId — numeric ID only, no projects/ prefix

✅ "3780309359108792857"
❌ "projects/3780309359108792857"

prompt — use the [Context] [Layout] [Components] structure

[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.

deviceType

ValueUse when
MOBILEMobile app, phone-sized UI (default if uncertain)
DESKTOPWeb dashboard, landing page, SaaS UI
TABLETTablet-specific layout
AGNOSTICNot tied to a specific device — responsive/fluid layout

modelId

ValueUse when
GEMINI_3_1_PRORecommended — complex layouts, high fidelity
GEMINI_3_FLASHFast iteration, wireframes, simple changes
GEMINI_3_PRODeprecated. Still works but will be removed. Use GEMINI_3_1_PRO instead.

After generating

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

Prompt quality checklist

Before calling this tool, verify the prompt:

  • Specifies device type consistently with deviceType parameter
  • Names specific components (not "some buttons" — "primary 'Sign In' button")
  • Includes colors (hex codes or clear color names)
  • Uses realistic content (not Lorem Ipsum)
  • Specifies light or dark mode explicitly

Batch generation from full PRDs

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:

    • Check output_components for continuation suggestions (e.g. "Yes, make them all", "Generate remaining screens")
    • Automatically call generate_screen_from_text again with the suggestion text as the prompt — the user already initiated generation, no need to re-confirm
    • Repeat until no more output_components suggestions appear (max 3 continuation calls to prevent infinite loops)

    If response returns empty (HTTP timeout):

    • Generation is still running server-side — do NOT retry
    • Wait 90-120 seconds, then call list_screens to discover what was generated
    • If empty, wait another 60 seconds and retry the list call
    • Generate any missing screens individually with focused prompts referencing the PRD's design system

Timing

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.

  • Do NOT retry during this window
  • Do NOT assume failure if it takes > 60 seconds
  • The MCP tool may return empty for long generations — check list_screens afterward
  • If it fails: wait 90 seconds, check list_screens, retry ONCE max if nothing appeared
  • Each call creates a new generation — retries mean duplicate screens

References

  • examples/desktop.md — Desktop dashboard prompts (SaaS analytics, admin panel)
  • examples/mobile.md — Mobile app prompts (login, social feed, e-commerce)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus management, and screen reader support.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects prefers-reduced-motion.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and Stitch-ready prompt snippets. Use this before stitch-loop or any multi-page build to establish design consistency.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic design system document. Run this before framework conversion skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

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 via prefers-color-scheme, mobile-first responsive, zero framework dependencies. Works in browsers, WebViews, Capacitor, and Ionic. Only the Stitch route needs an API key.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich PRD document and auto-generates Stitch screens. Your design buddy that thinks deeply before designing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gabelul/stitch-kit452026년 7월 21일 업데이트

gabelul의 스킬 모두 보기

이 스킬의 문제 신고