Agent skill

Figma Generate Library Skill: Build a Design System from Code

The figma-generate-library skill guides an AI coding agent through building a Figma design system from your codebase in phases: tokens first, then pages, then components, with checkpoints between them.

Install
$skill-installer figma-generate-library
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the figma-generate-library skill?

The figma-generate-library skill builds or updates a design system in Figma from a codebase. It sets the order of work in five phases, discovery, foundations, file structure, components and QA, and pauses for your approval between them. It is meant to run alongside the figma-use skill.

SKILL.md opens with a warning: building a design system is never a one shot task. The skill expects 20 to 100 or more use_figma calls and splits them into phases, each ending with a point where you approve before the agent continues.

It teaches what to build and in what order. Its companion, the figma-use skill, teaches how to call the Figma Plugin API, and SKILL.md says both should be loaded together.

What changes in your agent's output

  • Variables come before components, because components bind to variables. No token means no component.
  • Primitive variables hold raw values, and semantic variables alias them and switch by mode, such as Light and Dark.
  • Every variable gets explicit scopes and a code syntax such as var(--color-bg-primary), so Dev Mode and round trips work.
  • Components arrive one at a time with variants, properties and a screenshot for you to check.

The five phases

  • Phase 0, discovery: analyze the code, inspect the Figma file, search subscribed libraries and lock the v1 scope.
  • Phase 1, foundations: variable collections, primitives, semantic variables, scopes, code syntax, effect styles and text styles.
  • Phase 2, file structure: a page skeleton plus foundations pages such as color swatches and type specimens.
  • Phase 3, components: a dedicated page for each, built with auto layout and variable bindings.
  • Phase 4, integration and QA: Code Connect mappings, accessibility, naming and unresolved binding audits.

Who the figma-generate-library skill is for

Best for

  • Teams whose design tokens and components exist in code but not in Figma.
  • Design system owners who want a repeatable build order and approval points.
  • Updating an existing library, since the skill also reconciles gaps between code and Figma.

Not for

  • A quick one shot generation. SKILL.md says that approach produces broken or incomplete results.
  • Mapping components to code files only. Related: figma-mcp.
  • Designing a visual identity from nothing. It builds from an existing codebase, Related: design-systems-mcp.

Use it with UiChemy

A well organized Figma library makes a better source file. Once your pages use variables and components, UiChemy Figma to WordPress can convert the design into editable WordPress pages. Click Get Started on uichemy.com. Related: tailwind-design-system.