cc-figma-tokens

Create Primate and Semantic Figma collections from component-contracts token files with alias relationships.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill cc-figma-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cc-figma-tokens
Source: https://github.com/artosetrov/iron-fist-arena-backend/tree/main/.claude/skills/cc-figma-tokens
Command: npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill cc-figma-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build and maintain Figma token libraries from component-contracts token files, enabling design teams to use native variables in their UI.

Core Features & Use Cases

  • Creates two Figma collections, Primitives and Semantic, with value-based tokens and alias-based semantic tokens that components bind to.
  • Reads project-wide configuration from .component-contracts and validates token directories before any writes, ensuring safe setup.
  • Requires and encourages the use of the figma-use and figma-generate-library skills, and mandates passing skillNames: "cc-figma-tokens" for all use_figma calls.
  • Useful when syncing token definitions to Figma for design-system consistency, enabling updates when primitives or semantics change.

Quick Start

Call this skill with your project’s token and contract directories to build the Figma token libraries.

Frequently Asked Questions about cc-figma-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync design system tokens to Figma?

To sync design system tokens to Figma, this skill automates the creation and maintenance of Figma token libraries from component-contracts token files. It reads your project configuration, builds an in-memory token map, and updates Figma collections when primitives or semantics change.

Can I create semantic and primitive token collections in Figma from code?

Yes, creating semantic and primitive token collections in Figma from code is the core function. This skill generates two Figma collections with value-based primitive tokens and alias-based semantic tokens that components bind to, using CSS-like var() syntax for alias relationships.

What is the best way to maintain Figma variables for a design system?

Maintaining Figma variables for a design system is best handled by automating token library creation from component-contracts. This skill validates token directories before writes, builds an in-memory token map, and establishes proper scopes and alias relationships for native Figma variables.

Do I need a specific configuration file to generate Figma token libraries?

Yes, you need a .component-contracts configuration file to generate Figma token libraries. This skill reads project-wide configuration from this file and validates token directories before executing any Figma writes, ensuring a safe and consistent setup.

Why are my semantic token aliases not updating correctly in Figma?

Semantic token alias updates in Figma require building an in-memory token map before any use_figma calls. This skill ensures proper scopes and CSS-like var() syntax are applied, creating correct alias relationships between your primitive and semantic collections.

Does cc-figma-tokens work with other Figma library generation skills?

Yes, cc-figma-tokens requires and encourages the use of figma-use and figma-generate-library skills. It mandates passing skillNames: "cc-figma-tokens" for all use_figma calls to ensure proper integration when syncing token definitions to Figma.