figma-build-design
NewBuilds or updates screens in Figma through the linked design system using native Figma MCP workflows. Use when creating or revising UI in Figma, reusing DS components and live library variables, inspecting example screens, running a mandatory preflight in the target file, enforcing library-first composition, and stopping cleanly when required assets are not confirmed available.
Overview
Figma Build Design
This skill enforces a strict workflow for working with a design system in Figma via MCP. It prevents the agent from wasting time on manual redraws, false conclusions about missing library assets, and chaotic Figma searches.
First Run
Before reading anything else, determine whether the skill is configured:
- •
references/config.mddoes not exist, or its Library Collections section still lists the placeholdertodo-collection-name→ the skill is not configured. Readreferences/setup.mdand follow only it. - •Otherwise → the skill is configured. Continue to Quick Start.
Edge case: if config.md is missing but config.example.md has been filled in directly (its todo-collection-name placeholder is gone), the user edited the template by mistake — recover it first per references/setup.md → Recovering an Edited Template.
Quick Start
- Read references/ds-structure.md in full.
- Read references/workflow.md.
- If the task is screen/page level, open an example screen before preflight — its link is in
config.md→ DS Links → Example Layouts (ds-structure.mdexplains how to choose). - Run references/preflight.md in the target Figma file.
- If preflight fails, follow references/fallback-policy.md.
- For precise Figma MCP behavior, use references/figma-mcp-native-paths.md.
Hard Rules
- •Work in
strict-library-firstmode unless the user explicitly allows rescue mode. - •Do not conclude that
variablesortext stylesare unavailable until you have checked the live target file and example screens. - •Do not use
search_design_systemas the sole source of truth. - •For variables, always start with
teamLibrary. - •For text styles, always start by inspecting example screens and already-built screens.
- •For screen/page tasks, example layout references are mandatory, not optional.
- •Do not manually redraw what can be imported or safely reused as an instance.
- •Vary instances only through their defined properties (variant, boolean, text, instance-swap) and text content — never resize internals, swap fonts, or restyle child layers. Use the component built for the role; do not repurpose one component as another. If a role has no component, use system-bound custom composition or stop — never bend an unrelated instance to fit.
- •Compose incrementally — one major section per
use_figmacall — and validate each section before the next; do not report done until the build is validated (workflow.md → Validation). Large single-shot scripts are a primary failure mode. - •If the live variables path is not confirmed, do not use local snapshot/json fallback.
- •If a required asset is not confirmed live, stop or enter fallback only according to skill rules.
Compatibility
This skill defines the workflow. For Plugin API details, also load Figma's companion MCP skills (not part of this repo):
- •Before every
use_figmacall, load the figma-use skill (0–1 color range, font recipe, page switching, return node IDs, and other critical rules). - •For building a screen from code, also load figma-generate-design (Code Connect discovery,
search_design_system, incremental composition). - •If the screen needs images loaded from external URLs, a parallel
generate_figma_designcall is required (use_figmacannot load external URLs; described in figma-generate-design). Images already present as DS image fills, components, or vectors do not need this.
If a companion skill is not installed locally, load it from the Figma MCP resource instead: skill://figma/figma-use/SKILL.md or skill://figma/figma-generate-design/SKILL.md.
Main Path
The authoritative order of operations lives in references/workflow.md. In short:
- Build an asset map — confirm library collections, control variables, control component import, and text style/token usage on the example screen.
- Compose through the system, incrementally — one major section per
use_figmacall: import and bind variables and components, reuse instances and component properties, follow example-screen composition, and default to auto layout for new containers. - Validate each section — screenshot the result and confirm instances, bound variables, and styles were used, with no hardcoded value where a matching token exists and no sanctioned component skipped (details in references/workflow.md → Validation). Fix the mapping before the next section.
- Stop cleanly on broken assumptions — if library access, the live variables path, or the text style path is not confirmed, do not silently fall back to manual rescue; stop or enter fallback only per references/fallback-policy.md. If a text override is needed inside a system instance, verify the font load path first.
When to Read References
- •references/config.md — user-specific data (DS links, control assets, example screen), created from
config.example.mdduring setup and git-ignored. Never overwritten by skill updates. - •references/ds-structure.md — source map and decision priorities.
- •references/workflow.md — the authoritative action order.
- •references/preflight.md — run before any build.
- •references/fallback-policy.md — when an asset path is not confirmed.
- •references/figma-mcp-native-paths.md — Figma MCP routes confirmed in practice.
- •references/setup.md — initial configuration only.
Install & Usage
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/figma-build-design.md https://raw.githubusercontent.com/petrkry/figma-build-design-skill/main/SKILL.md/figma-build-designFrequently Asked Questions
What is figma-build-design?
Builds or updates screens in Figma through the linked design system using native Figma MCP workflows. Use when creating or revising UI in Figma, reusing DS components and live library variables, inspecting example screens, running a mandatory preflight in the target file, enforcing library-first composition, and stopping cleanly when required assets are not confirmed available.
How to install figma-build-design?
To install figma-build-design, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /figma-build-design.
What is figma-build-design best for?
figma-build-design is a community categorized under General. It is designed for: design, mcp. Created by petrkry.