/stitch-kit:stitch-loopfrom stitch-kit
Iteratively builds multi-page websites using Stitch MCP. Reads next-prompt.md, generates pages with Stitch, integrates them, and updates the baton for continuous loop.
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.
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.
stitch-setup skill or https://stitch.withgoogle.com/docs/mcp/guide/)DESIGN.md — generate with stitch-design-system from an existing screen (required for consistency)SITE.md — site vision, Stitch project ID, sitemap, roadmap (create if missing)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:
page frontmatter → output filename (about.html)DESIGN.md Section 6next-prompt.md at the end of every iteration — the loop stops if this is missingParse next-prompt.md:
page from YAML frontmatter| 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.
list_tools → find Stitch MCP prefixstitch.json exists, use stored projectId — do not create a new projectstitch.json, call create_project → save numeric ID to stitch.jsongenerate_screen_from_text:
projectId: numeric ID (no projects/ prefix)prompt: full baton content including DESIGN SYSTEM blockdeviceType: match what's in SITE.md or DESIGN.mdget_screen with numeric projectId + screenIdbash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "queue/[page].html"queue/[page].pngqueue/[page].html → site/public/[page].htmlsite/public/)href="#" placeholders with real paths to existing pagesIf chrome* tools are in list_tools:
npx serve site/public -p 3000http://localhost:3000/[page].htmlqueue/[page].png[x] [page].html to the sitemapYou must update next-prompt.md before completing — the loop stalls if you skip this.
next-prompt.md with:
page: <next-page-name>)**DESIGN SYSTEM (REQUIRED):** block copied verbatim from DESIGN.md Section 6project/
├── 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...
next-prompt.md (loop stops)DESIGN.md Section 6 from the prompt (causes visual drift)projects/ID format instead of numeric in generate_screen_from_texthref="#" instead of wiring real page linksstitch.json (creates new project every iteration)| 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 |
scripts/fetch-stitch.sh — Reliable GCS HTML downloaderstitch-design-system — Generate DESIGN.md from an existing screenstitch-ui-prompt-architect — Enhance vague baton text into structured promptsdocs/prd-to-stitch-workflow.md — PRD-driven multi-screen workflowWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stitch, multi-page, iterative-building, baton-system, website-generation, mcp
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./stitch-design-systemExtracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic design system document. Run this before framework conversion skills./stitch-html-componentsConverts 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 via prefers-color-scheme, mobile-first responsive, zero framework dependencies. Works in browsers, WebViews, Capacitor, and Ionic. Only the Stitch route needs an API key./stitch-ideateConversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich PRD document and auto-generates Stitch screens. Your design buddy that thinks deeply before designing.npx claudepluginhub gabelul/stitch-kit --plugin stitch-kitOther plugins' skills for the same job