01 / Figma → code
d2c
Eight steps from design link to merged MR: survey and reuse audit, plan review, spec extraction, 1:1 build, regression page, motion review, screenshot acceptance, and cleanup.
2 stops + 1 conditional
Code ↔ design ↔ code
View source SourceFour pipelines close the loop between Figma and a production codebase—packaged as a Claude Code skill series plus an optional Figma plugin.
The shape
Restore turns approved Figma into production code. Export moves components, states, and tokens back into Figma. Govern converges the system and freezes it with gates.
Three linked skills
01 / Figma → code
Eight steps from design link to merged MR: survey and reuse audit, plan review, spec extraction, 1:1 build, regression page, motion review, screenshot acceptance, and cleanup.
2 stops + 1 conditional
02 / Code → Figma
Moves components and tokens into Figma. Every state is enumerated from source, everything is bound to tokens, and componentization requires an explicit answer.
12 field-tested gotchas
03 / Code → code
Converges and freezes a style system through census, reviewed spec, one source, full migration, a CI gate, dead-code removal, and written rules.
Spec review before edits
04 / Optional push lane
Token Sync / Figma plugin
Snapshot variables and styles from main into Figma.
Preview live foundations and review bound objects.
Open an MR with safe CSS write-back and manual items listed.
A red check:figma-variables gate is a designed
collaboration signal: snapshot and CSS disagree until the change
is applied or rejected.
Why the loop
c2d2c starts from what already exists. Going c2d, Claude maps out every module, state, and component and connects them with tokens—drafts that give a full picture of the current state, where a few visual tweaks are often all they need. Going d2c, everything hooks back into the existing design system without much extra prompting.
Production evidence
Skills in the series
Worked production cases
Merged MRs in the global-search case
Case A / restore
Four rounds moved from structure to detail to motion. Each round repeated the same build, screenshot acceptance, and merge loop.
Case B / export
Source enumeration covered seven mention kinds and the favicon fallback chain before components, states, and token bindings moved into Figma.
Case C / govern
One MR shipped the fixed ladder, migration, usage gate, written rule, and Figma export together.
Case D / token sync
Export script, CI gate, and local Figma plugin interlock while preserving code as the source of truth.
Repository artifacts
Adoption path
No upfront configuration: on first run a skill reads what it can
from the repo, asks about the rest, and saves it to
C2D2C.md. The one hard prerequisite is the Figma MCP
connector—read access for d2c, write access for c2d.
Run the skills on Claude Fable 5. Each pipeline is a long multi-stop agent run across Figma and Git tooling—earlier models drop steps and need re-prompting; only Fable 5 keeps the loop smooth end to end.
Run npx skills add BIAsia/c2d2c, or clone the
repository and add it as a local Claude Code plugin for the
full toolkit.
“Implement this design 1:1: <figma link>.”
“Map out the search module—components and states—and export it to Figma: <figma link>.”
“Unify how radius is used across the project—one ladder, migrate everything, gate it.”