stitch-ui-design – skill Thiết kế & UI cho agent AI
Hướng dẫn chuyên sâu viết prompt hiệu quả trong Google Stitch, công cụ thiết kế UI bằng AI của Google Labs. Skill này giúp tạo prompt chính xác, có thể thực thi để sinh thiết kế UI chất lượng cao cho ứng dụng web và mobile.
Cài skill stitch-ui-design bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/stitch-ui-design-1a201.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /stitch-ui-design – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/stitch-ui-design-1a201.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $stitch-ui-design – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/stitch-ui-design-1a201.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /stitch-ui-design – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/stitch-ui-design-1a201.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /stitch-ui-design – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Stitch UI Design Prompting
Expert guidance for crafting effective prompts in Google Stitch, the AI-powered UI design tool by Google Labs. This skill helps create precise, actionable prompts that generate high-quality UI designs for web and mobile applications.
Prototype and privacy boundaries
Confirm actual account capabilities, export options and data terms from current official documentation before using product-specific steps. Use only authorized reference images/assets and synthetic or redacted data; uploading screenshots can expose confidential UI, personal records and credentials. Prompted functional states are visual specifications, not implemented authentication, payment, validation or accessibility evidence. Inspect exported code/dependencies and test semantic structure, keyboard/focus, zoom/reflow, contrast and reduced motion on real devices before production. The example logos, testimonials, ratings, metrics and security badges are placeholders and must never be published as factual claims without evidence/permission. Export/share/deploy and external account changes require authorization.
What is Google Stitch?
Google Stitch is an experimental AI UI generator whose available models/features depend on the current product version that transforms text prompts and visual references into functional UI designs. It supports:
- Text-to-UI generation from natural language prompts
- Image-to-UI conversion from sketches, wireframes, or screenshots
- Multi-screen app flows and responsive layouts
- Export to HTML/CSS, Figma, and code
- Iterative refinement with variants and annotations
Core Prompting Principles
1. Be Specific and Detailed
Generic prompts yield generic results. Specific prompts with clear requirements produce tailored, professional designs.
Poor prompt:
Create a dashboardEffective prompt:
Member dashboard with course modules grid, progress tracking bar,
and community feed sidebar using purple theme and card-based layoutWhy it works: Specifies components (modules, progress, feed), layout structure (grid, sidebar), visual style (purple theme, cards), and context (member dashboard).
2. Define Visual Style and Theme
Always include color schemes, design aesthetics, and visual direction to avoid generic AI outputs.
Components to specify:
- Color palette (primary colors, accent colors)
- Design style (minimalist, modern, playful, professional, glassmorphic)
- Typography preferences (if any)
- Spacing and density (compact, spacious, balanced)
Example:
E-commerce product page with hero image gallery, add-to-cart CTA,
reviews section, and related products carousel. Use clean minimalist
design with sage green accents and generous white space.3. Structure Multi-Screen Flows Clearly
For apps with multiple screens, list each screen as bullet points before generation.
Approach:
Fitness tracking app with:
- Onboarding screen with goal selection
- Home dashboard with daily stats and activity rings
- Workout library with category filters
- Profile screen with achievements and settingsReview the intended screen list before generation; do not rely on the product to supply a confirmation gate.
4. Specify Platform and Responsive Behavior
Indicate whether the design is for mobile, tablet, desktop, or responsive web.
Examples:
Mobile app login screen (iOS style) with email/password fields and social auth buttons
Responsive landing page that adapts from mobile (320px) to desktop (1440px)
with collapsible navigation5. Include Functional Requirements
Describe interactive elements, states, and user flows to generate more complete designs.
Elements to specify:
- Button actions and CTAs
- Form fields and validation
- Navigation patterns
- Loading states
- Empty states
- Error handling
Example:
Checkout flow with:
- Cart summary with quantity adjusters
- Shipping address form with validation
- Payment method selection (cards, PayPal, Apple Pay)
- Order confirmation with tracking numberPrompt Structure Template
Use this template for comprehensive prompts:
[Screen/Component Type] for [User/Context]
Key Features:
- [Feature 1 with specific details]
- [Feature 2 with specific details]
- [Feature 3 with specific details]
Visual Style:
- [Color scheme]
- [Design aesthetic]
- [Layout approach]
Platform: [Mobile/Web/Responsive]Example:
Dashboard for SaaS analytics platform
Key Features:
- Top metrics cards showing MRR, active users, churn rate
- Line chart for revenue trends (last 30 days)
- Recent activity feed with user actions
- Quick action buttons for reports and exports
Visual Style:
- Dark mode with blue/purple gradient accents
- Modern glassmorphic cards with subtle shadows
- Clean data visualization with accessible colors
Platform: Responsive web (desktop-first)Iteration Strategies
Refine with Annotations
Use Stitch's "annotate to edit" feature to make targeted changes without rewriting the entire prompt.
Workflow:
1. Generate initial design from prompt
2. Annotate specific elements that need changes
3. Describe modifications in natural language
4. Request a targeted change, then inspect the full result for unintended changes
Example annotations:
- "Make this button larger and use primary color"
- "Add more spacing between these cards"
- "Change this to a horizontal layout"
Generate Variants
Request multiple variations to explore different design directions:
Generate 3 variants of this hero section:
1. Image-focused with minimal text
2. Text-heavy with supporting graphics
3. Video background with overlay contentProgressive Refinement
Start broad, then add specificity in follow-up prompts:
Initial:
E-commerce homepageRefinement 1:
Add featured products section with 4-column grid and hover effectsRefinement 2:
Update color scheme to earth tones (terracotta, sage, cream)
and add promotional banner at topCommon Use Cases
Landing Pages
SaaS landing page for [product name]
Sections:
- Hero with headline, subheadline, CTA, and product screenshot
- Social proof with customer logos
- Features grid (3 columns) with icons
- Testimonials carousel
- Pricing table (3 tiers)
- FAQ accordion
- Footer with links and newsletter signup
Style: Modern, professional, trust-building
Colors: Navy blue primary, light blue accents, white backgroundMobile Apps
Food delivery app home screen
Components:
- Search bar with location selector
- Category chips (Pizza, Burgers, Sushi, etc.)
- Restaurant cards with image, name, rating, delivery time, and price range
- Bottom navigation (Home, Search, Orders, Profile)
Style: Vibrant, appetite-appealing, easy to scan
Colors: Orange primary, white background, food photography
Platform: iOS mobile (375px width)Dashboards
Admin dashboard for content management system
Layout:
- Left sidebar navigation with collapsible menu
- Top bar with search, notifications, and user profile
- Main content area with:
- Stats overview (4 metric cards)
- Recent posts table with actions
- Activity timeline
- Quick actions panel
Style: Clean, data-focused, professional
Colors: Neutral grays with blue accents
Platform: Desktop web (1440px)Forms and Inputs
Multi-step signup form for B2B platform
Steps:
1. Account details (company name, email, password)
2. Company information (industry, size, role)
3. Team setup (invite members)
4. Confirmation with success message
Features:
- Progress indicator at top
- Field validation with inline errors
- Back/Next navigation
- Skip option for step 3
Style: Minimal, focused, low-friction
Colors: White background, green for success statesDesign-to-Code Workflow
Export Options
Stitch provides multiple export formats:
1. HTML/CSS - Clean, semantic markup for web projects
2. Figma - "Paste to Figma" for design system integration
3. Code snippets - Component-level exports for frameworks
Best Practices for Export
Before exporting:
- Verify responsive breakpoints
- Check color contrast for accessibility
- Ensure interactive states are defined
- Review component naming and structure
After export:
- Refactor generated code for production standards
- Add proper semantic HTML tags
- Implement accessibility attributes (ARIA labels, alt text)
- Optimize images and assets
- Add animations and micro-interactions
Anti-Patterns to Avoid
❌ Vague Prompts
Make a nice website✅ Specific Prompts
Portfolio website for photographer with full-screen image gallery,
project case studies, and contact form. Minimalist black and white
aesthetic with serif typography.---
❌ Missing Context
Create a login page✅ Context-Rich Prompts
Login page for healthcare portal with email/password fields,
"Remember me" checkb… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- styleseed-design-review – Rà soát mã UI/frontend và chỉ ra chính xác vì sao nó "trông như do AI tạo ra", rồi hướng…
- swiftui-ui-patterns – Áp dụng các UI pattern SwiftUI đã được kiểm chứng cho điều hướng, sheet, trạng thái…
- swiss-design – Hướng dẫn triển khai web và app theo Swiss Design (International Typographic Style)…
- synthwave – Hướng dẫn triển khai web và app theo phong cách Synthwave. Kích hoạt khi người dùng muốn…
- tailwind-design-system – Xây dựng design system sẵn sàng production với Tailwind CSS, gồm design token, biến thể…
- tailwind-patterns – Nguyên tắc Tailwind CSS v4. Cấu hình ưu tiên CSS, container query, pattern hiện đại…
- tastegate – Xây dựng hoặc sửa frontend để trông có thiết kế, không giống do AI tạo ra, rồi kiểm…
- theme-factory – Skill này cung cấp bộ sưu tập theme font và màu chuyên nghiệp, mỗi theme có bảng màu và…