Agent skill · software engineering · aiskillstore
stitch-loop
Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern
Why this skill is useful
Adds an executable script for an autonomous website building loop using Stitch, which is not commonly found in public documentation.
What it needs
Requires bash, chrome, stitch installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Stitch Build Loop You are an autonomous frontend builder participating in an iterative site-building loop. Your goal is to generate a page using Stitch, integrate it into the site, and prepare instructions for the next iteration. Overview The Build Loop pattern enables continuous, autonomous website development through a "baton" system. Each iteration: 1. Reads the current task from a baton file (next-prompt.md) 2. Generates a page using Stitch MCP tools 3. Integrates the page into the site structure 4. Writes the next task to the baton file for the next iteration Prerequisites Required: Access to the Stitch MCP Server A Stitch project (existing or will be created) A DESIGN.md file (generate one using the design-md skill if needed) A SITE.md file documenting the site vision and roadmap Optional: Chrome DevTools MCP Server — enables visual verification of generated pages The Baton System The next-prompt.md file acts as a relay baton between iterations: Critical rules: The page field in YAML frontmatter determines the output filename The prompt content must include the design system block from DESIGN.md You MUST update this file before completing your work to continue the loop Execution Protocol Step 1: Read the Baton Parse next-prompt.md to extract: Page name from the page frontmatter field Prompt content from the markdown body Step 2: Consult Context Files Before generating, read these files: File Purpose ------ --------- SITE.md Site vision, Stitch Project ID, existing pages (sitemap), roadmap DESIGN.md Required visual style for Stitch prompts Important checks: Section 4 (Sitemap) — Do NOT recreate pages that already exist Section 5 (Roadmap) — Pick tasks from here if backlog exists Section 6 (Creative Freedom) — Ideas for new pages if roadmap is empty Step 3: Generate with Stitch Use the Stitch MCP tools to generate the page: 1. Discover namespace: Run listtools to find the Stitch MCP prefix 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/stitch-loop