New to Claude Skills? Learn how to install them β†’

google-labs-code on GitHub

Enhance Prompt

Free

Transform vague UI ideas into optimized prompts.

Get this skill

Free Β· Opens the source repo

What Enhance Prompt does

Enhance Prompt is designed for developers and designers who need to refine and optimize their UI generation prompts for Stitch. This skill helps users take rough or vague ideas and convert them into structured, detailed prompts that yield better results when processed by Stitch. By following a systematic approach, users can ensure that their prompts are not only clear but also aligned with design system standards, enhancing the overall quality of the generated output.

The skill operates through a defined enhancement pipeline that begins with assessing the user's input. It checks for essential elements such as platform type, page structure, visual style, and specific UI components. If any of these elements are missing, the skill provides suggestions or automatically infers the necessary details to create a comprehensive prompt. This process ensures that the final output is well-structured and rich in context, leading to improved generation results.

In addition to basic enhancements, the skill emphasizes the importance of design consistency. It prompts users to check for an existing DESIGN.md file, which contains crucial details about the design system being used. If such a file is present, the skill extracts relevant information to include in the enhanced prompt. If not, it encourages the creation of a DESIGN.md file to maintain uniformity across various screens and components.

Overall, Enhance Prompt is particularly useful for those who frequently work with Stitch and require a reliable method to elevate their prompt quality. Whether you're polishing an existing idea or starting from scratch, this skill provides the tools needed to ensure that your prompts are actionable, specific, and aligned with design best practices.

When to use it

Use this skill when you have a vague UI concept that needs to be refined into a clear and structured prompt for Stitch.

When not to use it

This skill may not be suitable for users who already have well-defined prompts or those not utilizing Stitch for UI generation.

What you can build with it

Polishing a UI Prompt

When you have a rough idea for a login page, use Enhance Prompt to refine it into a structured, actionable prompt.

Improving Poor Results

If a previous prompt yielded unsatisfactory results from Stitch, this skill can help you identify and correct the issues.

Adding Design System Context

For a simple concept lacking detail, Enhance Prompt can inject design system elements to ensure consistency across the project.

How to install Enhance Prompt

View source

1. Install with the skills CLI

npx skills add google-labs-code/stitch-skills/enhance-prompt --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by google-labs-code

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:

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:

ElementCheck forIf missing...
Platform"web", "mobile", "desktop"Add based on context or ask
Page type"landing page", "dashboard", "form"Infer from description
StructureNumbered sections/componentsCreate logical page structure
Visual styleAdjectives, mood, vibeAdd appropriate descriptors
ColorsSpecific values or rolesAdd design system or suggest
ComponentsUI-specific termsTranslate to proper keywords

Step 2: Check for DESIGN.md

Look for a DESIGN.md file in the current project:

If DESIGN.md exists:

  1. Read the file to extract the design system block
  2. Include the color palette, typography, and component styles
  3. Format as a "DESIGN SYSTEM (REQUIRED)" section in the output

If DESIGN.md does not exist:

  1. 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:

VagueEnhanced
"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:

BasicEnhanced
"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 the stitch-loop skill
  • 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

  1. Be specific early β€” Vague inputs need more enhancement
  2. Match the user's intent β€” Don't over-design if they want simple
  3. Keep it structured β€” Numbered sections help Stitch understand hierarchy
  4. Include the design system β€” Consistency is key for multi-page projects
  5. One change at a time for edits β€” Don't bundle unrelated changes

Frequently asked questions about Enhance Prompt

Similar skills