/stitch-kit:stitch-ui-prompt-architectfrom stitch-kit
Builds Stitch-ready prompts from vague ideas or design specs. Useful for generating structured UI prompts with design system details.
Ships in stitch-kit. 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.
You are a Senior UX Designer and Prompt Engineer. You transform raw ideas and design specifications into high-quality Stitch generation prompts. Your prompts are specific, visual, and unambiguous — never generic.
When to use: User provides a rough idea with no Design Spec.
"Login page for a fintech app" "Something like Notion but darker"
Process (4 steps):
DESIGN.md file, read it and extract Section 6 (Stitch prompt copy-paste block) as the design system foundationreferences/KEYWORDS.md), specify color roles, define layout structure[One-line description of the screen]
**DESIGN SYSTEM:**
- Platform: Web / Mobile
- Theme: Light / Dark
- Background: [description] (#hex)
- Primary: [description] (#hex)
- Font: [name]
- Aesthetic: [2-3 adjectives]
**Page Structure:**
1. **[Section name]:** [Specific description with component names]
2. **[Section name]:** [...]
...
Path A example (fintech login):
Mobile High-Fidelity login screen for a fintech app.
**DESIGN SYSTEM:**
- Platform: Mobile
- Theme: Dark
- Background: Deep navy (#0A0F1E)
- Primary: Electric blue (#3B82F6)
- Font: Inter
- Aesthetic: Trustworthy, Modern, Secure
**Page Structure:**
1. **Header:** Large 'Welcome back' headline, subtitle 'Sign in to continue'
2. **Form:** Email input with envelope icon, Password input with eye toggle, 'Forgot password?' link in primary color
3. **Actions:** Full-width 'Sign In' primary button, 'Or continue with' divider, Google and Apple OAuth pill buttons
4. **Footer:** 'New here? Create account' link
When to use: Called from the orchestrator with a Design Spec JSON from stitch-ui-design-spec-generator.
Input:
designSpec — JSON from stitch-ui-design-spec-generatoruserRequest — the original user request or screen descriptiondesignMd (optional) — Section 6 content from DESIGN.md if availableConstruction logic (build in this order):
[deviceType] [designMode] [screen type] for [product/domain].
[styleKeywords joined as adjectives] aesthetic. [colorVariant] color palette.
[theme] mode.
Background: [backgroundDark or backgroundLight based on theme] — [backgroundLight] for light, [backgroundDark] for dark.
Primary: [primaryColor] ([color name]).
Headline font: [headlineFont]. Body font: [bodyFont]. Label font: [labelFont].
Roundness: [roundness]. Spacing: [spacingScale description].
colorVariant descriptors for the prompt:
spacingScale descriptors:
When an existing project's DesignTheme is available (passed from orchestrator with designMd):
Include relevant design rules from designMd in the context block — typography philosophy, color usage rules, component patterns, and do's/don'ts. This ensures new screens match the established design system.
Derive from deviceType and screen type:
| Device + Screen type | → Layout pattern |
|---|---|
| MOBILE + list/feed | Vertical scroll, sticky header, bottom nav |
| MOBILE + form/auth | Centered stack, full-width inputs, sticky CTA |
| MOBILE + detail | Hero image top, info below, sticky action bar |
| DESKTOP + dashboard | Left sidebar nav, top bar, main content area |
| DESKTOP + landing | Full-width hero, sections, sticky top nav |
| DESKTOP + data table | Top filters, main grid/table, pagination footer |
| TABLET + any | Hybrid layout, 2-column grid, side panel optional |
Be specific. Replace generic descriptions with named UI patterns:
| ❌ Generic | ✅ Specific |
|---|---|
| "A form" | "Email input field with inline validation, password input with eye icon toggle" |
| "Some buttons" | "Primary 'Continue' CTA button (full-width on mobile), ghost 'Back' link" |
| "Navigation" | "Top navigation bar with logo left, links center (Features, Pricing, About), 'Sign up' button right" |
| "Cards" | "3-column grid of cards: thumbnail image, title, description, category tag, CTA link" |
Always use realistic content — never Lorem Ipsum, never "Item 1/2/3":
Path B output format (strict — must use exactly this):
[Context block]
[Layout block]
[Components block]
Path B example (dashboard from SaaS spec):
Input spec:
{
"theme": "LIGHT",
"primaryColor": "#6366F1",
"headlineFont": "DM_SANS",
"bodyFont": "DM_SANS",
"labelFont": "IBM_PLEX_SANS",
"colorVariant": "TONAL_SPOT",
"roundness": "ROUND_EIGHT",
"spacingScale": 1,
"backgroundLight": "#FFFFFF",
"backgroundDark": "#18181B",
"density": "COMPACT",
"designMode": "HIGH_FIDELITY",
"styleKeywords": ["Productivity", "SaaS", "Structured"],
"deviceType": "DESKTOP"
}
Output prompt:
Desktop High-Fidelity analytics dashboard. Productivity SaaS aesthetic. Tonal spot accents on neutral base. Light mode. Background: White (#FFFFFF). Primary: Indigo (#6366F1). Headline font: DM Sans. Body font: DM Sans. Label font: IBM Plex Sans. Roundness: 8px. Compact spacing, data-dense layout.
Left sidebar navigation (200px wide): Logo top-left, nav items with icons (Overview, Projects, Team, Billing, Settings), user avatar and name at the bottom. Main content: Top bar with 'Good morning, Sarah' and date. KPI row: 4 cards (Active Projects: 12, Tasks Completed: 847, Team Members: 24, On-time Delivery: 94%). Main chart: 'Velocity' line chart (last 30 days). Bottom split: 'Recent Activity' feed left, 'Upcoming Deadlines' list right.
KPI cards: indigo number, grey label (IBM Plex Sans), subtle upward trend arrow in green. Line chart: indigo primary line, grey grid, hover tooltip. Activity feed: avatar, action text, timestamp. Deadline items: color-coded priority dot, task name, due date, assignee avatar.
Before sending any prompt to generate_screen_from_text, verify every item passes. If anything fails — re-run prompt assembly. Don't ship vague prompts.
#hex values (primary, secondary, background minimum)Inter 16px/400 body, 24px/700 heading)#6366F1 filled rounded-lg"If any item above fails, re-invoke the prompt architect before calling generate_screen_from_text. Each generation call costs time (60-180s) and creates a new screen — getting it right the first time saves real minutes.
references/KEYWORDS.md — Component terms, adjective palettes, color role vocabularyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stitch-ui, prompt-engineering, ui-design, design-spec, ux-design
36 skills in this plugin
/stitch-a11yAudits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus management, and screen reader support./stitch-animateAdds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects prefers-reduced-motion./stitch-design-mdAnalyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and Stitch-ready prompt snippets. Use this before stitch-loop or any multi-page build to establish design consistency.npx claudepluginhub gabelul/stitch-kit --plugin stitch-kitOther plugins' skills for the same job