stitch-skills
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesestitch-skills — Agent Skills for Stitch MCP
stitch-skills — 适用于Stitch MCP的Agent Skills
AI-powered UI design generation, prompt refinement, and screen-to-code workflows.
stitch-skillsNote: This is not an officially supported Google product.
基于AI的UI设计生成、提示优化与屏幕转代码工作流。
stitch-skills注意: 这并非谷歌官方支持的产品。
Installation
安装
Plugin (Claude Code)
插件(Claude Code)
bash
claude plugin marketplace add google-labs-code/stitch-skillsbash
claude plugin marketplace add google-labs-code/stitch-skillsSkill (any platform)
技能(任意平台)
bash
undefinedbash
undefinedList available skills
列出可用技能
npx skills add google-labs-code/stitch-skills --list
npx skills add google-labs-code/stitch-skills --list
Install a specific skill globally
全局安装特定技能
npx skills add google-labs-code/stitch-skills --skill stitch-design --global
npx skills add google-labs-code/stitch-skills --skill stitch-loop --global
npx skills add google-labs-code/stitch-skills --skill enhance-prompt --global
npx skills add google-labs-code/stitch-skills --skill react-components --global
npx skills add google-labs-code/stitch-skills --skill remotion --global
npx skills add google-labs-code/stitch-skills --skill shadcn-ui --global
npx skills add google-labs-code/stitch-skills --skill design-md --global
npx skills add google-labs-code/stitch-skills --skill stitch-design --global
npx skills add google-labs-code/stitch-skills --skill stitch-loop --global
npx skills add google-labs-code/stitch-skills --skill enhance-prompt --global
npx skills add google-labs-code/stitch-skills --skill react-components --global
npx skills add google-labs-code/stitch-skills --skill remotion --global
npx skills add google-labs-code/stitch-skills --skill shadcn-ui --global
npx skills add google-labs-code/stitch-skills --skill design-md --global
Install from oh-my-skills
从oh-my-skills安装
npx skills add https://github.com/akillness/oh-my-skills --skill stitch-skills
undefinednpx skills add https://github.com/akillness/oh-my-skills --skill stitch-skills
undefinedWhen to use
使用场景
- Generate high-fidelity UI screens from natural-language prompts via Stitch
- Create multi-page websites from a single prompt with automated file organization
- Produce DESIGN.md documentation that translates design systems for AI agents
- Refine vague UI ideas into polished, Stitch-optimized prompts with specificity
- Convert Stitch designs into React component architectures with consistency checks
- Generate walkthrough videos from Stitch projects using Remotion
- Integrate shadcn/ui components into React applications
- 通过Stitch从自然语言提示生成高保真UI界面
- 通过单个提示创建多页网站并自动整理文件结构
- 生成DESIGN.md文档,将设计系统转换为AI Agent可理解的内容
- 将模糊的UI想法优化为精准、适配Stitch的提示
- 将Stitch设计转换为React组件架构并进行一致性检查
- 使用Remotion从Stitch项目生成演示视频
- 在React应用中集成shadcn/ui组件
Do not use when
不适用于以下场景
- You need token-level design system lint/diff/export → route to
google-design - You need WCAG contrast audit only → route to
web-accessibility - You need full backend API design → route to
backend-api - You need generic React state management → route to
react-patterns
- 需要针对设计系统进行令牌级别的lint/对比/导出 → 请使用
google-design - 仅需要WCAG对比度审计 → 请使用
web-accessibility - 需要完整的后端API设计 → 请使用
backend-api - 需要通用的React状态管理 → 请使用
react-patterns
Available skills
可用技能
stitch-design
stitch-design
Primary skill for prompt refinement and screen generation through the Stitch MCP system.
Workflow:
1. Enhance the user's prompt for Stitch
2. Call stitch_generate_screen MCP tool
3. Validate and iterate on the output通过Stitch MCP系统进行提示优化和界面生成的核心技能。
工作流程:
1. 优化用户提供的Stitch提示
2. 调用stitch_generate_screen MCP工具
3. 验证并迭代输出结果stitch-loop
stitch-loop
Automates multi-page website creation from a single prompt.
Workflow:
1. Parse top-level pages from the prompt
2. Generate each screen via stitch_generate_screen
3. Organize files and validate output
4. Produce a complete, linked website通过单个提示自动完成多页网站创建。
工作流程:
1. 解析提示中的顶级页面
2. 通过stitch_generate_screen生成每个界面
3. 整理文件并验证输出
4. 生成完整的关联网站enhance-prompt
enhance-prompt
Transforms vague UI ideas into polished, Stitch-optimized prompts.
bash
undefined将模糊的UI想法转换为精准、适配Stitch的提示。
bash
undefinedExample: add design keywords, specificity, and system context
示例:添加设计关键词、细节和系统上下文
Input: "a login page"
Output: "A clean, minimal login page with email/password fields,
a primary CTA button using brand colors, subtle card elevation,
and a 'Forgot password?' link below the form."
undefined输入: "一个登录页面"
输出: "一个简洁极简的登录页面,包含邮箱/密码输入框,
使用品牌色的主CTA按钮,轻微的卡片阴影效果,
表单下方带有'忘记密码?'链接。"
undefineddesign-md
design-md
Generates documentation that translates design systems into natural, semantic language optimized for Stitch screen generation.
DESIGN.mdbash
undefined生成文档,将设计系统转换为适合Stitch界面生成的自然语义语言。
DESIGN.mdbash
undefinedOutput: repo-root DESIGN.md with brand tokens in Stitch-friendly language
输出:仓库根目录下的DESIGN.md,包含适配Stitch的品牌令牌描述
undefinedundefinedreact-components
react-components
Converts Stitch screens to React component architectures with consistency validation.
Workflow:
1. Parse Stitch screen JSON/HTML output
2. Map elements to React component tree
3. Validate component naming and prop consistency
4. Output component files with TypeScript types将Stitch界面转换为React组件架构并进行一致性验证。
工作流程:
1. 解析Stitch界面的JSON/HTML输出
2. 将元素映射为React组件树
3. 验证组件命名和属性一致性
4. 输出带TypeScript类型的组件文件remotion
remotion
Creates walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays.
bash
undefined使用Remotion从Stitch项目创建演示视频,包含流畅过渡、缩放和文本叠加效果。
bash
undefinedRequires: npx remotion studio
前置要求:npx remotion studio
Output: MP4 walkthrough video of Stitch screens
输出:Stitch界面的MP4演示视频
undefinedundefinedshadcn-ui
shadcn-ui
Provides guidance on implementing shadcn/ui components within React applications built from Stitch designs.
bash
npx shadcn-ui@latest init
npx shadcn-ui@latest add button card input form提供在基于Stitch设计构建的React应用中实现shadcn/ui组件的指导。
bash
npx shadcn-ui@latest init
npx shadcn-ui@latest add button card input formRepository structure
仓库结构
Each skill follows the Agent Skills open standard:
stitch-skills/
├── stitch-design/
│ ├── SKILL.md — agent mission documentation
│ ├── scripts/ — validation and networking executables
│ ├── resources/ — knowledge base (checklists, style guides)
│ └── examples/ — reference implementations
├── stitch-loop/
├── enhance-prompt/
├── react-components/
├── remotion/
├── shadcn-ui/
└── design-md/每个技能都遵循Agent Skills开放标准:
stitch-skills/
├── stitch-design/
│ ├── SKILL.md — Agent任务文档
│ ├── scripts/ — 验证和网络可执行文件
│ ├── resources/ — 知识库(检查清单、风格指南)
│ └── examples/ — 参考实现
├── stitch-loop/
├── enhance-prompt/
├── react-components/
├── remotion/
├── shadcn-ui/
└── design-md/Operating rules
操作规则
- Run before any
enhance-promptgeneration for better resultsstitch-design - Use to produce a DESIGN.md before starting
design-mdmulti-page workstitch-loop - Validate React components for naming consistency after output
react-components - Keep Stitch screen outputs in a dedicated directory for
screens/to consumeremotion - Use integration only after
shadcn-uihas established the component treereact-components - Iterate: enhance → generate → review → refine is the recommended cycle
- 在执行生成前先运行
stitch-design以获得更好的结果enhance-prompt - 在启动多页工作前,使用
stitch-loop生成DESIGN.md文档design-md - 在输出后验证React组件的命名一致性
react-components - 将Stitch界面输出存放在专用的目录中,供
screens/调用remotion - 仅在建立组件树后再进行
react-components集成shadcn-ui - 迭代流程:优化→生成→评审→细化是推荐的循环方式
Examples
示例
bash
undefinedbash
undefinedFull UI generation workflow
完整UI生成工作流
1. Enhance your prompt
1. 优化提示
stitch enhance-prompt "a dashboard for monitoring server health"
stitch enhance-prompt "一个用于监控服务器健康的仪表盘"
2. Generate screens via Stitch MCP
2. 通过Stitch MCP生成界面
stitch generate "..." --pages overview,alerts,settings
stitch generate "..." --pages overview,alerts,settings
3. Convert to React
3. 转换为React组件
stitch react-components ./screens/
stitch react-components ./screens/
4. Add shadcn/ui
4. 添加shadcn/ui组件
npx shadcn-ui@latest add card badge table
npx shadcn-ui@latest add card badge table
5. Generate walkthrough video
5. 生成演示视频
stitch remotion ./screens/ --output walkthrough.mp4
Source: [google-labs-code/stitch-skills](https://github.com/google-labs-code/stitch-skills) — Apache-2.0 Licensestitch remotion ./screens/ --output walkthrough.mp4
来源:[google-labs-code/stitch-skills](https://github.com/google-labs-code/stitch-skills) — Apache-2.0 许可证