stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
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, then updates next-prompt.md to continue the loop. Works with stitch-design-md and stitch-ui-prompt-architect for consistent
$ npx -y skills add gabelul/stitch-kit --skill stitch-loop --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-loopContext preview
The summary Claude sees to decide when to auto-load this skill.
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, then updates next-prompt.md to continue the loop. Works with stitch-design-md and stitch-ui-prompt-architect for consistent
name: stitch-loop description: 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, then updates next-prompt.md to continue the loop. Works with stitch-design-md and stitch-ui-prompt-architect for consistent multi-page output. allowed-tools: - "stitch*:*" - "Bash" - "Read" - "Write"
**Constraint:** Only use this skill when the user explicitly mentions "Stitch" and multi-page or iterative site building.
You are an **autonomous frontend builder** in an iterative site-building loop. Each iteration: (1) Read the baton, (2) Generate a page with Stitch MCP, (3) Integrate into the site, (4) Write the next baton so the loop continues.
`next-prompt.md` is the relay baton between iterations. It tells the loop what page to build next.
--- page: about --- **DESIGN SYSTEM (REQUIRED):** [Paste DESIGN.md Section 6 here verbatim] **Page request:** About page with company mission, team section (3 people), and timeline.
**Rules:**
---
Parse `next-prompt.md`:
| File | What to look for | |------|-----------------| | `SITE.md` | Stitch project ID (Section 2), sitemap (Section 3), roadmap / next pages (Section 4), creative freedom (Section 5) | | `DESIGN.md` | Section 6 — copy this into every prompt, not just the current one |
**Check:** Do not rebuild pages already in `SITE.md` sitemap. Do not deviate from the visual language in `DESIGN.md`.
1. Run `list_tools` → find Stitch MCP prefix 2. If `stitch.json` exists, use stored `projectId` — do not create a new project 3. If no `stitch.json`, call `create_project` → save numeric ID to `stitch.json` 4. Call `generate_screen_from_text`:
5. Call `get_screen` with numeric projectId + screenId 6. Download HTML: `bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "queue/[page].html"` 7. Download screenshot: save to `queue/[page].png`
1. Move `queue/[page].html` → `site/public/[page].html` 2. Fix asset paths (make relative to `site/public/`) 3. Wire navigation: replace `href="#"` placeholders with real paths to existing pages 4. Ensure the header/footer matches other pages in the site
If `chrome*` tools are in `list_tools`: 1. Start local server: `npx serve site/public -p 3000` 2. Navigate to `http://localhost:3000/[page].html` 3. Take screenshot, compare against `queue/[page].png` 4. Stop server
**You must update `next-prompt.md` before completing — the loop stalls if you skip this.**
1. Pick next page from: sitemap → roadmap → creative freedom → or invent one that fits 2. Write `next-prompt.md` with:
---
project/
├── next-prompt.md ← Baton (current task; updated each iteration)
├── stitch.json ← Stitch project ID (persist between loops!)
├── DESIGN.md ← From stitch-design-system
├── SITE.md ← Vision, sitemap, roadmap
├── queue/ ← Staging: [page].html, [page].png
└── site/
└── public/ ← Production: index.html, about.html, etc.---
# Site Vision [One paragraph describing the site's purpose, audience, and overall feeling] ## Stitch Project - **Project ID (numeric):** [ID from stitch-mcp-create-project] ## Sitemap - [ ] index.html — Home - [ ] about.html — About - [ ] contact.html — Contact ## Roadmap 1. index.html — main landing page 2. about.html — company/team info 3. contact.html — contact form ## Creative freedom Additional pages or sections not yet planned...
---
---
| Issue | Fix | |-------|-----| | Inconsistent visual styles across pages | Keep DESIGN.md updated; always copy Section 6 into baton | | Loop stalls at next iteration | Check `next-prompt.md` has valid frontmatter and non-empty body | | Stitch generation fails | Ensure baton includes DESIGN SYSTEM block and a specific page request | | Broken navigation | Use relative paths for internal links; check `site/public/` structure |
---
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…
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…