Chakra UI v3 Builder
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
A skill your agent uses when 需要把现有 React、Vite、Next.js、V0 或 AI Studio 页面转换为 Figma Make 可导入的 .fig 资产,或补齐、更新、验证已有 Figma Make 导出壳和 canvas.fig。
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lintendo/Axhub-Skills react-to-figma-make --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/react-to-figma-make .claude/skills/react-to-figma-make && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .claude/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-makeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lintendo/Axhub-Skills react-to-figma-make --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/react-to-figma-make .agents/skills/react-to-figma-make && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .agents/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lintendo/Axhub-Skills react-to-figma-make --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/react-to-figma-make .cursor/skills/react-to-figma-make && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .cursor/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lintendo/Axhub-Skills.git --path skills/react-to-figma-make--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lintendo/Axhub-Skills react-to-figma-make --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/react-to-figma-make .gemini/skills/react-to-figma-make && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .gemini/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lintendo/Axhub-Skills react-to-figma-makeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/react-to-figma-make .github/skills/react-to-figma-make && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .github/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lintendo/Axhub-Skills react-to-figma-make --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lintendo/Axhub-Skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/react-to-figma-make .opencode/skills/react-to-figma-make && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-to-figma-make" agent skill from https://github.com/lintendo/Axhub-Skills/tree/main/skills/react-to-figma-make into .opencode/skills/react-to-figma-make/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-to-figma-make", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-to-figma-makeA skill your agent uses when 需要把现有 React、Vite、Next.js、V0 或 AI Studio 页面转换为 Figma Make 可导入的 .fig 资产,或补齐、更新、验证已有 Figma Make 导出壳和 canvas.fig。
React To Figma Make is an agent skill from lintendo/Axhub-Skills. Use when 需要把现有 React、Vite、Next.js、V0 或 AI Studio 页面转换为 Figma Make 可导入的 .fig 资产,或补齐、更新、验证已有 Figma Make 导出壳和 canvas.fig。
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts, reference files and assets (for example `references/meta-json-spec.md`, `references/project-structure.md` and `references/style-migration.md`).
It sits in Frontend & Design. It works with Figma, React, Vite and Next.js. The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1e1c5bc. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodenpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React To Figma Make loads about 4.2k tokens when it runs, and up to ~7.5k if it reads all its reference files. Until then it costs about 35 tokens; SKILL.md has 949 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from lintendo/Axhub-Skills at commit 1e1c5bc, republished under its MIT licence (© lintendo). 949 words, ~4,186 tokens.
.claude/skills/react-to-figma-make/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.本技能将帮助你把 React 组件或应用经过兼容改造后,转换为符合 Figma Make 项目规范的标准结构。转换完成后,项目将具备:
.fig 导出能力:生成可下载的 .fig 文件meta.json、ai_chat.json、images/ 等 Figma Make 要求的元文件本技能产出一个完整的 Figma Make 兼容项目目录,并默认把可被宿主工具消费的产物写入通用 artifact 目录:
.axhub/make/artifacts/figma/<resource-id>/
├── canvas.fig
├── meta.json
├── ai_chat.json
├── canvas.code-manifest.json
├── manifest.json
├── images/
└── thumbnail.png # 可选如果目标项目使用 .axhub/make/project.json 描述资源,需要在对应 resources.prototypes[].artifacts.figma 中登记这些路径,便于 make-server 或其他宿主直接导出 .fig。
canvas-fig-sync.mjs pack 是模板节点同步器,不是通用的文件系统导入器。
pack 只更新 canvas.fig 中已经存在的 CODE_FILE.logicalPath。CODE_FILE。--prune-missing 时,模板中存在、磁盘上不存在的路径会被删除。--sanitize-for-export 时,聊天历史和代码快照会被清空;如果源码映射错误,无法依赖清理后的 .fig 恢复源码。inspect 命令退出成功只证明二进制可解析,不证明源码完整或能够运行。因此,首次生成前必须先 inspect 模板,并让导出源码路径与模板已有逻辑路径对齐。路径由实际 template manifest 决定,不是 Figma Make 的固定文件名。当前 bundled empty-canvas.fig 中可以确认的通用入口和可选路径包括:
磁盘路径(相对 --from) | CODE_FILE.logicalPath | 职责 |
|---|---|---|
src/App.tsx | App.tsx | 当前模板的 Figma Make 入口,必须保留 |
src/styles/globals.css | styles/globals.css | 当前模板已有的可选样式节点 |
src/<manifest 中已有路径> | 对应 logicalPath | 可选业务模块或其他资源 |
当前模板中的 components/Dashboard.tsx 只是一个历史示例槽位,不是通用规范,也不代表目标页面必须是 Dashboard。只有当本次转换明确选择该现有槽位时才能使用它。如果原页面依赖多个模板未覆盖的本地模块,优先使用项目现有构建工具把业务代码机械打包到 src/App.tsx,或打包到本次从 manifest 中明确选定的已有槽位。不要把业务逻辑手工重写成另一套实现;保留原页面入口,把导出壳作为可重复生成、可持续同步的独立适配层。
.fig 文件用于设计交付本技能分为两部分:
scripts/canvas-fig-sync.mjs:canvas.fig 回写与检查工具assets/empty-canvas.fig:空白 canvas 模板pako 和 kiwi-schema。先直接运行一次;如果出现 ERR_MODULE_NOT_FOUND,在脚本所属包中按宿主项目规定的包管理器安装依赖,不要向目标原型的运行时依赖中添加这两个包。如果有额外的页面渲染验收脚本,也可以在此阶段执行。
本技能附带以下参考文件,在转换特定技术领域时按需查阅:
references/project-structure.md:Figma Make 项目的完整目录结构和文件职责说明references/meta-json-spec.md:meta.json 的完整字段定义和示例references/style-migration.md:从各种 CSS 方案迁移到 Figma Make 样式体系的指南分析目标 React 项目的以下方面:
框架识别:
"use client"、next/image 等)入口结构:
App.tsx 或 page.tsx)main.tsx / index.tsx)样式方案:
依赖分析:
静态资源盘点(对大型项目尤其重要):
输出一份转换清单,列出需要处理的各项转换任务。
在目标目录 <output-dir>/<page-name>/ 下创建以下固定结构;最终可消费产物同步到 .axhub/make/artifacts/figma/<resource-id>/:
<page-name>/
├── index.tsx # 项目主入口
├── style.css # 根入口样式(桥接层)
├── canvas.fig # Figma 二进制设计数据(第 5 步生成)
├── meta.json # 项目元数据
├── ai_chat.json # AI 聊天历史(可为空 {})
├── canvas.code-manifest.json # CODE_FILE 索引清单(第 5 步生成)
├── package.json # Vite 项目依赖声明
├── vite.config.ts # Vite 构建配置
├── index.html # Vite HTML 入口
├── images/ # 设计稿图片资源
└── src/
├── App.tsx # Figma Make 导出薄壳(导出入口)
├── main.tsx # Vite 挂载层
├── index.css # Figma Make 入口样式
├── components/ # 可选;仅使用 template manifest 已存在的路径
├── pages/ # 多页面(如需要)
└── styles/
└── globals.css # 全局样式 / 设计 Token.axhub/make/project.json 中的资源元数据示例:
{
"artifacts": {
"figma": {
"resourceId": "home",
"canvasFigPath": ".axhub/make/artifacts/figma/home/canvas.fig",
"metaPath": ".axhub/make/artifacts/figma/home/meta.json",
"aiChatPath": ".axhub/make/artifacts/figma/home/ai_chat.json",
"codeManifestPath": ".axhub/make/artifacts/figma/home/canvas.code-manifest.json",
"imagesDir": ".axhub/make/artifacts/figma/home/images",
"manifestPath": ".axhub/make/artifacts/figma/home/manifest.json"
}
}
}职责分层约束(这是验收约束,不是建议):
| 文件 | 职责 | 不应包含 |
|---|---|---|
index.tsx | 项目主入口 | 页面视觉实现 |
src/App.tsx | Figma 导出薄壳,复用共享组件 | 独立于根入口的业务逻辑 |
src/main.tsx | Vite 开发挂载,ReactDOM.createRoot | 业务代码 |
src/components/** | 页面视觉与交互的真实主体 | 入口适配逻辑 |
style.css | 根入口样式转发 | 大量业务样式 |
src/index.css | Figma 入口样式层 | 独立于 style.css 的独立样式 |
将源项目的所有页面逻辑收敛为两个薄入口 + 一套共享组件。
根目录 index.tsx(项目主入口):
/**
* 项目主入口
*/
import './style.css';
import React from 'react';
import App from './src/App';
export default function PageName() {
return <App />;
}src/App.tsx(Figma Make 导出壳):
/**
* Figma Make 导出薄壳
* 将根入口及其本地依赖机械同步到这个入口,
* 或同步到 template manifest 中明确存在的其他逻辑路径。
*/
import React from 'react';
import './styles/globals.css';
export default function App() {
return <main>{/* 机械同步或打包后的页面主体 */}</main>;
}src/main.tsx(Vite 挂载层):
/**
* Vite 开发挂载层
* 仅用于 Figma Make 独立开发预览
*/
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>
);关键原则:
index.tsx 和 src/App.tsx)必须渲染相同的页面内容src/App.tsx,也可以拆分到 template manifest 已存在的逻辑路径Dashboard.tsx、AppContent.tsx 或其他项目语义文件名;先检查模板再选择路径pack 会自动加入根据源项目的框架类型,进行针对性清理:
Next.js 项目:
// ❌ 移除
"use client"
import { useRouter } from 'next/navigation'
import Image from 'next/image'
import Link from 'next/link'
import type { Metadata } from 'next'
// ✅ 替换
// 删除 "use client"
// 删除 useRouter,改用 useState 管理页面状态
<img> 替代 <Image>
<a> 替代 <Link>AI Studio 项目:
// ❌ 移除
// Import Map 依赖(CDN URL)
// index.html 中的 <script type="importmap">
// ✅ 替换
// CDN 导入改为 npm 包导入
// process.env.* 改为 import.meta.env.VITE_*通用清理:
// ❌ 移除
import { Analytics } from '@vercel/analytics/next'
// 所有 SSR 相关代码
// ✅ 保留
// React Hooks
// 第三方 UI 组件
// 样式文件导入将所有非标准路径别名转换为相对路径:
// 源代码中的 @/ 别名
import { Button } from '@/components/ui/button'
// 转换为相对路径(基于文件位置)
import { Button } from './components/ui/button' // 从 src/App.tsx
import { Button } from '../components/ui/button' // 从 src/pages/xxx.tsx如果源项目使用 package@version 格式的导入(Figma Make 导出特征),改为裸包名:
// ❌
import { motion } from 'framer-motion@11.0.0'
// ✅
import { motion } from 'framer-motion'React 项目通常包含大量图片、字体和其他二进制文件。转换时需要妥善处理这些资源:
图片资源迁移:
| 源项目引用方式 | 迁移策略 |
|---|---|
import logo from './assets/logo.png' | 保留在 src/assets/,import 路径不变 |
<img src="/images/hero.png"> (public 目录) | 复制到 images/,更新路径为 ./images/hero.png |
<img src="https://cdn.example.com/img.png"> (CDN) | 保留 CDN 链接不变 |
SVG 作为 React 组件 (import { ReactComponent as Icon }) | 保留在 src/components/ 或 src/assets/ |
CSS 中的 url('./bg.png') | 保持相对路径正确即可 |
images/ 目录规则:
images/ 目录存放设计稿关联图片,通常以 hash 命名(如 a3f2c1d.png)src/assets/,不必强制移到 images/images/ 内容才需要保留原始 hash 名字体文件:
src/assets/fonts/src/styles/globals.css 中用 @font-face 引用@import url(...) 链接大文件注意事项:
canvas.fig 是二进制文件(通常几百 KB 到几 MB),不能手动编辑,只能通过工具生成node_modules/、build/、.next/ 等目录复制到产物中目标:根入口 style.css 和导出入口 src/index.css 使用同一套样式来源。
style.css(根入口样式):
@import "tailwindcss";
/* 如果有 globals.css,通过 import 引入 */
@import "./src/styles/globals.css";src/index.css(Figma 导出样式):
@import "tailwindcss";
/* 保持与 style.css 一致的样式来源 */
@import "./styles/globals.css";src/styles/globals.css(主样式文件):
将源项目中的以下内容迁移到此文件:
@theme 定义(Tailwind v4)样式迁移策略(详细指南见 references/style-migration.md):
| 源样式方案 | 迁移方式 |
|---|---|
| Tailwind CSS v4 | 直接保留 @import "tailwindcss" + @theme |
| Tailwind CSS v3 | 迁移到 v4 语法,@theme inline 替代 @apply |
| CSS Modules | 合并到组件同级 CSS 文件,改用带前缀的普通类名 |
| Styled Components / Emotion | 提取为 CSS 类,移除 JS-in-CSS 依赖 |
| 纯 CSS / SCSS | 直接迁移,SCSS 编译为 CSS |
| CSS 变量 | 保留到 globals.css 的 :root 或 @theme 中 |
大型样式文件注意事项:
src/index.css 有时是 Tailwind 的完整编译产物(可达数万行),不要直接使用它作为最终样式src/styles/globals.css 为主样式源,src/index.css 仅做样式桥接meta.json{
"client_meta": {
"background_color": { "r": 0.96, "g": 0.96, "b": 0.96, "a": 1 },
"thumbnail_size": { "width": 400, "height": 300 },
"render_coordinates": { "x": 0, "y": 0, "width": 1280, "height": 960 }
},
"file_name": "<项目显示名称>",
"developer_related_links": [],
"exported_at": "<ISO 8601 时间>"
}file_name:最终导出的 .fig 文件显示名称render_coordinates:页面视口尺寸,根据实际页面调整 width 和 height(详见 references/meta-json-spec.md)exported_at:使用当前 ISO 8601 时间(new Date().toISOString())ai_chat.json{}新建项目时为空对象即可。
package.json{
"name": "<page-name>",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
},
"devDependencies": {
"vite": "^6.0.0",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "^5.0.0"
}
}依赖规则:
react、react-dom、next、next-*、@vercel/*、next-themesvite.config.tsimport { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': '/src'
}
}
});index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><项目名称></title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>images/ 目录创建空的 images/ 目录。此目录用于存放 Figma Make 设计稿关联的图片资源。
images/ 下已有的 hash 命名图片src/assets/ 中,不必移入 images/canvas.fig在执行任何带
--prune-missing的命令前,必须先完成导出壳和模板路径映射。不要用正式canvas.fig直接试错。
使用本技能自带的 canvas-fig-sync.mjs 脚本生成可导出的 .fig 文件。
以下命令假设你当前在终端中定位在目标项目根目录,且本技能的存放位置为 <skill-dir>:
首次生成(没有现有 canvas.fig)按以下顺序执行:
src/** 导出壳。canvas.fig。# ① 检查模板已有 CODE_FILE 路径
node <skill-dir>/scripts/canvas-fig-sync.mjs inspect \
--fig <skill-dir>/assets/empty-canvas.fig \
--manifest <artifact-dir>/template.code-manifest.json
# ② 使用 Node 跨平台复制模板,避免覆盖正式产物
node -e "require('node:fs').copyFileSync(process.argv[1], process.argv[2])" \
<skill-dir>/assets/empty-canvas.fig \
<artifact-dir>/canvas.candidate.fig
# ③ 将已经对齐模板路径的源码写入候选文件
node <skill-dir>/scripts/canvas-fig-sync.mjs pack \
--fig <artifact-dir>/canvas.candidate.fig \
--from <source-dir> \
--prune-missing \
--sanitize-for-export \
--manifest <artifact-dir>/canvas.pack-manifest.json
# ④ 生成候选文件的最终 CODE_FILE 清单
node <skill-dir>/scripts/canvas-fig-sync.mjs inspect \
--fig <artifact-dir>/canvas.candidate.fig \
--manifest <artifact-dir>/canvas.code-manifest.json<source-dir> 是包含持久化 src/App.tsx 的页面源码目录;<artifact-dir> 是 .axhub/make/artifacts/figma/<resource-id>/。两者通常不是同一个目录。Make 服务端下载时会再次以 <source-dir> 执行 pack,因此不能在首次生成后删除导出壳。
在提升候选文件为正式 canvas.fig 前,读取两个 manifest 并强制满足:
canvas.pack-manifest.json.updatedLogicalPathCount > 0canvas.code-manifest.json.summary.totalCodeFiles > 0canvas.code-manifest.json.entries 包含 App.tsx 以及 App.tsx 的全部本地相对依赖Unresolved relative importApp.tsx 外,只要求本次导出入口实际引用的模板已有路径;不要要求固定存在 Dashboard.tsx任何一项不满足都必须停止,不要覆盖已有 canvas.fig,也不要把空壳记录为成功导出。验证通过后再用跨平台文件操作把 canvas.candidate.fig 替换为 canvas.fig。
参数说明:
<source-dir>:页面源码目录;脚本会从其 src/ 子目录读取代码<artifact-dir>:Figma Make 资产目录,不等同于源码目录--prune-missing:裁掉磁盘上不存在的旧 CODE_FILE 节点--sanitize-for-export:清空旧聊天/历史缓存,重建 importedCodeFilescanvas.fig 关键特性:
fig-make 专用二进制容器,内含 Figma 节点树和 CODE_FILE 节点;不是普通 ZIPcanvas-fig-sync.mjs 的 pack / inspect / extract 命令操作.fig 会与当前页面不一致转换完成后,逐项检查:
结构验证:
index.tsx + src/App.tsx + src/main.tsx + src/components/)index.tsx 顶部有职责注释src/App.tsx 顶部有职责注释:"Figma Make 导出薄壳"src/main.tsx 顶部有职责注释:"Vite 挂载层"src/components/** 中的共享组件元文件验证:
meta.json 存在,包含 file_name、exported_at、client_metaai_chat.json 存在(至少为 {})package.json 存在,不包含 react / react-dom 依赖vite.config.ts 存在index.html 存在images/ 目录存在canvas.fig 验证:
canvas.fig 存在canvas.code-manifest.json 存在updatedLogicalPathCount > 0summary.totalCodeFiles > 0Unresolved relative importextract 反向提取到临时目录,关键源码与导出壳内容一致canvas.fig 一致;不能只以 probe.hasMakeAssets === true 作为内容验收样式验证:
style.css 和 src/index.css 使用同一套样式来源依赖验证:
@/ 或 package@version 别名才能运行资源完整性验证:
node_modules/、build/、.next/ 等冗余目录渲染验证:
在目标项目目录中:
cd <output-dir>/<page-name>
npm install # 或 yarn / pnpm install
npm run dev # 启动 Vite 开发服务器
# 浏览器中检查页面渲染是否正常这是最简单的场景,因为源项目和目标结构都基于 Vite。
CODE_FILE.logicalPathsrc/App.tsx,或同步到本次选定的模板已有路径index.tsxsrc/styles/globals.csscanvas.fig"use client"、next/image、next/link、路由等)app/page.tsx 或 pages/index.tsx 的内容迁移到 src/components/app/globals.css 迁移到 src/styles/globals.csspublic/ 下的静态资源迁移到 src/assets/ 或 images/next、@vercel/*),保留 UI 组件依赖index.tsx + src/App.tsx),补齐元文件index.html 的 Import Map 提取依赖,转为 npm 包安装<style> 标签内容到 src/styles/globals.cssprocess.env.* 改为 import.meta.env.VITE_*src/assets/此时重点不是从头创建结构,而是确保现有项目的导出壳子与当前页面同步。
index.tsx(根入口)和 src/App.tsx(导出壳子)是否同步src/App.tsx 复用根入口的共享组件canvas.fig、meta.json、images/ 等原始资产canvas.figcanvas.code-manifest.json 和 meta.json.exported_atsrc/index.css(Figma Make 的 Tailwind 构建产物)直接当最终 style.css,它可能有数万行canvas.fig、meta.json、images/ 等原始资产,不要删除它们images/ 下的文件通常是 hash 命名的 Figma 关联图片,不要随意重命名canvas.fig 是二进制文件,不能手动编辑src/App.tsx,否则导出的 .fig 会与当前页面不一致src/App.tsx 尽量薄,只做包装inspect 成功但 totalCodeFiles 为 0、入口依赖缺失或存在 unresolved import,仍然是失败产物package@version alias 的运行时依赖@/ 别名应通过 vite.config.ts 的 resolve.alias 配置,而非依赖外部构建环境© lintendo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references, assets) in skills/react-to-figma-make of lintendo/Axhub-Skills.
Open the folder on GitHubat commit 1e1c5bc
React To Figma Make next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React To Figma Make this skilllintendo/Axhub-Skills | 127 | — | ~4.2k | Automated safety check: Pass | MIT | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Creative Tim UI Blockscreativetimofficial/ui | 12k | — | ~2.1k | Automated safety check: Notes | MIT | |
| Design To CodeMigoXLab/coderio | 114 | 2 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Convex Quickstartspokvulcan/poker-planning | 114 | 6 repos | ~3.5k | Automated safety check: Notes | MIT | |
| DaleuiDaleStudy/daleui | 119 | — | ~675 | Automated safety check: Pass | MIT |
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
creativetimofficial/ui
Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.
MigoXLab/coderio
Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio.
spokvulcan/poker-planning
Creates or adds Convex to an app. An agent skill from spokvulcan/poker-planning.
DaleStudy/daleui
Use the daleui React design system with semantic Panda CSS tokens and accessible components.
huanglvjing/spotpatch
为 React 项目建立从浏览器页面元素到精确 JSX/TSX 源码、结构化上下文与可审阅修改的 SpotPatch 工作流。用户提到 SpotPatch、截图沟通前端修改、页面元素定位源码、Vite 或 Next.js 接入、组件数据链路、结构化 Prompt、AI 补丁审阅、安装检查或故障排查时使用此技能。
lintendo/Axhub-Skills
A skill your agent uses when selecting an existing design system or theme for a product, page, prototype, or implementation through Axhub design knowledge indexes; not when creating or updating a…
lintendo/Axhub-Skills
A skill your agent uses when an annotated prototype URL exposes PRD, directory, annotation, or source context that an AI Agent needs for review, implementation planning, production work, source…
lintendo/Axhub-Skills
Extract structured data from Axure prototypes using Playwright — screenshots, design tokens, interaction maps, annotations, and page text.
lintendo/Axhub-Skills
高精度克隆网页。使用 Playwright 渐进式采集页面数据(DOM 结构、样式、截图、资源), 然后分阶段构建完整的 HTML/CSS 还原。支持快速还原和高精度还原两种模式。
lintendo/Axhub-Skills
Extract structured data from any web page using Playwright — screenshots, design tokens, page text as Markdown, interactive element maps, and full page data packs.
lintendo/Axhub-Skills
用于处理涉及检查、读取、创建、编辑、导出或代码映射的 Figma 内容任务,也用于将 HTML/React/Vue 等网页复制到 Figma,尤其适用于当前选区、设计系统、Figma MCP、Drafito、Figwright 或需要避免 MCP 工具污染上下文的场景。当用户需要可批注 Figma 链接或要求同时绑定工作目录时,也应与 axhub-commentary 组合。
Categories
A skill your agent uses when 需要把现有 React、Vite、Next.js、V0 或 AI Studio 页面转换为 Figma Make 可导入的 .fig 资产,或补齐、更新、验证已有 Figma Make 导出壳和 canvas.fig。. React To Figma Make is an agent skill from lintendo/Axhub-Skills.
React To Figma Make fits situations like: 需要把现有 React、Vite、Next.js、V0 或 AI Studio 页面转换为 Figma Make 可导入的 .fig 资产,或补齐、更新、验证已有 Figma Make 导出壳和 canvas.fig.
Run `npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a claude-code`. Or copy the skill folder (skills/react-to-figma-make in lintendo/Axhub-Skills) into .claude/skills/react-to-figma-make in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a codex`. Or copy the skill folder (skills/react-to-figma-make in lintendo/Axhub-Skills) into .agents/skills/react-to-figma-make in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lintendo/Axhub-Skills --skill react-to-figma-make -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-to-figma-make, .gemini/skills/react-to-figma-make, .github/skills/react-to-figma-make and .opencode/skills/react-to-figma-make in your project.
Going by SKILL.md and its folder, React To Figma Make needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and npm). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
React To Figma Make is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with React To Figma Make: Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars), Creative Tim UI Blocks (creativetimofficial/ui, 12k stars), Design To Code (MigoXLab/coderio, 114 stars) and Convex Quickstart (spokvulcan/poker-planning, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lintendo (a GitHub user) maintains it in lintendo/Axhub-Skills, which has 127 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on August 21, 2026.
Source: lintendo/Axhub-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.