跳到正文
TakoAPI
返回技能列表

stitch-ui-designer

由 a2mus 提供

Web & Frontend Development
994下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Design, preview, and generate UI code using Google Stitch (via MCP)

描述

该技能的功能

Generates UI screens using Google Stitch via MCP, shows image previews before exporting code, and supports iterative refinement. The workflow separates design approval from code generation. Outputs HTML and CSS once the user accepts a design.

Showing image previews before generating code avoids exporting designs the user will reject, cutting wasted tokens and iteration cycles.

何时使用

  • Generating a login screen mockup before writing any code
  • Iterating on dashboard layouts without touching CSS
  • Exporting an HTML/CSS starting point for a new app feature
  • Exploring layout and color options for a mobile UI screen
  • Prototyping a landing page design interactively

示例工作流

输入

User asks: Design a login screen for a fintech app

智能体
  1. 1

    Check if stitch server is configured in mcporter, configure it if missing

  2. 2

    Call stitch.generate_screen_from_text with the prompt, receive screenId

  3. 3

    Call stitch.fetch_screen_image with the screenId and display the preview to the user

  4. 4

    Ask for feedback, re-generate with a refined prompt if changes are needed

  5. 5

    Call stitch.fetch_screen_code once the user approves, return HTML and CSS

输出

HTML and CSS files for the approved login screen design

前置要求

  • npx (Node.js)
  • mcporter CLI
  • Google Cloud account with gcloud authentication

安装

clawhub install a2mus/stitch-ui-designer

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接