Figma Sync
/install figma-sync
figma-sync
Bidirectional Figma ↔ Code synchronization skill.
Setup
export FIGMA_TOKEN="your-personal-access-token"
Get a token at https://www.figma.com/developers/api#access-tokens
Commands
Pull (Read + Generate Code)
python3 scripts/figma_pull.py --file-key \x3CKEY> --platform rn-expo --output-dir ./out
python3 scripts/figma_pull.py --file-key \x3CKEY> --node-ids 1:2,3:4 --platform web-react --output-dir ./out
Outputs: designModel.json, tokens.json, codePlan.json, and generated component files.
Push (Write Back)
python3 scripts/figma_push.py --file-key \x3CKEY> --patch-spec patch.json
python3 scripts/figma_push.py --file-key \x3CKEY> --patch-spec patch.json --execute # actually apply
Dry-run by default. Pass --execute to apply changes.
Diff
python3 scripts/figma_diff.py --file-key \x3CKEY> --local-model designModel.json
Outputs changes and a patchSpec to sync.
Preview
python3 scripts/figma_preview.py --file-key \x3CKEY> --operations ops.json
Shows what would change without touching anything.
Platforms
- rn-expo: React Native + Expo + TypeScript (primary)
- web-react: React + Tailwind CSS (secondary)
Rate Limits
Uses exponential backoff, ETag caching, and respects Figma's rate limits (~30 req/min).
Cache stored in .figma-cache/ directory.
References
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install figma-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/figma-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Figma Sync 是什么?
Read Figma files, extract design tokens, generate React Native Expo TS or Web React + Tailwind code, write back to Figma, and diff local models against Figma for minimal patches. Triggers: "pull figma", "sync figma", "figma to code", "push to figma", "diff figma", "extract design tokens", "generate from figma", "preview figma changes". 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1448 次。
如何安装 Figma Sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install figma-sync」即可一键安装,无需额外配置。
Figma Sync 是免费的吗?
是的,Figma Sync 完全免费(开源免费),可自由下载、安装和使用。
Figma Sync 支持哪些平台?
Figma Sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Figma Sync?
由 kristinadarroch(@kristinadarroch)开发并维护,当前版本 v1.0.0。