figma-coding-rules

Extract Figma design specs and enforce CSS/UI rules during code generation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/daniyarseifolla/agent-skills --skill figma-coding-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figma-coding-rules
Source: https://github.com/daniyarseifolla/agent-skills/tree/main/v2.2/pipeline/figma-coding-rules
Command: npx skills add https://github.com/daniyarseifolla/agent-skills --skill figma-coding-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the enforcement of UI implementation rules derived from Figma designs, ensuring pixel-perfect CSS and consistent UI behavior across components.

Core Features & Use Cases

  • Figma extraction and exact CSS mapping to project tokens.
  • Figma Self-Verify after CSS implementation to catch deviations.
  • UI Quality Check to catch visual hierarchy, spacing, and accessibility gaps.
  • Icon extraction rules that require SVG provenance and proper masking practices.
  • Design-to-code handoff with strict validation and automated verification steps.

Quick Start

Describe the target UI component in plain language and run the figma-coding-rules to produce CSS, icon rules, and a self-verification checklist.

Frequently Asked Questions about figma-coding-rules

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

FAQPage Schema
How do I enforce pixel-perfect CSS from Figma designs?

To enforce pixel-perfect CSS from Figma designs, use an automated rules engine to extract design specs and map them to project tokens. This ensures exact property extraction and consistent UI behavior during code generation.

Can I automate Figma-to-CSS extraction and UI verification?

Yes, you can automate Figma-to-CSS extraction and UI verification through a design adapter. The workflow extracts exact Figma properties, maps them to CSS, and runs a self-verify step to catch visual hierarchy, spacing, and accessibility gaps.

What is Figma self-verification after CSS implementation?

Figma self-verification is an automated validation step that checks your implemented CSS against original Figma design specs. It catches deviations in spacing, visual hierarchy, and accessibility to ensure UI implementation fidelity.

How do I handle icon extraction from Figma for frontend code?

Icon extraction from Figma requires SVG provenance and proper masking practices. Enforced icon rules ensure that extracted SVGs maintain quality and are correctly implemented within the frontend UI components.

Do I need a design adapter to extract Figma specs for code generation?

Yes, a design adapter must be active to extract Figma specs for code generation. The rules engine applies its extraction, self-verification, and UI quality checks only when the plan references Figma assets through the adapter.

What are the limitations of automated Figma-to-CSS mapping?

Automated Figma-to-CSS mapping is limited by the design adapter's active state and the plan's reference to Figma assets. It cannot enforce rules or extract specs if the adapter is inactive or if the design lacks proper structure for accessibility validation.