/throughline:sync-figma-tokensfrom ThroughLine
Re-run the Figma-to-code token sync — extract current Figma variables, rebuild code outputs via Style Dictionary, and open a PR with the changes for review.
Ships in ThroughLine. Installing the plugin adds it to Claude Code.
Re-run the token sync pipeline to catch any updates made in Figma.
Follow the token-sync-layer skill's pipeline using the settings already
recorded in design-system.json (sync.platforms, figma.mechanism,
figma.fileKey) — don't re-ask configuration that's already set. Specifically:
figma-environment-setup.node ${CLAUDE_PLUGIN_ROOT}/scripts/drift-check.mjs check --system <the directory holding design-system.json> --allow-empty
and read its token section. Exit 1 here is expected when generated files were
edited by hand: it's a warning, not a stop. Name those files to the user, say
this sync overwrites them and that the change belongs in Figma or in the
adapter, and carry on. Its screens section isn't this command's business.sync.platforms.$value/$type) and plain deletions.sync.lastRun and tokens.lastSync in the manifest./throughline:drift can tell later when it
moves. Run node ${CLAUDE_PLUGIN_ROOT}/scripts/drift-check.mjs stamp --system <dir>
with one --out <dir> for each directory the sync wrote: the DTCG directory
and each platform's output directory. Never the token package as a whole: it
holds files people edit on purpose (the Style Dictionary config,
package.json). Then run the variables snippet in
${CLAUDE_PLUGIN_ROOT}/references/figma-drift.md (the short one), write the
result to a scratch file, and run
node ${CLAUDE_PLUGIN_ROOT}/scripts/drift-check.mjs stamp-figma --system <dir> --from <file>.
design-system/token-stamp.json goes in the same PR.local-git) summarizing added / changed / deleted / probable-renames. Never
write silently.Scale explanation to user.codingLevel. This is the recurring loop of the whole
system: tokens change in Figma → /sync-figma-tokens → review PR → merge.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
10 commands in this plugin
/check-figmaCheck FigmaCheck what's already in Figma against the design system, read-only — screens for detached components and raw values a token has, and existing component sets for their states, focus ring and focus contrast./compose-codeCompose CodeCompose a screen in code from the design system's own components and tokens — plan checked before writing, every value a token, gated before it's handed over./compose-figmaCompose Figmanpx claudepluginhub jrpease/throughline --plugin throughlineOther plugins' commands for the same job