/design-engine:figma-and-tooling-workflowfrom design-engine
Structures Figma files with deliberate page/section layouts, implements token tiers as variables with modes, builds components with properties and auto-layout, and prepares Dev Mode handoff.
Ships in design-engine. 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.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com.
design-tokens-and-naming into Figma variables, with modes carrying light/dark,
brand/tenant, and density variation, plus breakpoint number modes.design-tokens-and-naming. This skill is how those tokens are expressed and operated in Figma
(as variables/modes); it does not invent the token model.design-handoff-and-dev-spec. This skill sets Figma up so Dev Mode handoff is clean; it does not
replace the written spec.component-library-architecture. This skill builds that model in Figma (properties + variants +
auto-layout) but defers the architecture decisions to it.| Input | Source | Required? | Evidence |
|---|---|---|---|
| Token tiers, modes, and naming contract | design-tokens-and-naming | yes | Approved token source and aliases |
| Component scope and state model | component-library-architecture | yes | Component inventory and matrices |
| Team roles and release process | Design-system owners | yes | Editors, reviewers, publishers, and branch policy |
design-tokens-and-naming: the three tiers and the semantic role
map, the theme axes (which of light/dark, brand/tenant, density must coexist), and the
breakpoint set. Figma variables carry these; they don't replace the decision.component-library-architecture.mdk for Maduuka) used consistently in variable
collections, styles, components, and pages.doctrine/references/wcag-2.2-criteria.md).Fix the file and page architecture before drawing anything. Decide the file split first:
typically a Foundations/Tokens library file, a Components library file, and per-product
Product files that consume both as published libraries — so themes and components publish once
and fan out, rather than being copied. Inside each file, use pages as top-level sections
(e.g. Cover, 🧱 Foundations, 🧩 Components, 📐 Patterns, 🚧 WIP, 🗄 Archive) and
sections (the frame-grouping primitive) to chunk a page. One canvas of loose frames is the
structural cause of un-findable, un-maintainable design. See references/figma-conventions.md
§File & page structure.
Build the token tiers as variable collections, with modes as the theming seam. In current Figma, variables (not styles) are where tokens live and where theming happens:
Primitives collection (raw ramps, the
space/size scale, radii) and a Semantic collection (role aliases that reference primitives).
Component-tier values usually live on the component as bound properties or a small per-component
collection. This mirrors the primitive → semantic → component tiers exactly.Theme axis with Light /
Dark (and Brand A / Brand B, or Tenant-X, as separate modes or a second collection).
Each mode re-points the same semantic variable at a different primitive — the components never
change, only the alias targets. This is the in-tool form of "semantic tokens are the theming
seam, never the primitives."Breakpoint axis (Compact /
Regular / Expanded) driving spacing, container width, and type-step numbers, so one frame
adapts by mode-switch instead of three hand-built copies.references/figma-conventions.md §Variables & modes.Decide styles vs variables deliberately — they are not interchangeable. Use variables for
anything that must theme or switch by mode: all colour fills/strokes, spacing, radius, and
single-axis values. Use styles where Figma still needs a bundled, multi-property object:
text styles (font, size, line-height, spacing, weight as one applied unit — back the size by a
variable where possible), effect styles (shadows/blur, themed via variable-bound colours), and
grid styles. The rule: a value that a theme re-points → variable; a composite the tool applies
as one named bundle → style, with its themeable parts variable-bound underneath. Recording this
seam is what keeps dark mode and multi-brand free. See references/figma-conventions.md §Styles vs
variables.
Build every component on auto-layout. Auto-layout is non-negotiable for a system component: it gives real padding/gap (bound to space variables), hug/fill sizing, direction, and wrap, so the component reflows to content and breakpoint instead of being pixel-pushed. Bind padding and gap to the space variables; never type raw pixel padding into a system component. Nested auto-layout + min/max width is how one component handles the longest localized string and the empty state without a separate frame.
Use component properties + variants for the API, not duplicated layers. Express the component
model from component-library-architecture with Figma's property types:
intent (primary/secondary/ghost/destructive),
size (sm/md/lg), state (default/hover/focus/active/disabled/loading/selected/error). Keep
axes separate properties, not one primary-lg-loading variant name — the same orthogonality
rule the component skill enforces.doctrine/references/wcag-2.2-criteria.md).
See references/figma-conventions.md §Component properties & variants.Name everything to one scheme and hold it. Layers, components, variables, styles, pages, and
branches all follow a stated convention: components and variant props in a Group/Name,
slash-nested form (Button, property size=md); variables dot/slash-pathed to their tier and role
(color/text/default, space/inset/md, radius/200) so the name says its tier exactly as the
token naming rule requires; layers named by role not Frame 47. Auto-generated names
(Rectangle 12, Group 5) in a published library are the Figma form of drift. See
references/figma-conventions.md §Naming.
Operate the library through branching and disciplined publishing. Make non-trivial changes on a
branch of the library file (review → merge), never live on main where every subscriber sees
half-finished work. Publish deliberately: review the change list, write a publish description,
bump a stated version, and let product files update the subscribed library on their own cadence.
A token/variable rename ripples to every consumer — treat publishes as releases, not autosaves.
See references/figma-conventions.md §Branching & publishing.
Set the file up so Dev Mode handoff is clean. Dev Mode is where engineering reads the design:
color/action/primary/bg) rather than a raw hex — which is exactly the token reference the
written handoff (design-handoff-and-dev-spec) cites. Hardcoded values inspect as bare hex/px
and force the developer to hardcode too.references/figma-conventions.md §Dev Mode.Keep the anti-slop posture in-tool. The convergent default is a file full of detached
instances, raw hexes, and a generic blue flat-fill Button. The authored alternative is one
variable-driven system where the one strong choice (a deliberate radius, a brand focus ring) is set
once in a semantic variable and inherited everywhere. Component instances stay attached;
overrides are deliberate, not accidental detaches. (doctrine/design-doctrine.md §0, §2.)
| Condition | Figma construct | Wrong-choice failure |
|---|---|---|
| Value changes by theme, brand, or density | Variable with an explicit mode | Duplicated styles and frames drift |
| Visual recipe has no runtime semantic role | Style referencing variables | Forcing everything into variables obscures intent |
| Property is an orthogonal consumer choice | Component property or variant axis | Detached component copies proliferate |
| Structural experiment is not release-ready | Branch with named review owner | Editing the main library destabilises consumers |
Read access is required to current files, libraries, tokens, and consumers. Editing is allowed only for authorised setup or remediation. Tool execution is required for variable, component, publication, and Dev Mode evidence; library publication and branch merge require separate authority.
If required evidence or tooling is unavailable, use the scoped fallback below and mark the result unverified. Without Figma access, deliver a file architecture, variable schema, naming map, and migration plan, all marked proposed. Without publication or consumer access, stop before release and do not claim library compatibility; provide the exact checks and owners needed for verification.
variant = primary-lg-loading) instead of separate intent / size /
state properties — combinatorial, un-composable, un-reviewable.Rectangle 12, Component 4) and ad-hoc variable names that don't
encode their tier — drift made visible.main and publishing without a description/version — subscribers
inherit half-finished work and can't tell what changed.| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| File, page, and library architecture | Design-system team | Ownership, purpose, and publication boundary are explicit |
| Variable, mode, component-property, and naming specification | Designers and engineers | Aliases preserve token tiers and supported themes render correctly |
| Branch, publication, and Dev Mode handoff record | Reviewers and consumers | Review authority, change notes, and inspected-code evidence are recorded |
Primitives + Semantic, with a
Theme mode axis (light/dark/brand) and a Breakpoint/density number-mode axis — aliased, not
duplicated, with the themed pairs holding the WCAG gate.examples/sample-design-system-figma-setup.md — a complete worked setup for a sample design system:
the file/page/library split, the Primitives + Semantic variable collections with a Theme
(Light/Dark/Brand-B) mode axis and a Breakpoint number-mode axis, the styles-vs-variables split,
a Button built on auto-layout with its component-property/variant API, and the naming + branching +
Dev-Mode conventions — every value mapping to the tokens from design-tokens-and-naming. Never lorem.doctrine/design-doctrine.md — Mission §0 (one authored system beats five hedged copies; attached
variable-driven components over a detached, hardcoded canvas) and Anti-Slop Charter §2 (state the
choice first; the sourcing-authority asymmetry — what we build in Figma traces to the token system
and human design authority, never to an AI tool's defaults).doctrine/references/wcag-2.2-criteria.md — the contrast floors (4.5:1 / 3:1) the themed variable
modes must hold per theme, and focus-visible (2.4.7, 2.4.11, 1.4.11) required as a state variant.references/figma-conventions.md — the canonical in-tool conventions: file/page structure,
variables & modes (theming + breakpoints), styles vs variables, component properties & variants,
auto-layout, naming, branching & publishing, and Dev Mode handoff.09-…/design-tokens-and-naming — the token tiers and semantic role map that Figma
variables and modes carry (a Figma variable is a token's in-tool home; the name encodes its tier).09-…/design-handoff-and-dev-spec (Dev Mode surfaces the variable/token names its redlines
cite) and 09-…/component-library-architecture (the variant/state/API model this skill builds in
Figma).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine