Back to Skills

figma-create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

24,356stars1,651forksUpdated 7/31/2026

Security Assessment

Safe(95/100)
Security Score95/100

About figma-create-design-system-rules

This skill, curated by OpenAI, generates custom design system rules tailored to a project's codebase so that AI coding agents produce consistent code when implementing Figma designs. It solves the problem of repetitive prompting and inconsistent output by encoding a team's unwritten conventions (component locations, naming, styling approach, design tokens, and architectural patterns) into agent-readable rule files. It supports rule files for multiple agents: CLAUDE.md for Claude Code, AGENTS.md for Codex CLI, and a Cursor rules file.

The workflow requires a connected Figma MCP server. It first calls the Figma MCP create_design_system_rules tool with the project's languages and frameworks to fetch a foundational prompt and template, then analyzes the codebase to discover component organization, styling approach, token locations, naming conventions, and architecture decisions. Based on that analysis it generates project-specific rules across categories: general component rules, styling rules (never hardcode colors, use tokens), a required Figma MCP integration flow (get_design_context, optionally get_metadata, then get_screenshot before implementing, validating for 1:1 parity), and asset-handling rules that direct the agent to use the Figma MCP assets endpoint and localhost sources rather than adding icon packages or placeholders. Bundled resources include a rule-template skeleton, an OpenAI agent config, SVG assets, a LICENSE, and a helper shell script for checking an AGENTS.md file.

It targets frontend teams and design-system maintainers standardizing Figma-to-code workflows, onboarding AI agents to existing projects, or establishing conventions for new projects. Its guidance is defensive by nature (encouraging token usage and consistency) and involves no destructive or risky operations.

FAQ

What does this skill produce?

Project-specific design system rule files (such as CLAUDE.md, AGENTS.md, or a Cursor rules file) that guide AI agents to implement Figma designs consistently with your codebase conventions.

What are the prerequisites?

A connected and accessible Figma MCP server, access to the project codebase for analysis, and an understanding of (or willingness to establish) your team's component conventions.

What is the required Figma workflow it encodes?

Run get_design_context first for the target node(s), use get_metadata if the response is too large, then get_screenshot for visual reference, and only then download assets and implement, validating for 1:1 parity.

How does it handle assets?

It instructs agents to use the Figma MCP assets endpoint, use localhost sources directly when provided, and avoid importing new icon packages or creating placeholders.

Which agents are supported?

Claude Code (CLAUDE.md), Codex CLI (AGENTS.md), and Cursor (.cursor/rules/figma-design-system.mdc).

All Files

7 files
assets/icon.svg0.9 KB
View
references/rule-template.md0.3 KB
View
assets/figma-small.svg0.8 KB
View
SKILL.md17.8 KB
View
agents/openai.yaml0.5 KB
View
scripts/check_agents_md.sh0.2 KB
View
LICENSE.TXT0.4 KB
View

Install figma-create-design-system-rules

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

openai/skills