Agent skill · Stitch Skills
/stitch-loop Build a multi-page site with an autonomous Stitch loop
stitch-loop sets up a repeatable cycle in which each agent run builds one page. A baton file names the next page and carries its prompt; the agent generates it in Stitch, moves the HTML into the site, wires navigation, updates the sitemap and writes the next baton. It can run under CI, agent chains or manual review.
Works with
- Codex
- Claude Code
- Cursor
- Any Agent Skills host
- OpenCode
When to use it
- You want a multi-page marketing or portfolio site generated in consistent style.
- You want an agent to keep extending a site from a roadmap across many runs.
- You want each page checked against its Stitch screenshot in a browser.
How it works
- 1Read the baton
The agent parses .stitch/next-prompt.md for the page name and prompt, which must include the design-system block from DESIGN.md.
- 2Consult context
It reads SITE.md for the project ID, existing pages, roadmap and ideas, and refuses to recreate pages already built.
- 3Generate and download
It generates the screen in Stitch, records IDs in metadata.json and downloads full-resolution HTML and screenshots, asking before overwriting local files.
- 4Integrate and verify
It moves the page into site/public, fixes asset paths, wires placeholder links and, if Chrome DevTools MCP is present, compares a screenshot.
- 5Pass the baton
It marks the page in the sitemap, updates the roadmap and writes the next page's prompt so the loop continues.
What it steers the agent away from
- Rebuilding a page that is already in the sitemap
- Leaving href="#" placeholder links unwired
- Ending a run without writing the next baton
Install this skill
It installs with the Stitch Skills pack.
CodexAdds the marketplace; then install stitch-design, stitch-build and stitch-utilities as needed. The sparse flags are optional.
codex plugin marketplace add google-labs-code/stitch-skills --ref main \
--sparse .agents/plugins \
--sparse plugins/stitch-design \
--sparse plugins/stitch-build \
--sparse plugins/stitch-utilitiesClaude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-codeCursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursorAny Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skillsOpenCodeCopy each skill folder by hand and add the Stitch MCP server as a remote entry in opencode.json; skills named stitch::… need renaming to kebab-case.
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-designCommands come from the author’s README; check it for changes before you run them.
Questions
What files must exist before the first run?
A .stitch/DESIGN.md, which the design-md skill can create, and a .stitch/SITE.md describing the vision and roadmap, which site-md can draft.
What triggers the next iteration?
The skill does not care: a CI job watching the baton file, a person rerunning the agent, or one agent dispatching another all work.
More guides from Stitch Skills
/react-componentsTurn Stitch screens into modular, validated React codeConverts Stitch screens into modular Vite and React components with hooks, mock data, typed props and an AST validator.Read the guide →/remotionMake a walkthrough video from your Stitch screensProduces a walkthrough video of a Stitch project's screens in Remotion with transitions, zooms and text overlays.Read the guide →/extract-design-mdReverse-engineer a design system from frontend sourceBuilds a Stitch-ready DESIGN.md from frontend source files, Tailwind configs and theme tokens without running the app.Read the guide →/generate-designGenerate and refine Stitch screens from better promptsCreates Stitch screens from text or images, edits existing ones and generates up to five variants, after rewriting the prompt.Read the guide →
Also in this pack
/react-nativeTranslates Stitch HTML designs into React Native components with StyleSheet, a shared theme file and native navigation.↗/react-vite-dashboardTurns Stitch screens into data-dense React and Vite dashboards using TanStack Query, DESIGN.md tokens and optional ethers or viem reads.↗/shadcn-uiGuides finding, installing and customising shadcn/ui components through the shadcn MCP tools and CLI.↗/code-to-designMoves an existing web app into Stitch by snapshotting it as static HTML, deriving its DESIGN.md and uploading both.↗/extract-static-htmlCaptures a running app as one self-contained HTML file with inlined CSS and images, via Puppeteer or a browser agent.↗/manage-design-systemCreates or updates a Stitch design system from DESIGN.md and applies it to a project's screens through MCP calls.↗/upload-to-stitchUploads local images, mockups, HTML or markdown to a Stitch project with a script that avoids MCP token limits.↗/enhance-promptTurns a rough UI idea into a structured Stitch prompt with platform, page sections, UI terms and DESIGN.md context.↗/taste-designWrites a DESIGN.md with strict anti-generic rules for type, colour, asymmetric layout and motion to steer Stitch output.↗
Summary by trendhub. The skill itself lives in google-labs-code/stitch-skills/plugins/stitch-utilities/skills/stitch-loop by Google Labs Code (Apache-2.0); read the full, current text there.