Google's official Stitch skill for generating and editing UI screens from text or images — with a mandatory prompt-enhancement pipeline before every call.
Stitch: Build LoopSkill
Summary
Google's official Stitch skill for autonomous multi-page site building — a baton file carries the next task from one agent iteration to the next.
Features
- Builds a site page by page across autonomous agent iterations
- Uses a `.stitch/next-prompt.md` baton file to pass the next task forward
- Reads `.stitch/SITE.md` for site vision and roadmap and `.stitch/DESIGN.md` for the design system
- Requires each iteration to rewrite the baton before finishing, so the loop cannot stall
- Optionally verifies rendered pages visually through the Chrome DevTools MCP server
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
stitch-loop is Google Labs' official skill for letting an agent build a whole site with Stitch
rather than a single screen, and its answer to the hard part — keeping a long autonomous run coherent — is a file
passed hand to hand.
Each iteration reads .stitch/next-prompt.md, the "baton". YAML frontmatter names the page to build, and the body
holds the prompt, including a design-system block copied from .stitch/DESIGN.md. The agent generates that page
through the Stitch MCP server, integrates it into the site structure, and then — before it is allowed to finish —
writes the next task back into the baton. The loop continues because each run is required to set up the one after it.
Two context files keep iterations aligned: .stitch/SITE.md carries the site vision and roadmap so pages accumulate
into a plan instead of a pile, and .stitch/DESIGN.md carries the design system so page twelve still matches page
one. Where the Chrome DevTools MCP server is also connected, the agent can load what it just produced and check it
visually before passing the baton.
It expects access to the Stitch MCP server, a Stitch project, and both context files — design-md generates the
DESIGN.md if you do not have one. Apache-2.0 licensed.
Related Skills
Skill: Stitch: DESIGN.md
by Google Labs (Stitch)
Google's official Stitch skill for distilling a project into a DESIGN.md — a semantic design system agents can read before they generate anything.
Skill: Stitch: shadcn/ui
by Google Labs (Stitch)
Google's official Stitch build skill for shadcn/ui — component discovery, installation, customisation and the conventions that keep a generated UI idiomatic.
Skill: Stitch: Code to Design
by Google Labs (Stitch)
Google's official Stitch skill that reverses the usual direction — turns an existing React, Vue, Angular or Vite front end back into an editable Stitch design.