Langsung ke konten
Skillpedia
Antarmuka (UI/UX)8.7k Β· #12344

stitch::generate-design

Fungsinya

Skill ini membuat dan mengedit layar aplikasi atau situs web di Google Stitch dari deskripsi tertulis atau gambar. Skill ini ditujukan untuk desainer dan tim produk yang menginginkan mockup layar dengan cepat.

Kapan dipakai

  • βœ“Saat Anda ingin layar aplikasi atau situs baru dibuat dari deskripsi.
  • βœ“Saat Anda ingin mengubah layar Stitch yang ada dengan instruksi yang jelas.
  • βœ“Saat Anda ingin beberapa variasi desain untuk dibandingkan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-design/skills/generate-design/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat layar Stitch untuk halaman utama pelacak kebugaran seluler dengan tata letak yang bersih dan modern.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menulis ulang permintaan Anda dalam istilah desain yang tepat, memeriksa sistem desain proyek Anda, lalu meminta Stitch membuat atau mengedit layarnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apakah skill memilih warna untuk saya?

Jika proyek punya sistem desain, warna dan font diambil darinya, sehingga prompt tidak menyebutkannya.

Bagaimana jika tidak ada sistem desain?

Skill mengarahkan Anda ke skill sistem desain untuk membuatnya lebih dulu sebelum membuat layar.

Apakah bisa mulai dari gambar?

Bisa. Skill dapat membuat layar baru dari teks maupun dari gambar.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
8.7k
Peringkat
#12344
Lisensi
Apache-2.0
Diperbarui
17/8/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa