figma-make-project-converter
将 Figma Make 导出的 Vite + React 项目转换为本项目页面组件或主题的流程规范;在处理 @/ 路径、package@version 别名、globals.css 样式迁移与主题提取时使用。
Skill by fern-ok
Chalk Labs
Need help deploying figma-make-project-converter?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fern-ok-figma-make-project-converter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
figma-make-project-converter- Description
- 将 Figma Make 导出的 Vite + React 项目转换为本项目页面组件或主题的流程规范;在处理 @/ 路径、package@version 别名、globals.css 样式迁移与主题提取时使用。
- License
- Apache-2.0
- Instructions
- 237 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Figma Make 项目转换规范
将 Figma Make 导出的 Vite + React 项目转换为本项目页面组件或主题,尽量保持视觉效果、样式 token 和组件结构。
## 核心目标
- 保持页面视觉与层级结构一致
- 移除对 Figma Make 原始 Vite 入口和版本化 alias 的依赖
- 产出可在本项目中继续演化的页面组件或主题
## 使用方式
### 步骤 1:运行预处理脚本
推荐输入来源:
- 优先使用 **Figma 原始导出的 ZIP 工程包**
- 由系统先解压 ZIP,再把解压后的项目目录传给本脚本
- 不建议手工解压后再挑文件、删文件或重组目录,否则容易破坏 Figma 原始项目结构,降低后续导入稳定性
```bash
node scripts/figma-make-converter.mjs <figma-make-project-dir> [output-name]
# 示例
node scripts/figma-make-converter.mjs "temp/my-figma-make-project" my-page
node scripts/figma-make-converter.mjs "temp/my-figma-make-project" brand-theme --target-type themes
```
脚本会自动完成:
- 完整复制 Figma Make 项目到 `src/prototypes/[页面名]/` 或 `src/themes/[theme-key]/`
- 排除 `node_modules`、`.npm-local-cache`、`build`
- 转换 `@/` 为相对路径
- 将源码中的 `package@version` 导入改为裸包名
- 分析组件、页面、依赖、CSS、设计文档
- 生成 AI 工作文档和分析报告
### 步骤 2:按任务清单完成转换
重点查看:
- `.figma-make-tasks.md`
- `.figma-make-analysis.json`
- 主题模式下的 `.figma-make-theme-tasks.md`
## Figma Make 项目特征
典型结构:
```text
figma-make-project/
├── src/
│ ├── App.tsx
│ ├── main.tsx
│ ├── index.css
│ ├── DESIGN_SYSTEM_GUIDE.md
│ ├── TOKEN_REFERENCE.md
│ ├── components/
│ ├── pages/
│ ├── styles/globals.css
│ └── guidelines/
├── index.html
├── package.json
└── vite.config.ts
```
导入时应把这套原始 ZIP 中的目录结构视为权威结构,尤其是:
- `src/App.tsx`
- `src/main.tsx`
- `src/index.css`
- `src/styles/globals.css`
- `src/components/**`
- `src/pages/**`
- `src/guidelines/**`
- `package.json`
- `vite.config.ts`
- `index.html`
说明:
- `Attributions.md`、`guidelines/Guidelines.md`、`README.md`、`TOKEN_REFERENCE.md`、`DESIGN_SYSTEM_GUIDE.md` 这类文件在 Figma 原始导出中是正常组成部分,不应误判为异常垃圾文件
- 转换时的重点不是删掉这些文件,而是识别哪些文件是页面真实依赖,哪些是说明文档
关键判断:
- 这是 **Vite + React** 项目,不是 Next.js
- 不需要处理 `"use client"`
- `vite.config.ts` 里的 `package@version` alias 只是导出兼容层,不应作为最终运行前提
## 保留导出所需的原始文件
如果导入后的目录中已经包含以下 Figma Make 原始资产,后续转换时必须保留,不要删除或覆盖为无关内容:
- `canvas.fig`:Figma Make 的二进制设计数据,用于后续回写源码并导出 `名称.fig`
- `meta.json`:项目元数据,至少保留 `file_name`、`exported_at`、`client_meta`
- `ai_chat.json`:AI 聊天历史,可为空对象 `{}`
- `thumbnail.png`:项目缩略图
- `canvas.code-manifest.json`:`canvas.fig` 中 `CODE_FILE` 的索引清单
- `images/`:设计稿图片资源,通常为 hash 命名,不要随意重命名
如果脚本分析报告里出现 `figmaMakeAssets` 字段,说明这些文件已经被保留在导入目录中,AI 在后续整理页面结构时仍需继续保留它们。
## 页面转换规则
### 固定目录结构
为了兼顾 Axhub 运行时和后续 `.fig` 导出,页面目录默认采用以下固定结构:
```text
<page>/
├── index.tsx # Axhub runtime adapter only
├── style.css # root style bridge only
└── src/
├── App.tsx # Figma export shell only
├── main.tsx # Vite mount only
├── index.css # Figma style bridge only
├── components/ # shared page implementation
└── styles/ # shared page styles
```
转换时请遵守:From fern-ok/prototype-demo, Apache-2.0.
More from fern-ok/prototype-demo
- 0.479score
extract-axure-data
fern-ok
Extract structured data from Axure prototypes using Playwright — screenshots, design tokens, interaction maps, annotations, and page text.
SkillCFreshness: CClaude Code +9 - 0.476score
generate-theme
fern-ok
从网页中采集设计令牌并生成完整的 DESIGN.md 设计规范文档 + Tailwind CSS 主题文件。 当用户提供 URL 并要求"提取主题"、"生成设计规范"、"导出设计系统"、 "提取这个网站的设计令牌"、"帮我做一个主题"、"分析这个页面的设计风格"时使用。 产出包含 DESIGN.md(Google…
SkillCFreshness: CClaude Code +9 - 0.471score
axure-prototype-workflow
fern-ok
使用 skills/ 中的 extract-axure-data 等技能提取 Axure 原型资产、生成主题/数据/文档、还原页面与生成业务文档的流程规范;当用户提供 Axure 原型链接或提出资产提取、原型还原、主题/数据模型/文档生成、交互引导需求时使用。
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/fern-ok/prototype-demo
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.426score
figma-make-project-converter
liuqiao666
将 Figma Make 导出的 Vite + React 项目转换为本项目页面组件或主题的流程规范;在处理 @/ 路径、package@version 别名、globals.css 样式迁移与主题提取时使用。
SkillDFreshness: D★ 1Claude Code +9 - 0.242score
figma-make-project-converter
tracyping-pm
将 Figma Make 导出的 Vite + React 项目转换为本项目页面组件或主题的流程规范;在处理 @/ 路径、package@version 别名、globals.css 样式迁移与主题提取时使用。
SkillDFreshness: DClaude Code +9
More from fern-ok
- 0.479score
extract-axure-data
fern-ok
Extract structured data from Axure prototypes using Playwright — screenshots, design tokens, interaction maps, annotations, and page text.
SkillCFreshness: CClaude Code +9 - 0.476score
generate-theme
fern-ok
从网页中采集设计令牌并生成完整的 DESIGN.md 设计规范文档 + Tailwind CSS 主题文件。 当用户提供 URL 并要求"提取主题"、"生成设计规范"、"导出设计系统"、 "提取这个网站的设计令牌"、"帮我做一个主题"、"分析这个页面的设计风格"时使用。 产出包含 DESIGN.md(Google…
SkillCFreshness: CClaude Code +9 - 0.471score
axure-prototype-workflow
fern-ok
使用 skills/ 中的 extract-axure-data 等技能提取 Axure 原型资产、生成主题/数据/文档、还原页面与生成业务文档的流程规范;当用户提供 Axure 原型链接或提出资产提取、原型还原、主题/数据模型/文档生成、交互引导需求时使用。
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get figma-make-project-converter running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
figma-make-project-converter skill. Agent Mart. https://agentmart.dev/skills/fern-ok-figma-make-project-converter (last updated 2026-10-24)