stitch-ui-designer
Design, preview, and generate UI code using Google Stitch (via MCP). Helps developers choose the best UI by generating previews first, allowing iteration, and then exporting code.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/a2mus/stitch-ui-designerWhat This Skill Does
The stitch-ui-designer skill transforms the way you build frontends by leveraging the power of Google Stitch through the OpenClaw agent. Instead of writing boilerplate code from scratch, this skill allows you to articulate your UI requirements in natural language and receive high-fidelity visual previews immediately. It acts as an iterative bridge between conceptual design and production-ready HTML/CSS. By utilizing the MCP (Model Context Protocol) integration, the skill ensures that design contexts are preserved during modifications, allowing for a seamless transition from a rough idea to a polished component.
Installation
To begin using the skill, ensure you have the OpenClaw environment active. Install the skill directly from the repository using the following terminal command:
clawhub install openclaw/skills/skills/a2mus/stitch-ui-designer
Once installed, you must perform the initial configuration to link the Stitch MCP server to your local environment. Run the command: mcporter config add stitch --command "npx" --args "-y stitch-mcp-auto". Additionally, ensure you have authenticated with your Google Cloud account via gcloud auth login to allow the agent to manage assets in your Google Cloud project.
Use Cases
- Rapid Prototyping: Quickly generate multiple UI variations for client demos without writing a single line of code.
- Component Library Generation: Build custom dashboard widgets, login forms, or profile cards by describing their functionality and look.
- Design Iteration: Use the skill to refine existing components by providing feedback on initial previews until the design aligns perfectly with your brand requirements.
- Frontend Kickstarting: Generate the foundational HTML and CSS structures for a web application, reducing development time by hours.
Example Prompts
- "I need a clean, dark-themed login screen for a crypto dashboard; generate a preview for me."
- "That looks good, but can you change the primary button to blue and add a section for a user avatar at the top?"
- "The design looks great now, please export the HTML and CSS code for this screen."
Tips & Limitations
- Preview First: Never jump straight to code. Use the visual output to validate the layout. If the layout is wrong, refining it in the design stage is faster than editing code manually.
- Contextual Awareness: If you are working on a large project, be sure to use
stitch.extract_design_contextto maintain consistency across multiple pages. - Auth Requirements: The tool relies heavily on the
stitch-mcp-autopackage. If you encounter authorization errors, check that yourGOOGLE_CLOUD_PROJECTenvironment variable is correctly set and that the project is enabled for Stitch APIs. - Limitation: Currently, the code generation is optimized for standard HTML/CSS. Complex JavaScript interactions may require manual integration after the base code is exported.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-a2mus-stitch-ui-designer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution
Related Skills
Doro Email To Calendar
Skill by a2mus
doro-command-creator
WHAT: Create Claude Code slash commands - reusable markdown workflows invoked with /command-name. WHEN: User wants to create, make, or add a slash command. User wants to automate a repetitive workflow or document a consistent process for reuse. KEYWORDS: "create a command", "make a slash command", "add a command", "new command", "/command", "automate this workflow", "make this repeatable"
doro-git-secrets-scanner
Git 安全扫描器 - 检查提交中的敏感信息泄露(API keys、密码、token)
doro-git-essentials
Essential Git commands and workflows for version control, branching, and collaboration.
doro-docker-essentials
Essential Docker commands and workflows for container management, image operations, and debugging.