1.4 KiB
1.4 KiB
Stitch Build Loop Skill
Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern.
Install
npx add-skill google-labs-code/stitch-skills --skill stitch-loop --global
What It Does
Enables continuous, autonomous website development through a "baton" system:
- Agent reads task from
next-prompt.md - Generates page via Stitch MCP tools
- Integrates into site structure
- Writes next task to continue the loop
Prerequisites
- Stitch MCP Server access
- A
DESIGN.mdfile (generate with thedesign-mdskill) - A
SITE.mdfile for project context
Example Prompt
Read my next-prompt.md and generate the page using Stitch, then prepare the next iteration.
Skill Structure
stitch-loop/
├── SKILL.md — Core pattern instructions
├── README.md — This file
├── resources/
│ ├── baton-schema.md — Baton file format spec
│ └── site-template.md — SITE.md/DESIGN.md templates
└── examples/
├── next-prompt.md — Example baton
└── SITE.md — Example site constitution
Works With
design-mdskill: GenerateDESIGN.mdfrom existing Stitch screens- CI/CD: GitHub Actions can trigger new iterations on push
- Agent chains: Dispatch to other agents (Jules, etc.)
Learn More
See SKILL.md for complete instructions.