stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Builds Stitch-ready prompts via two paths — Path A enhances vague ideas into polished prompts, Path B merges a Design Spec JSON + user request into a structured [Context] [Layout] [Components] prompt.
$ npx -y skills add gabelul/stitch-kit --skill stitch-ui-prompt-architect --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-ui-prompt-architectContext preview
The summary Claude sees to decide when to auto-load this skill.
Builds Stitch-ready prompts via two paths — Path A enhances vague ideas into polished prompts, Path B merges a Design Spec JSON + user request into a structured [Context] [Layout] [Components] prompt.
name: stitch-ui-prompt-architect description: Builds Stitch-ready prompts via two paths — Path A enhances vague ideas into polished prompts, Path B merges a Design Spec JSON + user request into a structured [Context] [Layout] [Components] prompt. allowed-tools: - "Read"
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):**
1. **Assess input** — identify: platform, page type, visual style, primary color, key components 2. **Check for DESIGN.md** — if the project has a `DESIGN.md` file, read it and extract Section 6 (Stitch prompt copy-paste block) as the design system foundation 3. **Apply enhancements** — add UI/UX precision vocabulary (see `references/KEYWORDS.md`), specify color roles, define layout structure 4. **Format the output:**
[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:**
**Construction 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",
"headlineFYour coding agent writes decent code and designs terrible UI. stitch-kit fixes the second half — it wires agents into Google Stitch (text prompts → genuinely beautiful screens) and teaches them to drive it properly.
Repo: gabelul/stitch-kit
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects…
Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and…
Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic…
Converts a Stitch screen, a local HTML file, or a URL into clean, platform-agnostic HTML5 + CSS — semantic markup, CSS custom properties for theming, dark mode…
Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich…