stitch-ui-design
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.
What this skill does
# 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. ## What is Google Stitch? Google Stitch is an experimental AI UI generator powered by Gemini 2.5 Flash 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 dashboard ``` **Effective prompt:** ``` Member dashboard with course modules grid, progress tracking bar, and community feed sidebar using purple theme and card-based layout ``` **Why 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 settings ``` Stitch will ask for confirmation before generating multiple screens, ensuring alignment with your vision. ### 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 navigation ``` ### 5. 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 number ``` ## Prompt 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. Stitch updates only the annotated areas **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 content ``` ### Progressive Refinement Start broad, then add specificity in follow-up prompts: **Initial:** ``` E-commerce homepage ``` **Refinement 1:** ``` Add featured products section with 4-column grid and hover effects ``` **Refinement 2:** ``` Update color scheme to earth tones (terracotta, sage, cream) and add promotional banner at top ``` ## Common 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 background ``` ### Mobile 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 states ``` ## Design-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
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.