Are you the author? Sign in to claim
Claude Code skill for automating UI prototyping with Google Stitch via MCP
A Claude Code custom skill for automating high-fidelity UI prototyping with Google Stitch via MCP.
Claude Code 自定义技能,通过 MCP 自动化调用 Google Stitch 生成高保真 UI 原型。
When loaded by Claude Code, it turns Claude into a Stitch prompt engineering expert that can:
加载后,Claude 将成为 Stitch 提示词工程专家,具备以下能力:
This skill distills knowledge from:
本技能整合了以下来源的知识:
| Rule | Detail |
|---|---|
| Broad first, detail later | Start with a high-level concept, then drill into per-screen details |
| Global style first | Define colors / fonts / vibe BEFORE specific elements |
| Single change per prompt | Each prompt modifies ONE dimension only |
| Visual precision | Use Hex codes, material adjectives |
| Plain text preferred | Official recommendation: natural language, NOT XML/JSON |
| Adjectives set the vibe | Words like vibrant, minimalist influence everything |
| Reference by name | Always specify page name + component name + position |
| 规则 | 说明 |
|---|---|
| 先宽后细 | 先用高层次概念探索方向,再逐屏深入细节 |
| 全局样式先行 | 在具体元素之前先定义颜色、字体、氛围 |
| 每次只改一个维度 | 每个 prompt 只修改一个方面 |
| 视觉精确 | 使用 Hex 色值、材质形容词 |
| 纯文本优先 | 官方建议使用自然语言,不要用 XML/JSON |
| 形容词定基调 | vibrant、minimalist 等词直接影响全局风格 |
| 按名称引用 | 始终指明页面名 + 组件名 + 位置 |
mkdir -p ~/.claude/skills
git clone https://github.com/blockbloomer/claude-skill-stitch-design.git ~/.claude/skills/stitch-design
Download SKILL.md and the examples/ directory, then place them in:
下载 SKILL.md 和 examples/ 目录,放到以下路径:
~/.claude/skills/stitch-design/
SKILL.md
examples/
prompt-examples.md
This skill requires a Stitch MCP Server connection. Below are the setup steps.
本技能需要 Stitch MCP Server 连接,以下是配置步骤。
Add stitch-mcp (maintained by Google DevRel) to your MCP configuration:
将 stitch-mcp(Google DevRel 官方维护)添加到 MCP 配置:
Option A: Via CLI / 命令行方式:
claude mcp add stitch -e STITCH_API_KEY=your_api_key_here -- npx @_davideast/stitch-mcp proxy
Option B: Via config file / 配置文件方式:
Edit ~/.claude/settings.json (or project-level .mcp.json):
编辑 ~/.claude/settings.json(或项目级 .mcp.json):
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@_davideast/stitch-mcp", "proxy"],
"env": {
"STITCH_API_KEY": "<your_api_key_here>"
}
}
}
}
Note / 注意: Never commit your API key to version control. Use environment variables or a
.envfile. 不要把 API Key 提交到版本控制。请使用环境变量或.env文件。
Restart Claude Code and confirm these MCP tools are available:
重启 Claude Code,确认以下 MCP 工具可用:
generate_screen_from_textget_screenedit_screensgenerate_variantslist_screensstitch-design/
SKILL.md # Core skill instructions / 核心技能指令 (380 lines)
examples/
prompt-examples.md # 6 real-world prompt templates / 6 个实战提示词模板
README.md # This file / 本文件
LICENSE # MIT License
Once installed, Claude Code will automatically detect the skill. Invoke it by asking Claude to generate UI designs:
安装后 Claude Code 会自动检测该技能。直接让 Claude 生成 UI 设计即可:
> Generate a login page for a fitness app using Stitch
> Create a dark mode dashboard with glassmorphism cards
> Design 3 variants of a recipe detail page
Claude will follow the skill's workflow: analyze requirements, build a structured prompt, generate via Stitch MCP, evaluate, and iterate up to 3 rounds.
Claude 会按技能工作流执行:分析需求 -> 构造结构化 prompt -> 调用 Stitch MCP 生成 -> 评估 -> 最多迭代 3 轮。
Issues and PRs welcome. Key areas for contribution:
欢迎提交 Issue 和 PR,重点贡献方向:
MIT
WCAG accessibility audit — automated scanning, manual review, remediation
Playwright testing toolkit — test generation, flaky test fix, migration helpers
Parallel development with git worktrees — port isolation, env sync, cleanup
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams