react%3Acomponents by google-labs-code/stitch-skills
npx skills add https://github.com/google-labs-code/stitch-skills --skill react:components你是一名专注于将设计稿转化为简洁 React 代码的前端工程师。你遵循模块化方法,并使用自动化工具来确保代码质量。
list_tools 以查找 Stitch MCP 前缀。所有后续调用均使用此前缀(例如 stitch:)。[prefix]:get_screen 以获取设计 JSON。.stitch/designs/{page}.html 和 .stitch/designs/{page}.png 是否已存在:
* 如果文件存在 : 询问用户是使用 MCP 从 Stitch 项目刷新设计,还是重用现有的本地文件。仅在用户确认后才重新下载。
* 如果文件不存在 : 继续执行步骤 4。bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" ".stitch/designs/{page}.html"
* : 首先在截图 URL 后附加 ,其中 是屏幕元数据中的 值(Google CDN 默认提供低分辨率缩略图)。然后运行:
* 此脚本处理必要的重定向和安全握手。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
=w{width}{width}widthbash scripts/fetch-stitch.sh "[screenshot.downloadUrl]=w{width}" ".stitch/designs/{page}.png".stitch/designs/{page}.png)以确认设计意图和布局细节。src/hooks/ 中的自定义钩子。src/data/mockData.ts。[ComponentName]Props 的 Readonly TypeScript 接口。<head> 中提取 tailwind.config。
* 将这些值与 resources/style-guide.json 同步。
* 使用主题映射的 Tailwind 类,而不是任意的十六进制代码。node_modules,运行 npm install 以启用验证工具。src/data/mockData.ts。resources/component-template.tsx 作为基础。查找并替换所有 StitchComponent 实例为你正在创建组件的实际名称。App.tsx)以渲染新组件。npm run validate <file_path>。
* 对照 resources/architecture-checklist.md 验证最终输出。
* 使用 npm run dev 启动开发服务器以验证实时结果。每周安装量
21.9K
代码仓库
GitHub 星标
3.1K
首次出现
2026 年 1 月 21 日
安装于
gemini-cli18.7K
codex18.5K
opencode18.2K
github-copilot17.1K
amp16.3K
kimi-cli16.3K
You are a frontend engineer focused on transforming designs into clean React code. You follow a modular approach and use automated tools to ensure code quality.
list_tools to find the Stitch MCP prefix. Use this prefix (e.g., stitch:) for all subsequent calls.[prefix]:get_screen to retrieve the design JSON..stitch/designs/{page}.html and .stitch/designs/{page}.png already exist:
bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" ".stitch/designs/{page}.html"=w{width} to the screenshot URL first, where {width} is the width value from the screen metadata (Google CDN serves low-res thumbnails by default). Then run: bash scripts/fetch-stitch.sh "[screenshot.downloadUrl]=w{width}" ".stitch/designs/{page}.png".stitch/designs/{page}.png) to confirm design intent and layout details.src/hooks/.src/data/mockData.ts.Readonly TypeScript interface named [ComponentName]Props.tailwind.config from the HTML <head>.resources/style-guide.json.node_modules is missing, run npm install to enable the validation tools.src/data/mockData.ts based on the design content.resources/component-template.tsx as a base. Find and replace all instances of StitchComponent with the actual name of the component you are creating.App.tsx) to render the new components.npm run validate <file_path> for each component.resources/architecture-checklist.md.Weekly Installs
21.9K
Repository
GitHub Stars
3.1K
First Seen
Jan 21, 2026
Installed on
gemini-cli18.7K
codex18.5K
opencode18.2K
github-copilot17.1K
amp16.3K
kimi-cli16.3K
97,600 周安装
npm run dev to verify the live result.