Build web pages from Stitch designs with stitch-skills
stitch-skills is a library of Agent Skills that lets a coding agent drive the Stitch MCP server to generate, extract, upload and build screens, including a baton-passing loop that builds a whole site one page at a time.
TL;DR
stitch-skills packages Google Stitch workflows as Agent Skills for Codex, Antigravity, Gemini CLI, Claude Code, Cursor and OpenCode. You install the plugins, connect the Stitch MCP server, then ask your agent in plain words to generate a design, extract a DESIGN.md or build a page. The stitch-loop skill chains these into an autonomous page-by-page site build.
Why this repo matters
Agents are good at code and weak at visual consistency. Stitch generates screens, and these skills teach the agent how to call the Stitch MCP tools in the right order, keep a DESIGN.md as the shared visual source of truth, and move results into real code. The README lists three plugins: stitch-design (create and manage designs), stitch-build (turn screens into React, React Native, Remotion videos and more) and stitch-utilities (prompt enhancement, DESIGN.md generation, the build loop).
Best practices
- Configure the Stitch MCP server first. The README states the skills require it, plus the credentials from its setup guide.
- Install selectively with care: the README warns the design skills often depend on each other, so include every dependency.
- Keep a
.stitch/DESIGN.md. Institch-loopbaton prompts, paste its design-system block in; the skill marks this as required and lists leaving it out as a pitfall. Forgenerate-design, the opposite applies: once a project-level design system exists, the skill says not to put colour, font or theme instructions in the prompt. - Persist
.stitch/metadata.json(project and screen IDs) so later iterations can edit or vary existing screens. - Let
enhance-promptpolish vague ideas before generation; it adds platform, structure, style and colour detail. - Follow the Agent Skills layout in your own additions:
SKILL.md,scripts/,resources/,examples/.
How-to
Where do I start?
1. Install the plugins
You asked: how do I get these skills into my agent?
For Claude Code, the README gives npx plugins add google-labs-code/stitch-skills --scope project --target claude-code. For Cursor, use the same command with --scope workspace --target cursor. Codex uses codex plugin marketplace add google-labs-code/stitch-skills --ref main, then you install stitch-design, stitch-build and stitch-utilities as needed. To pick individual skills, run npx skills add google-labs-code/stitch-skills.
Next: Connect Stitch
Try it
Pick a tiny project. Ask your agent: "Enhance this prompt: 'make a settings page'", then generate it with generate-design. Finally ask it to extract a DESIGN.md from the result, upload it as a design system with manage-design-system, and generate a second screen. Compare the two screens.
Pitfalls
- Forgetting to rewrite
.stitch/next-prompt.mdat the end of an iteration breaks the loop (listed in the skill's pitfalls). - Recreating a page that already exists in the SITE.md sitemap.
- Leaving placeholder
href="#"links instead of wiring real navigation. - OpenCode needs lowercase kebab-case skill names and different tool names; the README says
stitch::...names must be renamed manually.