import-tokens-figma — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited import-tokens-figma (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Create and update Figma variables from a token source (DTCG tokens.json, a Tailwind/SCSS export, or a plain token object). Aliases and multi-mode values are supported. Re-running is safe: variables are matched by saved Figma id → key → exact name, so an update edits in place rather than duplicating.
await + return (no IIFE, no figma.closePlugin(); console.log is not returned), inputs inlined as const at the top of each script, colors in 0–1 range, load fonts before any text op, await figma.getNodeByIdAsync(...), and atomic errors (a failed script applies nothing — read the error, fix, retry).export-tokens-figma.anything export-tokens-figma produced), run the bundled parser instead of flattening by hand:
node scripts/parse-tokens.mjs tokens.tokens.json --default-mode Light --collection Brand
# --strip-prefix "ds-" drops a leading name prefix on import (e.g. ds-color/x → color/x)It prints the exact COLLECTION_NAME / MODES / TOKENS constants to paste into the apply script — handling $type→Figma type, {ref} aliases, multi-mode ($extensions…modes), dimension unit stripping, and variableId round-trip. For non-DTCG sources (a Tailwind/SCSS export), export to DTCG first or hand-build the TOKENS array: { name: "Color/Brand/Primary", type: "COLOR"|"FLOAT"|"STRING"|"BOOLEAN", values: { <mode>: literal | { reference: "{Color.Brand.500}" } }, figmaVariableId? }.
without asking. Confirm the target collection name and the mode list (first = default).
scripts/apply-tokens.js and run it via use_figma (skillNames: "import-tokens-figma"). It runs two passes — literals first, then aliases — and returns { created, updated, errors, variableIds }.
errors. Run a read-back (theexport-tokens-figma read script or get_variable_defs) to confirm values landed.
createVariableAlias. The scripthandles this; don't collapse it into one pass.
{r,g,b,a} 0–1 automatically.ALL_SCOPES, which pollutes every picker. After import,consider setting variable.scopes (see manage-variables-figma) to the right surfaces.
export-tokens-figma is the happy path —the stashed variableId makes matching exact.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.