/design-os-figma-plugin:design-os-figma-craftfrom design-os-figma-plugin
Guides programmatic Figma file building and editing via the figma-agent CLI or use_figma MCP, with Plugin-API failure modes and verification gates.
Ships in design-os-figma-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This file is the router. It holds the pipeline, the laws, and a load-table. Details live in exactly one reference each — load on demand.
| Bridge | Use for | Notes |
|---|---|---|
design:os figma-agent CLI (DESIGN:OS Bridge plugin) | ALL mutations when the project is design:os-onboarded | Preferred canonical hand. figma-agent status must show plugin.connected:true for the RIGHT file, checked 2× ~15s apart before long batches. Prefer typed ops (clone-traits, inspect) over raw exec-js. |
use_figma MCP | Mutations where no figma-agent is wired; reads | MANDATORY: load the figma-use skill first, every call. |
html_to_design (DesignAgent) | Bulk HTML→Figma imports of authored screens | HTML-first authoring pipeline; not for surgical edits. |
MCP read tools (get_metadata/get_screenshot/get_design_context) | Diagnosis, recon, verification | Cheapest-first: metadata → screenshot → design_context (last resort, 25K-token cap). |
Every mutation script opens with a file guard: if (figma.root.name !== '<expected file>') throw — multi-plugin brokers can route to the wrong file.
0. PREFLIGHT Adapter loaded · bridge alive (status ×2) · registry/docs read · reconcile if user changed the file
1. RECON Cheapest-first read of source + target. Element→component mapping table BEFORE any code.
2. ENHANCE Close component gaps by the creation ladder (reuse → override → variant → new; owner approval for shared-master changes)
3. BUILD Sequential, one section per call, idempotent scripts, tag every created node, position explicitly (never (0,0))
4. VERIFY 3 layers: node-read asserts → numeric geometry asserts → FRESH PNG read by eye. Structural ops verified in a NEW call.
5. CLOSE Reconcile registry/docs in the same change · distill ≤1 durable lesson · report honestly (misses as misses)
Detail per phase: pipeline.md.
setProperties), visibility of layers designed to toggle, and per-instance geometry already codified as a pattern (e.g. detached meter fills — and a detach still gets declared as debt). Verify: compare instance paints against master paints (root + text sublayers) — the diff must be zero.Full thinking layer (8 operating gates + rationale): operating-gates.md.
| Doc | When to load |
|---|---|
| operating-gates.md | Every session, before the first mutation — the thinking layer |
| pipeline.md | Every build — per-phase detail, MCP/call budgeting |
| plugin-api-gotchas.md | Before writing ANY exec-js / use_figma script — 6 classes of API failure modes with fixes |
| component-system.md | Any componentize / variant / table / shell decision — ladder, extraction heuristics, column-first tables, shell+slot, template-first |
| screen-composition.md | Building any full screen — shell + slot anatomy, lift masters from live instances, state axes, overlays in wrapper frames, icon-swap carve-out, helper-library contract |
| drawer-decision-tree.md | Composing any drawer/dialog body — derive the tree from the file, width tiers, purpose rows A–E, forbidden list |
| section-presentation.md | Placing screens in a section, notes, tags, archiving, data-coherence gate, owner-mockup → DS rebuild |
| verification-protocol.md | Closing any batch — the 3-layer verify, false-green catalog, sweep disciplines |
| build-script-standard.md | Writing any mutation script — the canonical script anatomy (guards → idempotency → spec constants → mutate → assert → structured return) + anti-pattern table |
| script-helpers.md | Writing any mutation script — copy the fail-loud helper block + ordering laws + the guards (effective-visibility, live counts, safe delete, blast radius) |
| quality-gate-system.md | Setting up or evolving quality gates — executable gate suite, "no defect escapes twice", 4 catch layers, gate honesty rules, convention-DNA extraction |
| gate-authoring.md | Writing or converting any gate script — node-id scope + findAllWithCriteria, skipInvisibleInstanceChildren, one page.loadAsync(), per-gate time budget, KNOWN-RED header, concealed text; starts from scoped-gate-template.js |
| campaign-orchestration.md | Multi-screen campaigns with agents — 1-agent-1-job, batch-by-budget, study-first, backup-edit, canvas organization, wave close |
| knowledge-sync.md | User says they changed the file, or your docs picture may be stale — URL-drop protocol, drift channels, reconcile triggers |
| project-adapter-template.md | Onboarding this discipline to a new project |
×, →) or hand-drawn vectors. Stroke-based icon sets (Lucide): recolor strokes only, never fills.State axis), never per-instance structural overrides. Instance overrides are for DATA only.setSharedPluginData(<ns>, 'run_id'/'key', …) for idempotent cleanup and reliable re-location.references/build-script-standard.md (opens in a new tab)references/campaign-orchestration.md (opens in a new tab)references/component-system.md (opens in a new tab)references/drawer-decision-tree.md (opens in a new tab)references/gate-authoring.md (opens in a new tab)references/knowledge-sync.md (opens in a new tab)references/operating-gates.md (opens in a new tab)references/pipeline.md (opens in a new tab)references/plugin-api-gotchas.md (opens in a new tab)references/project-adapter-template.md (opens in a new tab)references/quality-gate-system.md (opens in a new tab)references/scoped-gate-template.js (opens in a new tab)references/screen-composition.md (opens in a new tab)references/script-helpers.md (opens in a new tab)references/section-presentation.md (opens in a new tab)references/verification-protocol.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Invoke before ANY programmatic Figma mutation session in ANY project — screen builds, component minting, variant sets, table builds, master edits, batch sweeps. Pairs with a thin per-project adapter (see references/project-adapter-template.md). Skip only for pure read-only diagnosis of a single node.
Three short reads, in order
npx claudepluginhub jangtrinh/design-os-figma-plugin --plugin design-os-figma-plugin2 skills in this plugin
Other plugins' skills for the same job