stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Analyzes 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 -y skills add gabelul/stitch-kit --skill stitch-design-md --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-design-mdContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyzes 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.
name: stitch-design-md description: Analyzes 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. allowed-tools: - "stitch*:*" - "Read" - "Write"
**Constraint:** Only use this skill when the user explicitly mentions "Stitch" or when preparing design system documentation for Stitch generation.
You are an expert **Design Systems Lead**. Your job is to analyze Stitch project assets and synthesize a **Semantic Design System** into a file named `DESIGN.md` — written in natural language, not CSS.
| Skill | What it produces | Use it for | |-------|-----------------|-----------| | `stitch-design-md` | Natural-language `DESIGN.md` | Feeding back into Stitch prompts; multi-page visual consistency; design docs | | `stitch-design-system` | `design-tokens.css`, `tailwind-theme.css`, `DESIGN.md` | Code-level theming for Next.js, Svelte, React, HTML output |
Use `stitch-design-md` first if you're building more Stitch screens. Use `stitch-design-system` when you're converting to code.
---
If the user pastes a Stitch design URL like `https://stitch.withgoogle.com/projects/3492931393329678076?node-id=375b1aadc9cb45209bee8ad4f69af450`:
1. Parse the URL:
2. Call `[prefix]:get_screen` with those IDs 3. Skip ahead to Step 2
1. Run `list_tools` → find the Stitch MCP prefix 2. Call `[prefix]:list_projects` with `filter: "view=owned"` → select project by title → extract numeric ID 3. Call `[prefix]:list_screens` with `projects/[projectId]` → pick the representative screen 4. Call `[prefix]:get_screen` with numeric `projectId` and `screenId` 5. Call `[prefix]:get_project` with `projects/[projectId]` → get full `designTheme` including:
# Download the HTML for color and Tailwind class analysis bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "temp/source.html"
Parse the HTML for:
---
Work through these layers systematically:
If `designTheme.description` exists, use it as the starting point. If `designTheme.designMd` exists, it contains a full design system document — extract the creative direction, do's/don'ts, and component philosophy from it.
Then describe the aesthetic in 2–3 sentences. Go beyond generic adjectives — what does it feel like? What editorial or product category does it evoke?
Examples:
**If `namedColors` is available from `get_project`:** Use it as the authoritative color source. It provides 40+ semantic tokens (primary, secondary, tertiary, surface hierarchy, error states, inverse variants). Map these directly to palette documentation instead of guessing from HTML.
**If `backgroundLight`/`backgroundDark` are available:** Use them as the canonical background colors for light/dark modes.
For each key color, write:
[Descriptive name] ([hex]) — [functional role]
Example:
Deep Muted Teal-Navy (#294056) — Primary actions, links, active states Warm Barely-There Cream (#FCFAFA) — Page background Charcoal Near-Black (#2C2C2C) — Headlines and product names Soft Warm Gray (#6B6B6B) — Body copy and metadata
Aim for 4–6 colors. Include light AND dark mode backgrounds if both present.
Translate Tailwind classes to descriptive language:
Describe shadow presence and style:
---
Use this exact structure:
# Design System: [Project Title] **Project ID:** [numeric ID] **Devic
Your 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…
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…
Iteratively build multi-page websites using Stitch. Reads next-prompt.md (the baton), generates the next page with Stitch MCP, integrates it into the site,…