google-stitch-integration
Skill0 starsChanged 2 months agoMITView on GitHub
Connects Google Antigravity with external UI layout generators via Model Context Protocol (MCP) to ingest production-ready design files, color tokens, and asset configurations directly from Google Stitch.
- Reads credentials
In this repository9 other files it gives its agents.
- anthropic-frontend-design-skillSkill
- antigravity-ui-motion-design-expertSkill
- design-taste-frontendSkill
- frontend-designSkill
- google-ux-fluiditySkill
- shadcn-contextSkill
- super-nlm-downloadsSkill
- super-nlmSkill
- ui-ux-pro-maxSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
When the Stitch MCP server is connected, use the following tools:
- Very specific: line 54
Usage: Use returned tokens to populate tailwind.config.js or globals.css.
- Distinctive: line 65
When ingesting designs from Google Stitch:
- Distinctive: line 66
Token Mapping: Verify and reconcile incoming colors against the project's existing color palette to prevent visual fragmentation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Stitch MCP Integration Guide
This skill enables Antigravity to interface with Google Stitch (https://stitch.withgoogle.com/) via the Model Context Protocol (MCP). It defines the workflow for extracting design tokens, component hierarchies, wireframes, and production layouts generated in Google Stitch and translating them into robust frontend code.
1. Overview & Architectural Role
Google Stitch acts as an AI-powered design layout and design-system generation engine. By integrating Stitch into Antigravity via MCP:
- Design Tokens Synchronization: Imports semantic color tokens, typography scales, spacing grids, and elevation layers defined in Stitch directly into project Tailwind/CSS variables.
- Wireframe & Artboard Ingestion: Ingests structured layout trees and exported screen JSON directly into Antigravity context.
- Component Transpilation: Converts high-level Stitch component specifications into accessible, responsive React/HTML components adhering to
ui-ux-pro-maxanddesign-taste-frontendstandards.
2. MCP Server Configuration
To configure the Google Stitch MCP server in your Antigravity environment, add the server definition to your mcp_config.json (located in ~/.gemini/antigravity/mcp_config.json or project workspace):
{
"mcpServers": {
"google-stitch": {
"command": "npx",
"args": ["-y", "@google/stitch-mcp"],
"env": {
"STITCH_API_KEY": "<YOUR_STITCH_API_KEY>"
}
}
}
}3. Stitch MCP Tool Call Patterns
When the Stitch MCP server is connected, use the following tools:
1. stitch_get_project
Retrieves project metadata, artboards, and layout components for a given project ID.
- Input:
{ "projectId": "string" } - Output: Artboard names, canvas dimensions, screen hierarchy, and component manifest.
2. stitch_get_tokens
Extracts design tokens defined in the Stitch design system.
- Input:
{ "projectId": "string", "format": "tailwind" | "css-variables" | "json" } - Usage: Use returned tokens to populate
tailwind.config.jsorglobals.css.
3. stitch_export_component
Exports a specific artboard or component into production code.
- Input:
{ "projectId": "string", "componentId": "string", "targetFramework": "react-tailwind" } - Output: Clean JSX/TSX layout structure with layout hierarchy preserved.
4. Code Synthesis & Refinement Pipeline
When ingesting designs from Google Stitch:
- Token Mapping: Verify and reconcile incoming colors against the project's existing color palette to prevent visual fragmentation.
- Responsive Hardening: Convert fixed artboard pixel coordinates into fluid CSS Grid, Flexbox, and Tailwind responsive breakpoints (
sm:,md:,lg:,xl:). - Micro-Interaction Enrichment: Augment raw Stitch layouts with spring transitions, hover lifts, and accessibility attributes specified by
antigravity-ui-motion-design-expert.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

