/sumi:ai-design-generationfrom Sumi
Generates visual assets using AI image models (Fal.ai, Imagen, FLUX, Veo, Recraft V3, GPT-Image) and Figma file access, with structured prompt engineering and quality scoring.
Ships in Sumi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
AI generation tools are accelerators, not replacements for design thinking. A generation tool has no understanding of user needs, business goals, or brand strategy — it only transforms text into pixels. The designer (or design-aware agent like Sumi) provides the intelligence: the brief, the constraints, the quality bar, the iteration direction.
The Co-Pilot Model:
This is not a compromise — it is genuinely superior to either pure human or pure AI workflows. AI explores breadth (hundreds of variations in minutes); humans provide depth (taste, context, strategy). The combination outperforms either alone.
Every AI generation workflow must include a curation checkpoint. The loop follows a consistent pattern:
Never ship a first-generation output without evaluation. Even when the result looks good, check: Does it match the brand? Is the typography readable? Are the proportions correct? Does it solve the actual user problem?
Writing effective generation prompts is a design discipline. It requires the same skills as writing a design brief: clarity about goals, specificity about constraints, awareness of audience, and taste in execution. The best prompters are experienced designers who understand what to ask for — not prompt template collectors.
Core Principles of Design Prompt Engineering:
Claude Code communicates with design generation services through MCP (Model Context Protocol) servers. Each MCP server wraps an external API and exposes it as a set of tools that Claude can invoke directly within a conversation.
The Architecture:
User Request → Claude Code (Sumi skill) → MCP Server → External API → Generated Asset
↓ ↓
Prompt Engineering Raw Output
Quality Scoring Post-Processing
Iteration Direction Final Delivery
Key Benefits of MCP Integration:
All MCP servers are configured in Claude Code's settings. Each server requires an API key for its respective service. Configuration is stored in ~/.claude/mcp_servers.json or the project-level .mcp.json.
Example Configuration:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@anthropic/stitch-mcp"],
"env": { "STITCH_API_KEY": "sk-..." }
},
"fal": {
"command": "npx",
"args": ["@fal-ai/mcp"],
"env": { "FAL_KEY": "key-..." }
},
"recraft": {
"command": "npx",
"args": ["recraft-mcp"],
"env": { "RECRAFT_API_KEY": "rc-..." }
},
"figma": {
"command": "npx",
"args": ["@anthropic/figma-mcp"],
"env": { "FIGMA_ACCESS_TOKEN": "figd_..." }
}
}
}
| Server | What It Does | Install | Key Required |
|---|---|---|---|
| stitch-mcp | Generate UI screens from text descriptions | npm i -g @anthropic/stitch-mcp | Stitch API |
| @fal-ai/mcp | 600+ image/video models (Imagen 4, FLUX, Veo 3.1, Recraft V3) | npm i -g @fal-ai/mcp | Fal.ai API |
| replicate-mcp | Open-source model access | npm i -g replicate-mcp | Replicate API |
| openai-images-mcp | GPT-Image / DALL-E 3 | npm i -g openai-images-mcp | OpenAI API |
| figma-mcp | Read/write Figma files (official) | npm i -g @anthropic/figma-mcp | Figma token |
This skill enhances Sumi when MCP servers are available but does NOT require them. Without MCP servers, Sumi provides detailed specifications and prompts that users can use manually with any generation tool.
Stitch is purpose-built for generating UI screens from natural language descriptions. Unlike general image models, Stitch understands UI primitives: navigation bars, cards, forms, data tables, modals, sidebars. Its output is structured, layouted, and component-aware.
What Stitch Generates Well:
What Stitch Does NOT Do Well:
Layout Generation Pattern:
Generate a [platform] [screen type] with:
- Navigation: [nav style + items]
- Layout: [grid/stack/split description]
- Content: [specific data to show]
- Style: [visual direction — reference product or design tokens]
- State: [default/loading/empty/error]
Component Generation Pattern:
Generate a [component name] component that:
- Contains: [child elements]
- Shows: [specific data]
- Supports: [interactions — hover, selected, disabled]
- Follows: [design system reference]
Full Page Generation Pattern:
Generate a complete [product type] [page name]:
- Header: [logo + nav items + user menu]
- Hero: [headline + subtext + CTA + visual]
- Section 1: [feature grid — 3 columns, icon + title + description]
- Section 2: [testimonials — carousel or grid]
- Section 3: [pricing — 3 tier cards with highlighted recommended]
- Footer: [links + social + newsletter signup]
Style: [reference product], [color palette], [typography]
Round 1 — Broad Exploration: Generate 3-4 variations with different layout approaches. Use general descriptions. Goal: find the right structural direction.
Round 2 — Refinement: Take the best layout and add specificity. Add exact content, adjust spacing descriptions, specify component variants. Goal: nail the composition.
Round 3 — Polish: Fine-tune typography descriptions, color references, spacing, and state variants. Generate light and dark modes. Goal: production-adjacent fidelity.
Round 4 — Variants: Generate the same screen for different breakpoints, different data states (empty, loading, error, populated), and edge cases (long text, missing images). Goal: completeness.
Fal.ai provides access to 600+ models through a single API, making it the most versatile generation platform available. Key models for design work:
FLUX Pro / FLUX.1 Dev:
FLUX Schnell:
Imagen 4 (via Fal):
Configuration for UI Asset Generation:
Model: flux-pro (high fidelity) or flux-schnell (speed)
Resolution: Match target — 1440x900 for desktop hero, 390x844 for mobile, 1200x630 for OG image
Steps: 28-50 for Pro, 4 for Schnell
Guidance: 3.5-7.5 (higher = more prompt adherence, lower = more creative latitude)
Recraft V3 is the only AI model capable of generating true SVG/vector output. This makes it indispensable for icon generation, logo exploration, and scalable illustrations.
Vector Generation Capabilities:
Icon Generation Best Practices:
Prompt structure: "[icon subject] icon, [style], [weight], [grid], [color]"
Example: "Shopping cart icon, line style, 2px stroke, 24x24 grid, single color #1A1A2E"
Batch: Generate full sets by varying only the subject while keeping style tokens identical
Illustration Style Presets:
Brand Consistency Technique: To maintain brand consistency across multiple Recraft generations, anchor every prompt with the same style suffix:
Style anchor: ", [brand] style, [primary color] and [secondary color] palette, [illustration style], [line weight], consistent with previous generations"
Midjourney excels at generating visually striking imagery for hero sections, editorial illustrations, and marketing materials. It is not ideal for precise UI generation but unmatched for visual impact.
Prompt Structure for UI/UX Work:
[Subject description] --ar [aspect ratio] --style [raw/aesthetic] --stylize [0-1000] --v 6.1
Key Parameters:
--ar 16:9 — Desktop hero images--ar 9:16 — Mobile hero images, app store screenshots--ar 1:1 — Avatars, thumbnails, social media--ar 3:2 — Blog post headers, card images--style raw — More literal prompt interpretation, better for specific UI needs--stylize 50-150 — Lower values for more control, higher for more artistic flair--no text, UI elements, buttons — Negative prompts to avoid unwanted elementsBest Use Cases in Design:
Prompt Examples for Common Design Needs:
Hero image: "Abstract gradient mesh, deep navy transitioning to electric violet, subtle grain texture, premium SaaS aesthetic --ar 16:9 --style raw --stylize 100"
Illustration: "Isometric workspace with laptop, coffee cup, and plant, soft pastel palette, minimal geometric style --ar 3:2 --stylize 200"
Background: "Subtle topographic line pattern, light grey on white, barely visible, clean minimal texture --ar 16:9 --style raw --stylize 50 --no color"
DALL-E 3 (via OpenAI) has strong prompt comprehension and excels at conceptual exploration, but produces softer, more painterly results than FLUX or Midjourney.
Strengths:
Limitations for UI Work:
Best Use Cases:
Veo 3.1 generates high-quality video clips from text prompts, useful for prototype animations, product demos, and marketing content.
Design Applications:
Prompt Pattern:
"Smooth UI animation showing [interaction]: [starting state] transitions to [ending state],
[platform] design style, [duration] seconds, [camera movement], clean background, 60fps"
Runway specializes in creative video generation with strong artistic control.
Best For:
Key Features:
Pika focuses on quick, accessible video generation with simple controls.
Best For:
When to Use Which Video Tool:
| Need | Tool | Why |
|---|---|---|
| Photorealistic product demo | Veo 3.1 | Best realism, longest clips |
| Artistic brand video | Runway Gen-3 | Best creative control |
| Quick motion concept | Pika | Fastest, simplest |
| UI animation reference | Veo 3.1 | Understands UI context |
The most common generation task is producing high-fidelity UI screenshots for mockups, presentations, and client approvals. Structure prompts in layers:
Layer 1 — Style Foundation:
"Modern SaaS dashboard, clean and minimal, Stripe/Linear aesthetic"
Layer 2 — Layout Structure:
"Left sidebar navigation (64px, dark), top header bar (56px, white),
main content area with 3-column card grid"
Layer 3 — Content Specifics:
"Cards show: metric title, large number, sparkline chart, percentage change badge.
Metrics: Revenue ($48,230, +12.3%), Users (12,847, +5.7%), Conversion (3.24%, -0.8%)"
Layer 4 — Visual Details:
"Inter font family, 14px body text, #1A1A2E text color, #F8F9FA background,
8px border radius, subtle box shadows (0 1px 3px rgba(0,0,0,0.08)),
16px grid spacing"
Layer 5 — Quality Modifiers:
"4K resolution, pixel-perfect, production-ready, Retina display,
anti-aliased text, proper kerning"
Complete Assembled Prompt: Combine all layers into a single coherent prompt. The model processes the full context — layering ensures you do not forget critical details.
Consistent icon sets require rigid prompt structure. Vary only the subject; keep everything else identical.
Template:
"[Subject] icon, [style] style, [stroke weight] stroke, [size] grid,
[corner radius] corners, [color/monochrome], [fill/outline],
consistent with [reference set], centered, balanced negative space"
Batch Generation Strategy:
Common Icon Sets for Products:
Illustrations need style consistency across a product. Define a style system before generating.
Style System Definition:
Style: [flat/line/isometric/3D/hand-drawn]
Palette: [3-5 specific colors with hex values]
Line weight: [none/thin/medium/bold + specific px]
Shapes: [geometric/organic/mixed]
Characters: [if applicable — style, proportions, features]
Mood: [professional/playful/technical/warm/minimal]
Apply the Style System to Every Prompt:
"[Scene description], [style system reference],
[specific palette colors], [line weight], [mood],
consistent illustration style, flat vector, no gradients"
Generate landing pages one section at a time for maximum control, then composite.
Hero Section:
"Landing page hero section: bold headline '[Headline Text]' in [font],
subheadline '[Subtext]', primary CTA button '[Button Text]' in [color],
[visual element: product screenshot / illustration / abstract shape],
[background treatment], above-the-fold, desktop 1440px width"
Features Section:
"Features grid section: 3 columns, each with [icon style] icon,
feature title, 2-line description, [card/flat/bordered] treatment,
[background color], consistent spacing, desktop 1440px width"
Social Proof Section:
"Testimonial section: [carousel/grid/single-quote] layout,
customer photo, name, title, company logo, quote text,
star rating, [card/minimal/bordered] treatment"
Pricing Section:
"Pricing comparison: [2/3/4] tier cards, highlighted recommended tier,
plan name, price, billing period, feature list with check/x marks,
CTA button per tier, [flat/elevated/bordered] card style"
Stage 1 — Concept Exploration (Breadth):
Stage 2 — Variation (Depth):
Stage 3 — Refinement (Precision):
Stage 4 — Production (Integration):
When generating asset sets (icon packs, illustration libraries, photo collections), consistency is paramount.
Icon Set Pipeline:
Illustration Set Pipeline:
Generate foundational design system assets in a coordinated pipeline:
AI-generated designs contain telltale artifacts that must be caught before production use:
For multi-screen or multi-asset projects, run a consistency audit:
Cross-Screen Consistency Checklist:
Score generated designs against brand requirements on a 0-10 scale:
| Dimension | 0-3 (Fail) | 4-6 (Partial) | 7-10 (Pass) |
|---|---|---|---|
| Color accuracy | Wrong palette | Approximate colors | Exact brand colors |
| Typography | Wrong fonts | Right family, wrong weights | Exact type system |
| Spacing | Inconsistent | Mostly consistent | Matches grid system |
| Tone/mood | Off-brand | Close but not quite | Nails brand personality |
| Component fidelity | Unrecognizable | Similar structure | Matches design system |
| Content quality | Placeholder lorem | Generic realistic | Brand-voice copy |
| Platform correctness | Wrong OS patterns | Mixed platform cues | Native platform feel |
Minimum viable score for production use: 7+ average across all dimensions.
AI outputs often need resolution increases for production use:
When to Upscale:
For assets that need transparency:
Convert raster icons/illustrations to true vector:
AI models do not guarantee exact color values. Post-process to match brand:
Generated assets flow into Figma for refinement and handoff:
Figma MCP Workflow:
1. Generate screen via Stitch or image model
2. Read target Figma file via Figma MCP
3. Create a new frame in the target page
4. Place generated image as fill or reference layer
5. Build component structure on top of reference
6. Remove reference layer when component build is complete
AI mockups serve as visual specifications for code generation:
component-patterns-code skill to generate React/SwiftUI/CSSAI models inherit biases from training data. Watch for:
Mitigation Strategies:
cross-cultural-i18n-ux skill for cultural appropriatenessaccessibility-inclusive-design skillRecommended disclosure framework:
| Need | Cheapest Option | Best Quality Option | Recommended |
|---|---|---|---|
| UI mockup screenshot | Stitch | Stitch | Stitch |
| Product icon (SVG) | Recraft V3 | Recraft V3 | Recraft V3 |
| Hero photograph | FLUX Schnell | FLUX Pro / Imagen 4 | FLUX Pro |
| Editorial illustration | DALL-E 3 | Midjourney | Midjourney |
| Background pattern | FLUX Schnell | FLUX Pro | FLUX Schnell |
| Video clip | Pika | Veo 3.1 | Veo 3.1 |
| Concept exploration | FLUX Schnell | FLUX Pro | FLUX Schnell |
| Client presentation | FLUX Pro | Midjourney | FLUX Pro |
| Asset Type | Low Estimate | High Estimate | Typical |
|---|---|---|---|
| UI screen mockup | $0.02 | $0.15 | $0.05 |
| Icon (SVG) | $0.01 | $0.05 | $0.02 |
| Hero image | $0.03 | $0.20 | $0.08 |
| Illustration | $0.03 | $0.20 | $0.10 |
| Video clip (5s) | $0.10 | $1.00 | $0.30 |
| Full page (5 sections) | $0.10 | $0.50 | $0.25 |
Costs vary by model, resolution, and number of iterations. Estimates assume 2-3 generation rounds per final asset.
| File | Contents | Use When |
|---|---|---|
references/mcp-design-tools.md | Complete catalog of MCP servers for design generation: Stitch (UI screens from text), Fal.ai (600+ models — Imagen 4, FLUX Pro, Veo 3.1, Recraft V3), Replicate (open-source models), OpenAI GPT-Image, Figma MCP (official). Per tool: capabilities, MCP configuration, tool names, parameters, pricing, strengths, limitations, best use cases. | Selecting the right MCP tool for a task. Configuring MCP servers. Understanding tool capabilities and limitations. |
references/prompt-engineering-visual.md | How to write effective prompts for UI design generation. Prompt anatomy for each tool (Stitch, Imagen, FLUX, DALL-E). Style transfer techniques. Design token injection into prompts. Sector-aware prompting. Platform-specific prompting (iOS, Android, web). Negative prompting. Prompt templates for common UI screens. | Crafting effective generation prompts. Converting design specifications into tool-specific prompts. Ensuring generated output matches design direction. |
references/generation-pipelines.md | Multi-step generation workflows: text to wireframe to high-fidelity to code. Single-tool pipelines vs. multi-tool pipelines. Iterative refinement loops. Design system consistency across multiple generations. Batch generation for screen families. Pipeline templates for common scenarios (landing page, dashboard, mobile app, design system). | Running multi-step generation workflows. Ensuring consistency across multiple generated screens. Planning generation projects. |
references/asset-generation-guide.md | Generating design assets: icons (SVG via Recraft V3 — the only vector-capable model), illustrations (Fal.ai, DALL-E), photographs (Imagen 4, FLUX), video/motion (Veo 3.1), patterns/textures, brand assets. Per asset type: best tool, prompt strategy, output format, quality requirements, production-readiness checklist. | Generating specific design assets. Choosing the right tool for icons vs. illustrations vs. photos vs. video. |
references/quality-control-generation.md | Scoring generated designs against the visual-design-mastery framework. Automated quality checks. Human-in-the-loop review process. Iteration strategies (what to change in prompts when output is poor). Common generation failures and fixes. When to stop iterating and hand-craft instead. | Evaluating AI-generated output quality. Deciding whether to iterate, change tools, or hand-craft. Quality gates for generated designs. |
visual-design-mastery — Provides the design intelligence that makes generation prompts effective and quality scoring meaningful.platform-visual-standards — Provides platform-specific constraints for generation prompts.ui-pattern-intelligence — Identifies which patterns to generate and their quality benchmarks.sector-style-intelligence — Provides sector-specific visual direction for generation prompts.design-systems-architecture — Ensures generated designs consume design tokens consistently.figma-design-tool-workflows — Integration with Figma for design-to-code pipelines.icon-illustration-systems — Detailed icon and illustration design guidance that informs generation prompts.color-palette-library — Curated palettes for color-accurate generation prompts.typography-pairing-recipes — Type system knowledge for typography-aware generation.animation-recipe-library — Motion design knowledge for video generation prompts.| Command | How This Skill Is Used |
|---|---|
/generate | Primary command — AI-powered screen generation via MCP tools |
/generate | AI-powered asset generation (icons, illustrations, photos, video) |
/grade | Can generate mood board visualizations using image generation |
/screen | Can use Stitch to generate screen mockups before coding |
/component | Can reference generated designs as implementation targets |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
45 skills in this plugin
/accessibility-inclusive-designWCAG 2.2 compliance, ARIA authoring patterns, screen reader and keyboard navigation, color contrast, and cognitive/neurodiversity accommodations. Use when auditing accessibility, fixing a11y violations, choosing ARIA roles, checking contrast ratios, or designing for ADHD, dyslexia, autism, or motor impairment./agentic-ai-generative-uxDesign patterns for agentic AI: multi-agent orchestration UX, generative UI, RAG interfaces, LLM hallucination guardrails, confidence indicators, and trust calibration. Use when designing AI copilots or autonomous agents, adding verification affordances, or auditing an AI feature for safety, control, and consent./npx claudepluginhub phazurlabs/sumi --plugin sumiOther plugins' skills for the same job