# Sync

> Export design tokens to figma.tokens.json (tokens-studio-compatible format) so they can be imported into the Figma "tokens studio" plugin. dragoon does NOT live-sync with Figma - that requires OAuth and the Figma REST API. Use for one-way export from code to Figma, manually re-run after major token changes. Run as `node ~/.claude/skills/dragoon/skills/sync/scripts/sync.js`.

- Skill: `dragoon0x/sync` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dragoon0x/sync`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/sync/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Design & Media
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dragoon0x/sync

---


# /sync

One-way export from your codebase to Figma's tokens-studio format.

## When to use

- Bridging from code-defined tokens to a Figma plugin
- The user says "export tokens", "send to figma"

## Limitations (honest scoping)

- one-way: code → figma.tokens.json
- not live: re-run after major token changes
- live sync requires figma oauth, planned for week 7+

## Run it

```
dragoon sync           # preview
dragoon sync --apply   # write figma.tokens.json
```

Then in Figma: Tokens Studio plugin → File → Import → select `figma.tokens.json`.

