stitch-loop

Generate pages and integrate them into a Stitch site via iterative baton-passing.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Royincog/cpedia --skill stitch-loop-royincog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stitch-loop
Source: https://github.com/Royincog/cpedia/tree/main/.agents/skills/stitch-loop
Command: npx skills add https://github.com/Royincog/cpedia --skill stitch-loop-royincog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stitch loop enables agents to iteratively build websites using Stitch with an autonomous baton-passing pattern, automating page creation, integration, and next-task handoffs.

Core Features & Use Cases

  • Autonomous baton-passing loop to generate pages and incorporate them into the site structure
  • Reads .stitch/next-prompt.md, generates pages via Stitch MCP tools, and writes the next baton
  • Works with CI/CD or agent chains to trigger iterations and coordinate design-language assets

Quick Start

Place a valid baton in .stitch/next-prompt.md and run the stitch-loop skill to generate the specified page, integrate it into the site, and prepare the next baton for the following iteration.

Frequently Asked Questions about stitch-loop

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

FAQPage Schema
How do I automate site building with Stitch in an iterative loop?

You automate Stitch page generation by placing a valid baton in .stitch/next-prompt.md and running the loop skill, which generates the specified page, integrates it into the site structure, and prepares the next baton for the following iteration.

What files do I need to set up before running autonomous Stitch page generation?

Autonomous Stitch page generation requires a Stitch server, an existing Stitch project, and the presence of .stitch/SITE.md and .stitch/DESIGN.md to guide visuals and navigation during the iterative site building loop.

Can I use a baton-passing pattern to coordinate page creation across CI/CD pipelines?

The baton-passing pattern works with CI/CD or agent chains to trigger iterations and coordinate design-language assets, sequentially handing off page creation and layout refinement tasks within a Stitch project across multiple iterations.

How does the autonomous Stitch loop handle layout refinement and task handoffs?

The autonomous loop handles layout refinement by reading the current baton prompt, generating or refining pages via Stitch MCP tools, and writing a new baton file to seamlessly hand off the next task within the iterative site integration process.

What is the best way to trigger multiple iterations of page creation in a Stitch project?

Triggering multiple iterations of page creation is best achieved by running the Stitch loop skill repeatedly, which processes the current baton, integrates the generated page, and writes the next prompt to sustain the autonomous generation cycle.