Agent skill UI design
Stitch Loop
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add google-labs-code/stitch-skills --skill stitch-loop --agent claude-code --yesCheck this file in your project.claude/skills/stitch-loop/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add google-labs-code/stitch-skills --skill stitch-loopSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Stitch MCP access, an existing authorized project or permission to create one, a page brief, and the .stitch/DESIGN.md and .stitch/SITE.md files. The Open Design entry is a discovery pointer. This page’s command installs the full workflow from google-labs-code/stitch-skills. If a same-name Skill is installed, check its source in skills-lock.json first.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Task
- Generate and review one new page in a Stitch project
- Inputs
- Stitch MCP access, an existing authorized project or permission to create one, a page brief, and the .stitch/DESIGN.md and .stitch/SITE.md files.
- Deliverable
- An integrated and reviewed local page, updated sitemap and roadmap notes, and a new task in .stitch/next-prompt.md for the next run.
- Skill name
stitch-loop- Repository
nexu-io/open-design
Define an outcome you can verify
An underspecified prompt
Keep rebuilding pages in Stitch until the site looks finished.
Without a clear page slug, design rules and existing-page inventory, each run can redo a page or leave navigation unwired.
A verifiable workflow
- Set a unique page slug, include the visual rules, and confirm the site roadmap.
- Save real exported HTML and a reference capture, then wire local navigation.
- Compare the live preview, update site notes, and leave an intentional next step.
Stitch Loop operation manual
An integrated and reviewed local page, updated sitemap and roadmap notes, and a new task in .stitch/next-prompt.md for the next run.
Stitch MCP access, an existing authorized project or permission to create one, a page brief, and the .stitch/DESIGN.md and .stitch/SITE.md files.
Prepare the task file for one page
Set a unique page slug, include the visual rules, and confirm the site roadmap.
Prompt · Step 1Read stitch-loop/SKILL.md installed from google-labs-code/stitch-skills and use its full workflow. Check the connected MCP tools and access to the target. Use [page brief and slug] to read .stitch/SITE.md, the current .stitch/next-prompt.md and the design system notes in section 6 of .stitch/DESIGN.md. Check the site map for an existing page and confirm the target Stitch project. Prepare one next-prompt.md with the correct page frontmatter and the visual rules in its body. Report which project and page will be used.Generate through Stitch and integrate the exported page
Save real exported HTML and a reference capture, then wire local navigation.
Prompt · Step 2Read stitch-loop/SKILL.md installed from google-labs-code/stitch-skills and use its full workflow. Check the connected MCP tools and access to the target. For [confirmed project and task file], use the installed Stitch Loop Skill to find the available MCP tools, generate the screen and update .stitch/metadata.json. If local exports already exist, ask whether to reuse or refresh them. When generating, save the HTML and screenshot under .stitch/designs before integrating the page in the local site. Fix actual asset paths and navigation, and preserve the site header and footer.Review the page and prepare the next task
Compare the live preview, update site notes, and leave an intentional next step.
Prompt · Step 3Read stitch-loop/SKILL.md installed from google-labs-code/stitch-skills and use its full workflow. Check the connected MCP tools and access to the target. Open [local preview for the generated page] and compare it with the saved Stitch screenshot. Test links into and out of the new page and check for missing assets. Record what passed in .stitch/SITE.md, move the finished item out of the roadmap, and prepare the next approved candidate in .stitch/next-prompt.md. Show the preview and stop after this run.
Look up a workflow detail
Open the corresponding documentation below.
Can I use an existing local Stitch export?SKILL.md
- Command or reference
.stitch/next-prompt.md, .stitch/SITE.md, .stitch/DESIGN.md- Examples
- Yes. The Google Skill checks for .stitch/designs/{page}.html and .png before downloading. Choose whether to reuse or refresh them, then verify the relative paths and rendered output in your local site.
Troubleshooting and FAQ
Can I use an existing local Stitch export?
Yes. The Google Skill checks for .stitch/designs/{page}.html and .png before downloading. Choose whether to reuse or refresh them, then verify the relative paths and rendered output in your local site.
What if I already installed the Open Design entry?
The Open Design entry is a discovery pointer. This page’s command installs the full workflow from google-labs-code/stitch-skills. If a same-name Skill is installed, check its source in skills-lock.json first.