Pular para o conteúdo
Skillpedia
Interfaces (UI/UX)8,7 mil · #12344

stitch::generate-design

O que ela faz

Esta skill gera e edita telas de apps ou sites no Google Stitch a partir de descrições escritas ou imagens. É para designers e equipes de produto que querem mockups rápidos de telas.

Quando usar

  • ✓Quando você quer uma nova tela de app ou site gerada a partir de uma descrição.
  • ✓Quando quer alterar uma tela existente do Stitch com instruções claras.
  • ✓Quando quer várias variações de design para comparar.

Link da skill

https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/generate-design/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/generate-design/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Crie uma tela do Stitch para a página inicial de um app móvel de acompanhamento de treinos, com um layout limpo e moderno.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill reescreve seu pedido em termos de design precisos, verifica o sistema de design do seu projeto e depois pede ao Stitch para gerar ou editar a tela.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Generate Design

Create new design screens from text descriptions, images, or mockups, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP.

[!NOTE] Refer to your system prompt for instruction on handling MCP tool prefixes for all tools mentioned in this skill (e.g., list_projects, generate_screen_from_text, edit_screens).

🎨 Prompt Enhancement Pipeline

Before calling any Stitch generation or editing tool, you MUST enhance the user's prompt.

1. Analyze Context

  • Project: Use list_projects to find the correct projectId. If no suitable project exists, create one using create_project.
  • Design System: Check if a design system exists for the project via list_design_systems. If one exists, design tokens (colors, fonts, roundness) are already applied at the project level — do NOT include any color, font, or theme instructions in the generation prompt. If none exists, delegate to the manage-design-system skill first before generating screens.

2. Refine UI/UX Terminology

Consult Design Mappings to replace vague terms.

  • Vague: "Make a nice header"
  • Professional: "Sticky navigation bar with glassmorphism effect and centered logo"

Use Prompting Keywords for component names, adjective palettes, color roles, and shape descriptions.

3. Structure the Final Prompt

Format the enhanced prompt for Stitch. Focus exclusively on layout, content, and structure — never include colors, fonts, or theme instructions (these are handled by the manage-design-system skill at the project level).

For new screens, use this template:

[Overall purpose and user intent of the page]

**PLATFORM:** [Web/Mobile], [Desktop/Mobile]-first

**PAGE STRUCTURE:**
1. **Header:** [Description of navigation and branding]
2. **Hero Section:** [Headline, subtext, and primary CTA]
3. **Primary Content Area:** [Detailed component breakdown]
4. **Footer:** [Links and copyright information]

For edits, be specific about what to change:

  • Location: "Change the [primary button] in the [hero section]..."
  • Visuals: "...to a darker blue (#004080) and add a subtle shadow."
  • Structure: "Add a secondary button next to the primary one with the text 'Learn More'."

[!CAUTION] Do NOT include hex codes, font names, color palettes, roundness values, or any design system tokens in a generation prompt. These are applied at the project level by the manage-design-system skill and will conflict if duplicated. (For edit prompts, hex codes are acceptable for precise color adjustments.)

4. Present AI Insights

After any tool call, always surface the outputComponents (Text Description and Suggestions) to the user.

See examples/enhanced-prompt.md for a full before/after prompt enhancement example.


Steps

Determine the Mode

Decide which flow to use based on the user's request:

  • User wants to create from a text description → Generate from Text flow
  • User provides an image, screenshot, or mockup → Generate from Image flow
  • User wants to modify an existing screen → Edit flow
  • User wants layout/color/content variations → Generate Variants flow

Generate from Text Flow (New Screen)

1. Enhance the User Prompt

Apply the Prompt Enhancement Pipeline above.

2. Identify the Project

Use list_projects to find the correct projectId if it is not already known.

3. Generate the Screen

Call the generate_screen_from_text tool with the enhanced prompt and the designSystem ID (if found in Step 1).

{
  "projectId": "...",
  "prompt": "[Your Enhanced Prompt]",
  "designSystem": "assets/...", // Optional: Pass if found in Step 1
  "deviceType": "DESKTOP"  // Options: MOBILE, DESKTOP, TABLET
}

4. Present AI Feedback

Always show the text description and suggestions from outputComponents to the user.

5. Download Design Assets

After generation, download the HTML and screenshot urls from outputComponents to the .stitch/designs directory.

  • Naming: Use the screen ID or a descriptive slug for the filename.
  • Tools: Use curl -o via run_command or similar.
  • Directory: Ensure .stitch/designs exists.

6. Review and Refine

  • If th
Perguntas frequentes

Ela escolhe as cores para mim?

Se o projeto tiver um sistema de design, as cores e fontes vêm dele, então o pedido as deixa de fora.

E se não houver um sistema de design?

A skill encaminha você para a skill de sistema de design para criar um antes de gerar telas.

Ela pode começar a partir de uma imagem?

Sim. A skill pode gerar novas telas a partir de texto ou de imagens.

Detalhes

Descrição original do autor

Generate new screens from text prompts or images, edit existing screens with prompts and design system tokens, and generate design variants using Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional UI/UX terminology, design tokens and theme system capabilities.

repo: google-labs-code/stitch-skills

Popularidade

Estrelas no GitHub
8,7 mil
Posição no ranking
#12344
Licença
Apache-2.0
Atualizada em
17/08/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas