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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install stitch-ui-designer或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install stitch-ui-designer⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/stitch-ui-designer/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: stitch-ui-designer version: 1.0.0 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. metadata: openclaw: emoji: 🎨 requires: bins: ["npx", "mcporter"] ---
This skill allows you to design high-quality user interfaces using Google Stitch.
Follow this process to help the user design a UI:
- Check if the stitch server is configured in mcporter. - 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).
- Ask for a description of the interface (e.g., "Login screen for a crypto app"). - Use stitch.generate_screen_from_text with 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.
- Ask the user for feedback on the preview. - If changes are needed, use stitch.generate_screen_from_text again (potentially using stitch.extract_design_context from the previous screen to maintain style) or just refine the prompt. - Show the new preview.
- 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.
Call these using mcporter call stitch.:
- Args: prompt (string), projectId (optional, usually auto-detected by stitch-mcp-auto) - Returns: screenId, name, url - Use this to start a design.
- Args: screenId (string) - Returns: Image data (display this to the user). - Use this to show the preview.
- Args: screenId (string) - Returns: html (string), css (string), etc. - Use this ONLY after user approval.
- Args: name (string) - Use if no project exists.
stitch-mcp-auto tries 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 using create_project or by setting the GOOGLE_CLOUD_PROJECT env var.stitch-mcp-auto because it handles the complex Google auth setup more gracefully than the standard package.安装 Stitch Ui Designer 后,可以对 AI 说这些话来触发它
Help me get started with Stitch Ui Designer
Explains what Stitch Ui Designer does, walks through the setup, and runs a quick demo based on your current project
Use Stitch Ui Designer to design, preview, and generate UI code using Google Stitch (via MCP)
Invokes Stitch Ui Designer with the right parameters and returns the result directly in the conversation
What can I do with Stitch Ui Designer in my developer & devops workflow?
Lists the top use cases for Stitch Ui Designer, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/stitch-ui-designer/ 目录(个人级,所有项目可用),或 .claude/skills/stitch-ui-designer/(项目级)。重启 AI 客户端后,用 /stitch-ui-designer 主动调用,或让 AI 根据上下文自动发现并使用。
Stitch Ui Designer 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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.
Stitch Ui Designer 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Stitch Ui Designer
Identifies repetitive steps in your workflow and sets up Stitch Ui Designer to handle them automatically