work-with-design-systems
Inspect, build, or extend Figma design systems — and optionally sync them to code. Two modes in one skill: inspect mode (read-only audits with WCAG checks…
от genkovich★ 17 звёзд на GitHub
Установить work-with-design-systems в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Work with design systems in Figma
Two modes in one skill: inspect (read-only quality audits with reports) and build (creating, fixing, extending components and tokens). Inspect produces structured reports. Build produces working Figma files. Build mode optionally extends to Phase 6 (sync to code) — generates tokens.css, an audit script, and AI rules file for the user's codebase. Phase 6 is off by default and only triggers on explicit user request.
Between inspect and build, the skill always pauses for the user to decide what to do with the report.
Always pass skillNames: "work-with-design-systems" when calling use_figma as part of this skill. This is a logging parameter — it does not affect execution.
Prerequisites
You MUST invoke the figma-use skill (Skill tool: skill: "figma-use") before every use_figma call. It contains critical Plugin API rules, gotchas, and script templates. Never call use_figma without it.
IMPORTANT: Before working with design systems in Figma, load the working-with-design-systems/wwds.md reference from the figma-use skill to understand key concepts and guidelines.
Critical rules
These apply to BOTH modes — inspect and build.
- Work incrementally. One component (or one variant set) per
use_figmacall. Validate after each step. This is the single most important practice for avoiding bugs. - Never build on unvalidated work — match validation depth to change type.
- Structural change (new variant, restructured auto-layout, new property,
swapComponent):get_metadata+get_screenshotbefore next step. Visual properties may have shifted invisibly. - Binding / description / codeSyntax / scope / rename change: verify INSIDE the same script via
node.boundVariables/node.description/variable.codeSyntax/variable.scopesreads, return as part of the result. No externalget_screenshotneeded — Figma is deterministic on these. - End of batch: one
get_screenshotof the parent CS for visual sanity. Why:get_screenshotis the heaviest call and Figma MCP has a ~15 calls/min rate limit. Matching depth to risk frees that budget for the structural changes that actually need visual verification, and stops you hitting the rate limit on a binding pass that doesn't need it.
- Structural change (new variant, restructured auto-layout, new property,
- Bind visual properties to variables when a scale value exists. Fills, strokes, padding, itemSpacing, corner radius. For component-specific dimensions that don't match any scale value (e.g., 3px internal padding on a toggle track, 1px divider offset), hardcoded values are acceptable — document these exceptions in the component description.
- lineHeight variables must store pixel values, not percentages. Figma variables are unitless. When bound to lineHeight, the value is interpreted as pixels. If your DS defines line heights as percentages (e.g., 150%), convert before storing: fontSize × (percentage / 100). Text styles can store {unit: "PERCENT", value: 150} — variables cannot.
- Set codeSyntax.WEB on every variable. Without it, agents using
get_design_contextget raw Figma variable names instead of CSS token names. Set during creation, not as a separate pass. - Set explicit variable scopes. Never leave ALL_SCOPES. Background colors get FRAME_FILL + SHAPE_FILL. Text colors get TEXT_FILL. Spacing gets GAP + WIDTH_HEIGHT. Radius gets CORNER_RADIUS. Font size gets FONT_SIZE.
- TEXT properties with the same name merge across variants. If two variants both define
addComponentProperty("Label", "TEXT", ...), they become ONE shared property on the component set with one default value. For different defaults per variant: use different property names, leave text as direct content with instance text overrides, or accept the shared default. - TEXT component properties on every customizable text node. Without them, label overrides ("Label" → "Submit") revert on component update. Every customizable text node needs
componentPropertyReferences = { characters: key }. - Use slots for compound components. Compound components (Card, Modal, Dialog, ListItem, ReviewCard) that contain variable inner content MUST use named slots instead of detach patterns or text-only props. Without slots, agents and users detach the component to edit inner content, which breaks maintenance and the agent's ability to reason about composition. Slots are available in Figma as of March 2026. See
references/build/slots-guide.md. - Every public component MUST have a structured description. Figma MCP reads component descriptions and passes them to agents as context. Missing descriptions force the agent to guess purpose, behavior, and composition. Use the template in
references/build/component-description-template.md. Use plain-text formatting (UPPERCASE section headers, no markdown bold or##—get_design_contextescapes them) — see template's "MCP delivery format" section. Private base components (prefixed with.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .gitignore
- BACKLOG.md
- CHANGELOG.md
- LICENSE
- README.md
- assets/file-structure-template.md
- references/edge-cases.md
- references/examples.md
- references/inspect/accessibility.md
- references/inspect/component-descriptions.md
- references/inspect/detached-instances.md
- references/inspect/interactive-states.md
- references/inspect/naming-quality.md
- references/inspect/overview.md
- references/inspect/readiness-scoring.md
- references/inspect/report-templates.md
- references/inspect/token-compliance.md
- scripts/inspect/audit-accessibility.js
- scripts/inspect/audit-detached.js
- scripts/inspect/audit-naming.js
- scripts/inspect/audit-states.js
- scripts/inspect/audit-tokens.js
- scripts/inspect/inventory.js
FAQ
Что делает скилл work-with-design-systems?
Inspect, build, or extend Figma design systems — and optionally sync them to code. Two modes in one skill: inspect mode (read-only audits with WCAG checks, component scoring, detached instance detection, handoff docs) and build mode (creating components with variable bindings, slot-based composition, structured descriptions, validation, and optional export of tokens.css + AI rules to the user's codebase). Use when the user says 'audit my design system', 'check component quality', 'create design system', 'build DS in Figma', 'generate component library', 'add slots to my components', 'sync design tokens from code', 'find detached instances', 'check WCAG compliance', 'export tokens to code', 'generate CLAUDE.md for design system', or wants to push a design system from code to Figma or back. The skill auto-detects the mode from request, or asks if unclear. After inspect, ALWAYS pauses and waits for explicit user decision before any build action. Phase 6 (sync to code) is OFF by default — only triggers on explicit user request. Does NOT implement Figma designs as code — use figma-implement-design for that. Does NOT create individual screens — use figma-generate-design for that.
Как установить скилл work-with-design-systems?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл work-with-design-systems запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…