The project's README from github.com/google-labs-code/stitch-skills. As one markdown file: README.md.
A collection of agent skills and plugins for Google Stitch, following the Agent Skills open standard. Compatible with coding agents including Antigravity, Claude Code, Codex, Cursor, GitHub Copilot, and OpenCode.
These skills require the Stitch MCP server (https://stitch.googleapis.com/mcp).
stitch MCP server for your agent below (store API keys in your global/user config or environment variables — never commit keys to git):~/.gemini/config/mcp_config.jsonAdd to ~/.gemini/config/mcp_config.json (global), then verify under Customizations → Installed → MCP Servers (or /mcp in the CLI):
{
"mcpServers": {
"stitch": {
"serverUrl": "https://stitch.googleapis.com/mcp",
"headers": {
"X-Goog-Api-Key": "YOUR_STITCH_API_KEY"
}
}
}
}
claude mcp addclaude mcp add --transport http stitch https://stitch.googleapis.com/mcp \
--header "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \
--scope user
Verify with claude mcp list or /mcp inside a session.
~/.codex/config.tomlExport STITCH_API_KEY in your shell, then add to ~/.codex/config.toml:
[mcp_servers.stitch]
url = "https://stitch.googleapis.com/mcp"
[mcp_servers.stitch.env_http_headers]
X-Goog-Api-Key = "STITCH_API_KEY"
(Alternatively, use [mcp_servers.stitch.http_headers] with a literal key value.)
~/.cursor/mcp.jsonAdd to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project, using ${env:STITCH_API_KEY} to avoid committing secrets):
{
"mcpServers": {
"stitch": {
"url": "https://stitch.googleapis.com/mcp",
"headers": {
"X-Goog-Api-Key": "${env:STITCH_API_KEY}"
}
}
}
}
opencode.jsonExport STITCH_API_KEY in your shell, then add to ~/.config/opencode/opencode.json (global) or project opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"stitch": {
"type": "remote",
"url": "https://stitch.googleapis.com/mcp",
"enabled": true,
"oauth": false,
"headers": {
"X-Goog-Api-Key": "{env:STITCH_API_KEY}"
}
}
}
}
.vscode/mcp.json (or user mcp.json){
"servers": {
"stitch": {
"type": "http",
"url": "https://stitch.googleapis.com/mcp",
"headers": {
"X-Goog-Api-Key": "${input:stitch_api_key}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "stitch_api_key",
"description": "Google Stitch API Key",
"password": true
}
]
}
Docs navigation: If a link on stitch.withgoogle.com/docs redirects incorrectly, open the target path under the same host (e.g.
https://stitch.withgoogle.com/docs/learn/device-types/).
Paste this prompt into your coding agent (Antigravity, Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, etc.):
Install all Stitch Design Skills from https://github.com/google-labs-code/stitch-skills for this coding agent (globally). Read the repository's README.md and use the recommended installation method for my platform, then check whether the Stitch MCP server is configured and guide me if any setup is still needed.
[!TIP] Swap
(globally)for(in this workspace only)if you want project-scoped installation, or ask for a specific plugin bundle (stitch-design,stitch-build, orstitch-utilities).
This repository packages 16 skills into 3 skill-only plugins (stitch-design, stitch-build, stitch-utilities). Choose whichever cross-platform installer fits your agent:
Option A — Install skills (npx skills, broadest platform support)
Works across Antigravity, Claude Code, Codex, Cursor, GitHub Copilot, and other Agent Skills–compatible clients:
# Install all 16 Stitch skills (auto-detects your installed agents)
npx skills add google-labs-code/stitch-skills --skill '*'
# Target a specific agent globally (-g) or for the current workspace (omit -g)
npx skills add google-labs-code/stitch-skills --skill '*' -a <agent> -g
# Or install skills selectively via an interactive prompt
npx skills add google-labs-code/stitch-skills
Option B — Install plugin bundles (npx plugins, user scope)
Installs stitch-design, stitch-build, and stitch-utilities as plugins for claude-code, cursor, codex, github-copilot, vscode, grok, and kimi:
# Auto-detect installed targets (installs to user scope)
npx plugins add google-labs-code/stitch-skills
# Or target a specific client explicitly
npx plugins add google-labs-code/stitch-skills --target claude-code
npx plugins add google-labs-code/stitch-skills --target cursor
npx plugins add google-labs-code/stitch-skills --target codex
[!IMPORTANT] Stitch Design Skills often have inter-dependencies (for example,
stitch::code-to-designchainsstitch::extract-static-html,stitch::extract-design-md, andstitch::upload-to-stitch). If you install selectively, include all required dependencies.
| Platform | Skills CLI (npx skills -a) |
Plugins CLI (npx plugins -t) |
Native / Manual Option |
|---|---|---|---|
| Antigravity | antigravity / antigravity-cli |
— | Local agy plugin install / plugins/ |
| Claude Code | claude-code |
claude-code |
— |
| Codex | codex |
codex |
Codex Plugin Marketplace (CLI or UI) |
| Cursor | cursor |
cursor |
— |
| GitHub Copilot / VS Code | github-copilot |
github-copilot / vscode |
— |
| OpenCode | opencode (see naming note) |
— | Copy into .opencode/skills/ + opencode.json |
Expand your platform below for native plugin/skill commands or platform-specific caveats:
agy plugin or manual)[!NOTE]
npx pluginsdoes not support Antigravity yet. Usenpx skills add google-labs-code/stitch-skills --skill '*' -a antigravity -g(or-a antigravity-clifor the CLI) above for a one-command install, or install the three plugin bundles below so you can toggle them under Customizations → Installed.
Clone the repository and install each plugin directory via the Antigravity CLI (syncs automatically with the Antigravity App):
git clone https://github.com/google-labs-code/stitch-skills.git
agy plugin install ./stitch-skills/plugins/stitch-design
agy plugin install ./stitch-skills/plugins/stitch-build
agy plugin install ./stitch-skills/plugins/stitch-utilities
Or copy (or symlink) the plugin directories into ~/.gemini/config/plugins/ (global) or <your-project>/.agents/plugins/ (workspace):
mkdir -p ~/.gemini/config/plugins
cp -R stitch-skills/plugins/stitch-design \
stitch-skills/plugins/stitch-build \
stitch-skills/plugins/stitch-utilities \
~/.gemini/config/plugins/
Alternatively, register the cloned plugins/ directory without copying by adding it to ~/.gemini/config/plugins.json (global) or .agents/plugins.json (workspace):
{
"entries": [
{ "path": "/absolute/path/to/stitch-skills/plugins" }
]
}
Skills load automatically on the next turn. See the Antigravity Plugins docs for details.
In addition to npx plugins add google-labs-code/stitch-skills --target codex, you can register the Stitch Skills marketplace directly in Codex and install any combination of stitch-design, stitch-build, and stitch-utilities.
Via CLI:
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-utilities
[!TIP] The
--sparseflags are optional — they limit the checkout to only the listed paths for a faster clone. Omit them to pull the entire repository.
Via the Codex UI:
Navigate to Settings → Plugin Marketplaces → Add and fill in:
| Field | Value |
|---|---|
| Source | https://github.com/google-labs-code/stitch-skills |
| Git ref | main |
| Sparse paths | (optional) .agents/plugins, plugins/stitch-design, plugins/stitch-build, plugins/stitch-utilities |
OpenCode does not use npx plugins or the Codex/Claude marketplace layout. Although npx skills ... -a opencode is supported, 8 of the 16 skills use stitch::… names that require manual renaming for OpenCode.
Copy the skill folders you need into .opencode/skills/ (OpenCode also discovers .claude/skills/ and .agents/skills/; see OpenCode skills docs):
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-design
# repeat for other skills under plugins/*/skills/
Naming: OpenCode requires skill
namefrontmatter to be lowercase kebab-case and match the directory name. Skills that usestitch::…names need theirnamefield and folder aligned before OpenCode will load them. Extra frontmatter such asallowed-toolsis ignored.
Tool names inside skill instructions may differ from OpenCode builtins (webfetch / bash instead of web_fetch / run_command). Prefer the OpenCode tool names when adapting a skill for OpenCode. For Stitch MCP setup in opencode.json, see Prerequisites.
For all CLI options and detected targets, run npx skills --help, npx plugins --help, or npx plugins targets.
stitch-design)Core design workflows for creating, managing, and optimizing designs within Stitch.
| Skill | Description | Prompt Example |
|---|---|---|
| stitch::code-to-design | Convert frontend code (React, Vue, etc.) to a Stitch Design via HTML extraction + design system + upload | "Upload the frontend code at /path/to/dashboard into a Stitch project named 'Dashboard-Migration-2026'." |
| stitch::generate-design | Generate new screens from text or images, edit existing screens, and create design variants | · "Make a browse tab for a mobile app for romance and date night ideas." · "Edit the login screen to add a 'Remember Me' checkbox and change the button color to blue." · "Generate 3 design variants of the home screen with dark mode and high-density layouts." |
| stitch::manage-design-system | Manage design systems in Stitch — upload DESIGN.md and apply themes to screens | "Upload our design system from .stitch/DESIGN.md and apply it to all screens." |
| stitch::extract-design-md | Extract a comprehensive DESIGN.md directly from frontend source code | "Scan /src and extract the design system into .stitch/DESIGN.md." |
| stitch::extract-static-html | Extract self-contained static HTML from running web apps, inlining CSS and images | "Extract a static HTML snapshot of http://localhost:3000/profile." |
| stitch::upload-to-stitch | Upload local assets (images, mockups, HTML) to a Stitch project | "Upload .stitch/landing_page.html to Stitch project projects/987654321." |
stitch-build)Code generation, framework integration, and asset compilation from Stitch designs.
| Skill | Description | Prompt Example |
|---|---|---|
| stitch::react-components | Convert Stitch screens to React component systems with automated validation and design token consistency | · "Convert all screens in Stitch project projects/123 to React components."· "Sync the app to the last updates of the Stitch project 13039335308618232534." |
| stitch::react-native | Convert Stitch HTML designs to production-ready React Native components with StyleSheet and platform-specific code | · "Convert the Stitch design to React Native components with proper theme and navigation." · "Sync the app to the last updates of the Stitch project 13039335308618232534." |
| remotion | Generate walkthrough videos from Stitch projects using Remotion with smooth transitions and zooming | "Generate a walkthrough video of the Stitch project projects/456." |
| shadcn-ui | Expert guidance for integrating and building applications with shadcn/ui components | "Set up shadcn/ui and build a data table with sorting and filtering." |
| react-vite-dashboard | Convert Stitch screens to React + Vite dashboards with TanStack Query, DESIGN.md tokens, and Web3 read patterns | "Build a DeFi portfolio dashboard from this Stitch screen using our DESIGN.md." |
stitch-utilities)Supporting tools for enhancing prompts, generating design specs, and enforcing design standards.
| Skill | Description | Prompt Example |
|---|---|---|
| design-md | Analyze Stitch projects and generate comprehensive DESIGN.md files in semantic language | "Analyze Stitch project projects/123 and generate a DESIGN.md." |
| enhance-prompt | Transform vague UI ideas into polished, Stitch-optimized prompts with UI/UX keywords | "Enhance this prompt: 'make a settings page'." |
| site-md | Analyze a project description or site requirements and synthesize a project constitution (SITE.md) for the Stitch Build Loop | "Analyze this project brief and create a SITE.md constitution for the Stitch Build Loop." |
| stitch-loop | Generate complete multi-page websites from a single prompt with automated validation | "Build a 5-page portfolio website with Stitch." |
| taste-design | Generate DESIGN.md files enforcing premium, anti-generic UI standards | "Generate a premium DESIGN.md with strict typography and calibrated colors." |
plugins/
├── stitch-design/ — Core design workflow plugin
│ ├── plugin.json
│ └── skills/
│ ├── code-to-design/
│ ├── generate-design/
│ ├── manage-design-system/
│ ├── extract-design-md/
│ ├── extract-static-html/
│ └── upload-to-stitch/
├── stitch-build/ — Code generation & build plugin
│ ├── plugin.json
│ └── skills/
│ ├── react-components/ — stitch::react-components
│ ├── react-native/
│ ├── react-vite-dashboard/
│ ├── remotion/
│ └── shadcn-ui/
└── stitch-utilities/ — Design utilities & assistants plugin
├── plugin.json
└── skills/
├── design-md/
├── enhance-prompt/
├── site-md/
├── stitch-loop/
└── taste-design/
Each skill follows the Agent Skills standard:
skills/<skill-name>/
├── SKILL.md — The "Mission Control" for the agent
├── scripts/ — Executable enforcers (Validation & Networking)
├── resources/ — The knowledge base (Checklists & Style Guides)
└── examples/ — The "Gold Standard" syntactically valid references
All new skills need to follow the file structure above to implement the Agent Skills open standard.
This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.