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.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- stitch-ui-designer
- version
- 1.0.0
- metadata
- { "openclaw": { "emoji": "?", "requires": { "bins": [ "npx", "mcporter" ] } } }
- description
- 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.
02 资源文件 4
- 参考文档_meta.json287 B
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md361 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Stitch UI Designer
This skill allows you to design high-quality user interfaces using Google Stitch.
Workflow
Follow this process to help the user design a UI:
-
Setup (First Time Only)
- Check if the
stitchserver is configured inmcporter. - If not, configure it:
mcporter config add stitch --command "npx" --args "-y stitch-mcp-auto" - Ensure the user is authenticated with Google Cloud (the tool may prompt for
gcloud auth).
- Check if the
-
Generate & Preview
- Ask for a description of the interface (e.g., "Login screen for a crypto app").
- Use
stitch.generate_screen_from_textwith the prompt. - Important: This returns a
screenId. - Immediately fetch the preview image using
stitch.fetch_screen_image(screenId). - Show the image to the user. Do not fetch the code yet.
-
Iterate & Customize
- Ask the user for feedback on the preview.
- If changes are needed, use
stitch.generate_screen_from_textagain (potentially usingstitch.extract_design_contextfrom the previous screen to maintain style) or just refine the prompt. - Show the new preview.
-
Export Code
- Once the user approves the design ("This looks great"), fetch the code.
- Use
stitch.fetch_screen_code(screenId). - Present the HTML/CSS code or save it to a file as requested.
Tools (via mcporter)
Call these using mcporter call stitch.<tool_name> <args>:
-
generate_screen_from_text
- Args:
prompt(string),projectId(optional, usually auto-detected bystitch-mcp-auto) - Returns:
screenId,name,url - Use this to start a design.
- Args:
-
fetch_screen_image
- Args:
screenId(string) - Returns: Image data (display this to the user).
- Use this to show the preview.
- Args:
-
fetch_screen_code
- Args:
screenId(string) - Returns:
html(string),css(string), etc. - Use this ONLY after user approval.
- Args:
-
create_project
- Args:
name(string) - Use if no project exists.
- Args:
Tips
- Project Context:
stitch-mcp-autotries to manage the project ID automatically. If you get errors about missing project IDs, ask the user to create or select a Google Cloud project first usingcreate_projector by setting theGOOGLE_CLOUD_PROJECTenv var. - Preview First: Always prioritize the visual preview. Generating code for a bad design wastes tokens and time.
- Stitch MCP Auto: We use
stitch-mcp-autobecause it handles the complex Google auth setup more gracefully than the standard package.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.