phazurlabs/chef-sumi/ai-design-generation
Claude Code and agent skill by phazurlabs/chef-sumi
- community
Checking that the SKILL.md file is still in the repository.
MCP integration layer for AI-powered visual design generation — Stitch MCP (UI screen generation), Fal.ai MCP (600+ models including Imagen 4, FLUX, Veo 3.1), Replicate MCP (open-source models), Recraft V3 MCP (only SVG/vector-capable model), OpenAI GPT-Image MCP, and Figma MCP (official design read/write). Covers prompt engineering for visual design output, multi-tool generation pipelines (sketch to refine to code), asset generation (icons, illustrations, photos, video), and quality control scoring for generated designs. Use when the user mentions: generate design, create mockup, AI design, generate screen, create UI, make me a design, generate icons, create illustrations, Stitch, Imagen, Veo, DALL-E, Recraft, design generation, AI mockup, generate assets, create visuals.
Install
npx vskill@latest install phazurlabs/chef-sumi/ai-design-generationSKILL.md
The same SKILL.md was published earlier as phazurlabs/chef-sumi/ai-design-generation.
AI Design Generation
1. AI Design Generation Philosophy
AI as Co-Pilot, Not Replacement
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:
- Human/agent defines the problem, constraints, and success criteria
- AI generates candidates rapidly across the solution space
- Human/agent evaluates, selects, critiques, and steers
- AI refines based on directed feedback
- Human/agent makes final production decisions
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.
The Human Curation Loop
Every AI generation workflow must include a curation checkpoint. The loop follows a consistent pattern:
- Specify — Translate design intent into a structured prompt
- Generate — Produce 3-6 candidates per round
- Evaluate — Score against design criteria (brand, usability, aesthetics)
- Select — Choose the strongest candidate(s) to advance
- Refine — Adjust the prompt based on what worked and what did not
- Repeat — 2-4 rounds typically reach production quality
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?
Prompt Engineering as a Design Skill
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:
- Specificity beats length — "16px Inter Medium, #1A1A2E on white, 8px radius card" beats "make it look modern and clean"
- Reference real products — "Stripe dashboard density" communicates more than paragraphs of description
- Constrain before you create — State what the design must NOT do (no gradients, no stock photos, no rounded avatars)
- Layer your prompt — Style first, then layout, then content, then fine details
- Include quality modifiers — "production-ready", "pixel-perfect", "4K render" shift models toward higher fidelity
2. MCP Integration Overview
How Claude Code Connects to Design Generation Tools
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:
Key Benefits of MCP Integration:
- Claude can generate designs mid-conversation without the user leaving the terminal
- Prompt construction is automated using Sumi's design intelligence
- Results can be evaluated, iterated, and refined in a continuous loop
- Multiple tools can be chained in a single pipeline (e.g., Stitch for layout, Fal.ai for hero image, Recraft for icons)
MCP Server Configuration
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:
Supported MCP Servers (All Optional)
| 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.
3. Stitch MCP — UI Generation
Capabilities
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:
- Full page layouts (dashboards, settings, profiles, feeds)
- Component compositions (card grids, form sections, navigation)
- Responsive variations (desktop, tablet, mobile)
- Light and dark mode variants
- Platform-specific UIs (iOS, Android, web)
What Stitch Does NOT Do Well:
- Photorealistic imagery (use Fal.ai or DALL-E for hero images)
- Custom illustrations (use Recraft or Midjourney)
- Animated prototypes (use Veo or Runway for motion)
- Pixel-perfect production code (use component-patterns-code skill for code)
Prompt Patterns for Stitch
Layout Generation Pattern:
Component Generation Pattern:
Full Page Generation Pattern:
Iteration Workflow with Stitch
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.
4. Image Generation Tools
Fal.ai — The Multi-Model Platform
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:
- Best for: High-fidelity UI mockup screenshots, product photography, realistic renders
- Strengths: Exceptional text rendering in images, photorealistic quality, fast generation
- Resolution: Up to 2048x2048, supports custom aspect ratios
- Prompt style: Descriptive, natural language, responds well to camera/lighting terminology
- Use case: Hero images, product shots, lifestyle imagery for landing pages
FLUX Schnell:
- Best for: Rapid iteration, concept exploration, batch generation
- Strengths: 4x faster than FLUX Pro, good quality for drafts
- Use case: Quick visual explorations before committing to high-fidelity generation
Imagen 4 (via Fal):
- Best for: Photorealistic imagery with precise prompt adherence
- Strengths: Superior text rendering, excellent at following complex compositional prompts
- Use case: Marketing materials, product mockups, banner images
Configuration for UI Asset Generation:
Recraft V3 — Vector and Icon Generation
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:
- SVG output — real vector paths, not rasterized images saved as SVG
- Consistent style across batch generations
- Icon sets with unified weight, style, and grid alignment
- Illustration styles: flat, line art, isometric, hand-drawn, geometric
Icon Generation Best Practices:
Illustration Style Presets:
- Corporate flat: "flat vector illustration, geometric shapes, limited palette, no outlines, modern SaaS style"
- Line art: "continuous line illustration, single stroke weight, minimal detail, elegant, editorial"
- Isometric: "isometric 3D illustration, flat shading, consistent 30-degree angle, pastel palette"
- Hand-drawn: "hand-drawn sketch illustration, imperfect lines, warm, approachable, ink on paper feel"
Brand Consistency Technique: To maintain brand consistency across multiple Recraft generations, anchor every prompt with the same style suffix:
Midjourney — High-Impact Visuals
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:
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 elements
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai-design-generation/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/phazurlabs/chef-sumi/ai-design-generation)