Inside google-labs-code/stitch-skills: Architecture & Production Teardown — How Does It Work in Production?
TL;DR: The google-labs-code/stitch-skills repository provides a standardized suite of agent skills and plugins for the Google Stitch ecosystem. It utilizes the Model Context Protocol and the Agent Skills open standard to allow coding agents like Claude Code, Cursor, and Codex to autonomously extract, generate, and convert frontend code into design systems. This teardown examines its architecture, integration patterns, and operational trade-offs for engineering teams building AI-native developer platforms.
What Is Inside google-labs-code/stitch-skills: Architecture & Production Teardown & Why Is It Blowing Up?
The repository located at https://github.com/google-labs-code/stitch-skills contains a library of Agent Skills designed to interface with the Stitch MCP server. Engineering teams use these plugins to bridge the gap between visual design systems and production code. The project has gained significant traction, accumulating over 10,000 stars on GitHub, because it solves a specific friction point in frontend development. Instead of manually translating Figma or Stitch designs into React components, developers can instruct their local AI agents to perform the conversion directly within their integrated development environment.
The repository organizes its capabilities into three distinct plugin categories. The stitch-design category handles core design workflows, including the extraction of static HTML from running web applications and the generation of new screens from text prompts. The stitch-build category focuses on code generation, converting Stitch screens into React, React Native, or Vite dashboards. The stitch-utilities category provides supporting tools for generating design specifications and enforcing design standards. All of these skills follow the Agent Skills open standard. This standardization allows the same skill definitions to work across multiple agent platforms, including Antigravity, Gemini CLI, Claude Code, Cursor, and OpenCode.
Real-World Field Use Cases
When we inspect production topologies, we see engineering teams deploying these skills to solve concrete operational challenges. Here are three practical implementations based on the repository capabilities.
1. Developer Platform Integration
- The Everyday Problem: Internal developer platform teams struggle to enforce design system consistency across multiple micro-frontends. Developers often copy-paste outdated components or ignore design tokens entirely.
- How It Works in Practice: Platform engineers embed the
stitch-build plugins into their standard agent configurations. When a developer prompts their local agent to build a new feature, the agent uses the stitch::react-components skill to pull the latest design tokens from the Stitch project. The agent reads the .stitch/DESIGN.md file and generates components that strictly adhere to the corporate design system.
- The Tangible Impact: This integration eliminates manual design QA cycles. The generated code automatically aligns with the central design system, reducing visual regressions and accelerating feature delivery across distributed teams.
2. Concurrency & Memory Footprint
- The Everyday Problem: Running complex agentic workflows locally can consume significant system resources. Developers experience high P99 latency when their local agents attempt to parse massive frontend codebases and generate design variants simultaneously.
- How It Works in Practice: Teams evaluate the resource utilization of the Stitch MCP server under load. Because the skills are decoupled from the agent itself, the heavy lifting of HTML extraction and asset compilation happens via the MCP server. Engineers monitor the memory footprint of the
stitch::extract-static-html skill when it inlines CSS and images from a running web application on localhost:3000.
- The Tangible Impact: By offloading the extraction logic to the MCP server, the local coding agent maintains a smaller memory footprint. Developers experience faster response times from their agents, even when processing large DOM trees or generating complex Remotion walkthrough videos.
3. Build-vs-Buy Adoption Verdict
- The Everyday Problem: Engineering leadership must decide whether to invest in custom agent skills or purchase managed cloud alternatives for design-to-code translation.
- How It Works in Practice: Architects compare the operational trade-offs of maintaining the
google-labs-code/stitch-skills repository against proprietary SaaS tools. They evaluate the maintenance burden of running the Stitch MCP server, managing API credentials, and updating skill dependencies. They also test the stitch::react-vite-dashboard skill to see if the generated TanStack Query and Web3 read patterns meet their internal production standards.
- The Tangible Impact: Teams that require deep customization and strict data privacy often choose the open-source route. The ability to modify the
stitch::manage-design-system skill to fit proprietary workflows outweighs the operational cost of managing the MCP infrastructure.
Under the Hood: Architecture & Design Choices
The architecture of stitch-skills relies entirely on the Model Context Protocol (MCP). MCP acts as the communication layer between the coding agent and the external tools. When a developer issues a prompt in Cursor or Claude Code, the agent does not execute the code conversion directly. Instead, it sends a JSON-RPC request to the Stitch MCP server. The server exposes the capabilities defined in the stitch-skills repository and returns the execution results to the agent.
This architecture separates the reasoning engine (the LLM) from the execution environment (the MCP server). The https://github.com/google-labs-code/stitch-skills#readme documentation specifies that the Stitch MCP server must be configured and running in the agent's environment for these skills to function.
flowchart LR
subgraph ClientEnvironment["Client Environment"]
A[Coding Agent]
B[Local Codebase]
end
subgraph McpLayer["MCP Layer"]
C(Stitch MCP Server)
end
subgraph StitchSkillsRepository["Stitch Skills Repository"]
D{Skill Router}
E[stitch-design]
F[stitch-build]
G[stitch-utilities]
end
subgraph ExternalServices["External Services"]
H[Google Stitch API]
end
A -- JSON-RPC --> C
C -- Discovers Skills --> D
D --> E
D --> F
D --> G
E -- Extracts HTML/CSS --> B
F -- Generates React/Native --> B
E -- Uploads Assets --> H
F -- Syncs Projects --> H
The repository structure reflects a modular design philosophy. Each skill resides in its own directory with specific frontmatter defining its inputs, outputs, and allowed tools. For example, the stitch::code-to-design skill contains the logic required to parse React or Vue code, extract the HTML structure, apply the design system rules, and upload the result to a Stitch project.
This modularity introduces specific inter-dependencies. The documentation notes that stitch-design skills often rely on shared utilities. If an engineer chooses to install skills selectively, they must ensure all required dependencies are present in the agent's environment.
The broader context of this architecture connects to the Google Agent Development Kit (ADK). According to the https://google.github.io/adk-docs/ documentation, ADK provides the framework for building, debugging, and deploying reliable AI agents at enterprise scale. ADK 2.0 introduces graph workflows, which allow developers to weave deterministic code with adaptive AI reasoning. While stitch-skills operates primarily as a collection of MCP tools, the underlying execution often involves complex state management and multi-step reasoning. The ADK documentation highlights the use of the A2A (Agent-to-Agent) protocol and context compression, which are critical when agents process large DESIGN.md files or extract comprehensive static HTML snapshots.
The design choice to support OpenCode requires special attention. OpenCode does not use the standard npx plugins or marketplace layout. It requires manual installation and strict naming conventions. The skill name frontmatter must be lowercase kebab-case and match the directory name exactly. Skills using the stitch::... namespace format will fail to load in OpenCode until the engineer renames the folder and the internal name field. Furthermore, OpenCode ignores extra frontmatter such as allowed-tools and uses different built-in tool names (webfetch instead of web_fetch). This indicates that while the Agent Skills standard aims for universal compatibility, platform-specific quirks still dictate the final implementation details.
Hands-On Quickstart & Code Walkthrough
The installation process varies depending on the target coding agent. The repository provides a global installation path via the Codex CLI and project-scoped paths via npx.
For teams using Codex, the recommended approach involves adding the marketplace and using sparse checkouts to limit the clone size. This is particularly useful in CI/CD environments where cloning the entire repository adds unnecessary latency.
# Add the Stitch Skills marketplace via Codex 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
For developers using Claude Code or Cursor, the installation utilizes the npx plugins command. This command targets the specific agent and scopes the installation to the current project or workspace.
# Claude Code — installs into the current project
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
# Cursor — installs into the current workspace
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursor
The OpenCode installation requires manual directory manipulation and JSON configuration. Engineers must copy the specific skill folders into a discoverable path, such as .opencode/skills/.
# Project-local manual installation for OpenCode
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-design
After copying the skills, the engineer must configure the remote MCP entry in the opencode.json file. This tells the OpenCode agent where to find the Stitch MCP server.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"stitch": {
"type": "remote",
"url": "YOUR_STITCH_MCP_URL",
"enabled": true
}
}
}
Once the skills are installed and the MCP server is running, developers interact with the skills via natural language prompts. The https://github.com/google-labs-code/stitch-skills/releases documentation provides several prompt examples that trigger specific skills.
To trigger the stitch::code-to-design skill, a developer might prompt:
"Upload the frontend code at /path/to/dashboard into a Stitch project named 'Dashboard-Migration-2026'."
To trigger the stitch::react-components skill, the prompt shifts to code generation:
"Convert all screens in Stitch project projects/123 to React components."
To trigger the stitch::extract-static-html skill against a local development server:
"Extract a static HTML snapshot of http://localhost:3000/profile."
These prompts demonstrate the abstraction layer provided by the skills. The developer does not need to write the API requests to the Google Stitch backend or write the DOM parsing logic. The agent interprets the intent, selects the appropriate skill from the MCP server, executes the tool, and returns the formatted result to the workspace.
My Honest Verdict: Where It Fits in Your Stack (Pros & Trade-offs)
Evaluating google-labs-code/stitch-skills requires looking at its utility within a modern AI-assisted engineering workflow. It is not a standalone application. It is a dependency that enhances existing tools.
Pros:
The primary strength of this repository is its adherence to the Agent Skills open standard. By defining tools in a standardized format, Google ensures that these skills are portable across different agent ecosystems. A team can switch from Cursor to Claude Code without rewriting their custom design-to-code automation scripts.
The separation of concerns into stitch-design, stitch-build, and stitch-utilities provides a clear mental model for developers. The stitch-build category is particularly strong, offering specialized skills for React Native and Vite dashboards with TanStack Query integration. This goes beyond simple HTML generation and touches actual production architecture patterns.
The use of the Model Context Protocol is another significant advantage. By offloading tool execution to the Stitch MCP server, the local agent avoids the complexity of managing API authentication and heavy DOM parsing. The MCP architecture allows the agent to remain lightweight while accessing powerful external capabilities.
Trade-offs:
The reliance on the Stitch MCP server is a double-edged sword. While it offloads processing, it also introduces a hard dependency. If the MCP server is misconfigured, unreachable, or experiencing high latency, the agent skills fail completely. Teams must manage the operational overhead of running and securing this server in their development environments.
The inter-dependencies between skills require careful management. The documentation explicitly warns that installing skills selectively can break functionality if shared dependencies are omitted. This makes the --sparse checkout method slightly risky for teams who do not fully understand the internal dependency graph of the repository.
The OpenCode integration presents a notable friction point. The requirement to manually rename folders and modify frontmatter to match lowercase kebab-case standards breaks the "plug-and-play" promise of the repository. Engineers adapting these skills for OpenCode must also map tool names manually, replacing web_fetch with webfetch. This manual intervention increases the setup time and introduces opportunities for configuration errors.
Finally, the utility of these skills is entirely bound to the Google Stitch ecosystem. Teams using Figma Dev Mode or Vercel v0 will find no value here. This repository is a specialized toolset for a specific platform. For engineering teams already invested in Google Stitch, this repository provides the necessary connective tissue to bring agentic workflows into their daily operations. For teams outside that ecosystem, it serves primarily as a reference architecture for how to build and structure MCP-compliant agent skills.