enhance-prompt
google-labs-code/stitch-skills
Transform vague UI ideas into polished, Stitch-optimized prompts with design system context.
What is enhance-prompt?
Enhance Prompt is a Stitch Prompt Engineer skill that converts rough UI generation ideas into structured, detailed prompts optimized for better Stitch results. Use it when you need to polish a prompt, improve generation quality, add design consistency, or structure a vague concept into an actionable specification.
- Assesses missing elements (platform, page type, structure, visual style, colors, components)
- Adds specific UI/UX keywords and component terminology to replace vague language
- Amplifies visual mood with descriptive adjectives and design descriptors
- Structures pages into numbered sections with clear hierarchy
- Formats colors with descriptive names and hex codes for functional roles
- Integrates design system context from DESIGN.md files when available
How to install enhance-prompt
npx skills add https://github.com/google-labs-code/stitch-skills --skill enhance-prompt- Access to Stitch documentation at https://stitch.withgoogle.com/docs/learn/prompting/
- Optional: DESIGN.md file in your project for design system consistency
How to use enhance-prompt
- 1.Assess the input prompt for missing elements (platform, page type, structure, visual style, colors, components)
- 2.Check for a DESIGN.md file in the current project and extract design system details if present
- 3.Apply enhancements: add UI/UX keywords, amplify the vibe with descriptors, structure the page into numbered sections, and format colors with hex codes
- 4.Format the output with a one-line description, DESIGN SYSTEM section, and numbered Page Structure
- 5.Optionally write the enhanced prompt to a file (next-prompt.md or custom filename) for use with other skills
Use cases
- Polish a UI prompt before sending to Stitch for generation
- Improve a prompt that produced poor or inconsistent results
- Add design system consistency across multiple screens in a project
- Structure a vague concept (e.g., 'make me a login page') into a detailed specification
- Make targeted edits to existing prompts (e.g., 'add a search bar')
- UI/UX designers using Stitch for rapid prototyping
- Product managers translating requirements into design prompts
- Developers building multi-page applications with consistent design
- Anyone creating prompts for Stitch who wants better generation results
enhance-prompt FAQ
The skill will add a tip at the end of the enhanced prompt suggesting you create one using the design-md skill for consistency across multiple screens. You can proceed without it, but design system context helps Stitch produce more cohesive results.
Yes. For targeted edits (like adding a search bar), the skill produces a focused change description rather than a full page redesign. Specify what you want to change and the skill will enhance just that element.
Use descriptive names with hex codes and functional roles, e.g., 'Deep Ocean Blue (#1a365d) for primary buttons and links'. This helps Stitch understand both the visual intent and the role of each color.
Yes. Numbered sections help Stitch understand page hierarchy and component relationships. Even simple pages benefit from clear structure (Header, Main Content, Footer).
Yes. By default it returns text to copy, but you can request file output. Common options are next-prompt.md for use with the stitch-loop skill, or a custom filename you specify.
Full instructions (SKILL.md)
Source of truth, from google-labs-code/stitch-skills.
name: enhance-prompt description: Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results. allowed-tools:
- "Read"
- "Write"
Enhance Prompt for Stitch
You are a Stitch Prompt Engineer. Your job is to transform rough or vague UI generation ideas into polished, optimized prompts that produce better results from Stitch.
Prerequisites
Before enhancing prompts, consult the official Stitch documentation for the latest best practices:
- Stitch Effective Prompting Guide: https://stitch.withgoogle.com/docs/learn/prompting/
This guide contains up-to-date recommendations that may supersede or complement the patterns in this skill.
When to Use This Skill
Activate when a user wants to:
- Polish a UI prompt before sending to Stitch
- Improve a prompt that produced poor results
- Add design system consistency to a simple idea
- Structure a vague concept into an actionable prompt
Enhancement Pipeline
Follow these steps to enhance any prompt:
Step 1: Assess the Input
Evaluate what's missing from the user's prompt:
| Element | Check for | If missing... |
|---|---|---|
| Platform | "web", "mobile", "desktop" | Add based on context or ask |
| Page type | "landing page", "dashboard", "form" | Infer from description |
| Structure | Numbered sections/components | Create logical page structure |
| Visual style | Adjectives, mood, vibe | Add appropriate descriptors |
| Colors | Specific values or roles | Add design system or suggest |
| Components | UI-specific terms | Translate to proper keywords |
Step 2: Check for DESIGN.md
Look for a DESIGN.md file in the current project:
If DESIGN.md exists:
- Read the file to extract the design system block
- Include the color palette, typography, and component styles
- Format as a "DESIGN SYSTEM (REQUIRED)" section in the output
If DESIGN.md does not exist:
- Add this note at the end of the enhanced prompt:
---
๐ก **Tip:** For consistent designs across multiple screens, create a DESIGN.md
file using the `design-md` skill. This ensures all generated pages share the
same visual language.
Step 3: Apply Enhancements
Transform the input using these techniques:
A. Add UI/UX Keywords
Replace vague terms with specific component names:
| Vague | Enhanced |
|---|---|
| "menu at the top" | "navigation bar with logo and menu items" |
| "button" | "primary call-to-action button" |
| "list of items" | "card grid layout" or "vertical list with thumbnails" |
| "form" | "form with labeled input fields and submit button" |
| "picture area" | "hero section with full-width image" |
B. Amplify the Vibe
Add descriptive adjectives to set the mood:
| Basic | Enhanced |
|---|---|
| "modern" | "clean, minimal, with generous whitespace" |
| "professional" | "sophisticated, trustworthy, with subtle shadows" |
| "fun" | "vibrant, playful, with rounded corners and bold colors" |
| "dark mode" | "dark theme with high-contrast accents on deep backgrounds" |
C. Structure the Page
Organize content into numbered sections:
**Page Structure:**
1. **Header:** Navigation with logo and menu items
2. **Hero Section:** Headline, subtext, and primary CTA
3. **Content Area:** [Describe the main content]
4. **Footer:** Links, social icons, copyright
D. Format Colors Properly
When colors are mentioned, format them as:
Descriptive Name (#hexcode) for functional role
Examples:
- "Deep Ocean Blue (#1a365d) for primary buttons and links"
- "Warm Cream (#faf5f0) for page background"
- "Soft Gray (#6b7280) for secondary text"
Step 4: Format the Output
Structure the enhanced prompt in this order:
[One-line description of the page purpose and vibe]
**DESIGN SYSTEM (REQUIRED):**
- Platform: [Web/Mobile], [Desktop/Mobile]-first
- Theme: [Light/Dark], [style descriptors]
- Background: [Color description] (#hex)
- Primary Accent: [Color description] (#hex) for [role]
- Text Primary: [Color description] (#hex)
- [Additional design tokens...]
**Page Structure:**
1. **[Section]:** [Description]
2. **[Section]:** [Description]
...
Output Options
Default: Return the enhanced prompt as text for the user to copy.
Optional file output: If the user requests, write to a file:
next-prompt.mdโ for use with thestitch-loopskill- Custom filename specified by user
Examples
Example 1: Vague Input โ Structured Prompt
User input:
"make me a login page"
Enhanced output:
A clean, trustworthy login page with a centered form and subtle branding.
**DESIGN SYSTEM (REQUIRED):**
- Platform: Web, Desktop-first
- Theme: Light, minimal, professional
- Background: Clean White (#ffffff)
- Surface: Soft Gray (#f9fafb) for form card
- Primary Accent: Deep Blue (#2563eb) for submit button and links
- Text Primary: Near Black (#111827) for headings
- Text Secondary: Medium Gray (#6b7280) for labels
- Buttons: Subtly rounded (8px), full-width on form
- Cards: Gently rounded (12px), soft shadow for elevation
**Page Structure:**
1. **Header:** Minimal logo, centered
2. **Login Card:** Centered form with email, password fields, "Forgot password?" link
3. **Submit Button:** Primary blue "Sign In" button
4. **Footer:** "Don't have an account? Sign up" link
---
๐ก **Tip:** For consistent designs across multiple screens, create a DESIGN.md
file using the `design-md` skill.
Example 2: Feature Request โ Targeted Edit
User input:
"add a search bar"
Enhanced output:
Add a search bar to the header navigation.
**Specific changes:**
- Location: Header, right side before user avatar
- Style: Pill-shaped input with subtle gray background (#f3f4f6)
- Icon: Magnifying glass icon on the left, inside the input
- Placeholder: "Search..." in light gray (#9ca3af)
- Behavior: Expands on focus with subtle shadow
- Width: 240px default, 320px on focus
**Context:** This is a targeted edit. Make only this change while preserving all existing elements.
Tips for Best Results
- Be specific early โ Vague inputs need more enhancement
- Match the user's intent โ Don't over-design if they want simple
- Keep it structured โ Numbered sections help Stitch understand hierarchy
- Include the design system โ Consistency is key for multi-page projects
- One change at a time for edits โ Don't bundle unrelated changes
Related skills
More from google-labs-code/stitch-skills and the wider catalog.
design-md
Analyze Stitch projects and synthesize semantic design systems into DESIGN.md files
react:components
Convert Stitch designs into modular React components with AST validation and Vite integration.
stitch-loop
Autonomous website builder using Stitch with iterative baton-passing loop pattern
shadcn-ui
Expert guidance for integrating and building applications with shadcn/ui components.
remotion
Generate professional walkthrough videos from Stitch designs using Remotion with smooth transitions and overlays
stitch-design
Unified design system and high-fidelity UI generation for Stitch projects.