Skip to content
Agentmart
Submit a tool
This entry duplicates figma-make-exporter, which is the one we list in search.

figma-make-exporter

将本项目页面补齐为可导出 Figma Make 资产的结构,并产出可直接下载的 `名称.fig` 文件;适用于保留原始 Figma Make 资产、同步导出壳子和生成 canvas.fig。

Skill by fern-ok

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying figma-make-exporter?

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.

Book a call

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-exporter

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.

We use your email only for this newsletter. Privacy

About

将本项目页面补齐为可导出 Figma Make 资产的结构,并产出可直接下载的 `名称.fig` 文件;适用于保留原始 Figma Make 资产、同步导出壳子和生成 canvas.fig。

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
figma-make-exporter
Description
将本项目页面补齐为可导出 Figma Make 资产的结构,并产出可直接下载的 `名称.fig` 文件;适用于保留原始 Figma Make 资产、同步导出壳子和生成 canvas.fig。
License
Apache-2.0
Instructions
275 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Figma 导出壳子规范

本技能用于把当前页面补齐为可导出的 Figma Make 资产结构,并确保最终通过后台导出接口拿到的产物是 `名称.fig`。

这里的最终下载产物不是 `.make` 压缩包,而是项目目录中的 `canvas.fig` 二进制文件。后台会直接把它以 `名称.fig` 的文件名下载给用户。

## 核心目标

- 让当前页面具备稳定的 Figma 导出资产
- 确保导出的 `canvas.fig` 与当前 Axhub 页面内容一致
- 保留所有原始 Figma Make 资产,避免后续无法再次回写导出

## 关键原则

1. **先同步页面,再执行 pack**

如果当前页面的真实入口是根目录 `index.tsx` / `style.css`,而导出壳子使用的是 `src/App.tsx` / `src/index.css`,那么必须先把两者同步,再运行 `canvas-fig-sync.mjs pack`。

不要只更新根目录页面却直接回写旧的 `src/App.tsx`,否则导出的 `.fig` 内容会和当前页面不一致。

2. **优先做“薄壳”同步**

只要结构允许,优先让导出壳子复用当前页面入口,而不是再维护一套容易漂移的拷贝:

- `src/App.tsx` 优先作为薄包装,直接复用当前页面主组件或共享组件
- `src/index.css` 优先复用或导入根目录 `style.css` 的真实样式来源
- 如果必须复制代码,也要在本次任务里一起更新到一致

3. **保留原始资产**

如果目录里已经存在以下文件,必须保留:

- `canvas.fig`
- `meta.json`
- `ai_chat.json`
- `thumbnail.png`
- `canvas.code-manifest.json`
- `images/`

4. **使用固定目录结构**

为了降低后续维护成本,页面目录采用固定职责分层:

```text
<page>/
├── index.tsx          # Axhub 运行时适配层
├── style.css          # 根入口样式转发层
└── src/
    ├── App.tsx        # Figma 导出薄壳
    ├── main.tsx       # Vite 挂载层
    ├── index.css      # Figma 入口样式层
    ├── components/    # 页面视觉与交互主体
    └── styles/        # 共享样式
```

固定约束:

- 根目录 `index.tsx` 只做 Axhub 运行时适配,不再复制一套页面视觉实现
- `src/App.tsx` 只做 Figma 导出薄壳,不再复制一套页面业务逻辑
- 共享页面主体应尽量落在 `src/components/**`
- 共享样式应尽量落在 `src/styles/**`

如果你在生成或改造这些文件,请直接在 `index.tsx`、`src/App.tsx`、`src/main.tsx` 顶部写清楚职责注释,提醒后续维护者不要让两套入口漂移

5. **执行本技能后的最终项目必须符合上述固定结构**

这不是建议项,而是验收约束。

如果当前项目结构不满足这套职责分层,执行本技能时应先重构到该结构,再继续生成或回写 `canvas.fig`。

## 当前导出产物

后台导出接口:

```text
GET /api/export-make?path=prototypes/<page-name>
```

接口行为:

- 使用 `canvas-fig-sync.mjs pack` 把当前源码回写到 `canvas.fig`
- 刷新 `canvas.code-manifest.json`
- 更新 `meta.json.exported_at`
- 直接下载 `canvas.fig`,文件名为 `名称.fig`

## 使用场景

### 场景 A:项目由 Figma Make 导入,已有 `canvas.fig`

此时目标不是新建结构,而是把当前页面同步回已有导出壳子,然后重新回写 `canvas.fig`。

**步骤**:

1. 检查并同步当前页面和导出壳子

重点核对:

- 根目录 `index.tsx`
- 根目录 `style.css`
- 导出壳子 `src/App.tsx`
- 导出壳子 `src/index.css`
- 导出壳子依赖的 `src/components/**`、`src/pages/**`、`src/styles/**`

2. 回写 `canvas.fig`

```bash
node scripts/canvas-fig-sync.mjs pack \
  --fig src/prototypes/<page-name>/canvas.fig \
  --from src/prototypes/<page-name> \
  --prune-missing \
  --sanitize-for-export
```

3. 刷新 manifest

```bash
node scripts/canvas-fig-sync.mjs inspect \
  --fig src/prototypes/<page-name>/canvas.fig \
  --manifest src/prototypes/<page-name>/canvas.code-manifest.json

From fern-ok/prototype-demo, Apache-2.0.

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from fern-ok

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-exporter 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.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying figma-make-exporter?

CallGet help
Cite this page

figma-make-exporter skill. Agent Mart. https://agentmart.dev/skills/fern-ok-figma-make-exporter (last updated 2026-10-24)