stitch-loop

Generate and integrate Stitch pages through a baton-passing loop.

8.0k|1.1k|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/google-labs-code/stitch-skills --skill stitch-loop-google-labs-code
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stitch-loop
Source: https://github.com/google-labs-code/stitch-skills/tree/main/skills/stitch-loop
Command: npx skills add https://github.com/google-labs-code/stitch-skills --skill stitch-loop-google-labs-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables autonomous, end-to-end site construction by orchestrating Stitch-based page generation within a baton-passing loop, removing manual handoffs and speeding iteration.

Core Features & Use Cases

  • Automated Page Generation: Reads baton input from next-prompt.md, generates a page with Stitch MCP tools, and wires it into the site.
  • Context-Aware Design Integration: Uses SITE.md and DESIGN.md to maintain consistent visuals and structure across iterations.
  • Workflow Orchestration: Writes the next baton to next-prompt.md and supports agent chains, CI/CD triggers, and human-in-the-loop oversight when needed.

Quick Start

Run the stitch-loop skill to begin an autonomous iteration that reads next-prompt.md, builds a page with Stitch, and prepares the next baton.

Frequently Asked Questions about stitch-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative website generation using Stitch MCP tools?▼

Automated iterative website generation with Stitch MCP tools is driven by a baton-passing loop that reads next-prompt.md, generates a page, and writes the next baton for continuous progression. It removes manual handoffs during page creation.

How does baton-passing work for sequential site construction?▼

Baton-passing for sequential site construction works by reading a prompt from next-prompt.md, generating a page with Stitch, then writing the next prompt back into next-prompt.md to drive deterministic loop continuation across iterations.

Do I need DESIGN.md and SITE.md files for design-system integration in Stitch?▼

Yes, DESIGN.md and SITE.md files are required for design-system integration. They provide the context needed to maintain consistent visual structure and styling across all generated pages during the autonomous iteration loop.

Can I use autonomous page generation loops with CI/CD pipelines and agent chains?▼

Autonomous page generation loops support CI/CD triggers, agent chains, and human-in-the-loop oversight. The workflow orchestration writes the next baton to next-prompt.md, enabling seamless integration with automated deployment pipelines.

What is the best way to maintain consistent visuals across automated page iterations?▼

To maintain consistent visuals across automated page iterations, use SITE.md and DESIGN.md context files alongside Stitch MCP tools. The loop reads these files during each generation cycle to enforce design-system rules.