Agent skill

Figma Design Sync Skill: Match Code to Your Figma File

The figma-design-sync skill has an AI coding agent compare a Figma node with a screenshot of your page, list each difference by severity, fix the code and repeat.

Install
git clone https://github.com/ratacat/claude-skills.git
View on GitHub

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

What is the figma-design-sync skill?

Figma-design-sync is a skill in ratacat's skills repository. The agent pulls specs and a screenshot from a Figma node, screenshots your running page, compares layout, type, color and spacing, documents every difference with a severity, edits the CSS or Tailwind classes, and can be re-run until the two agree.

Figma-design-sync is a single SKILL.md written as an agent brief. Its job is narrow: once a component or page exists in code, find where it drifts from the Figma design, then change the code until the drift is gone.

The brief assumes a Tailwind project with templates such as ERB, and it tells the agent to follow the project's own coding standards file. It is a code fixer, not a design tool.

The six steps the agent follows

  1. Design capture. Use the Figma MCP on the given URL and node to read colors, typography, spacing, layout, shadows and borders, and take a screenshot.
  2. Implementation capture. Use the agent-browser CLI to open the page, take a snapshot and save a screenshot of the running implementation.
  3. Systematic comparison across layout, type, color, hierarchy, responsive behavior, interactive states, icons and max sizes.
  4. Difference log. Each discrepancy names the element, current state, expected state, severity and a fix with exact values.
  5. Precise implementation. Edit the CSS or Tailwind classes, props and layout structure.
  6. Verification. Check how the changed element sits in the rest of the page, then confirm with the phrase Yes, I did it. and a summary.

The code conventions it enforces

  • Components stay full width with w-full and carry no max-width or outer horizontal padding.
  • A wrapper in the parent template owns the width limit, centering and responsive padding, for example max-w-screen-xl mx-auto px-5 md:px-8 lg:px-[30px].
  • Tailwind defaults win when they land within 2 to 4px of the Figma value: gap-10 over gap-[40px], w-14 h-14 over w-[56px] h-[56px].
  • Layouts are mobile first, such as flex-col lg:flex-row, and overflow-hidden is removed from components.

When to reach for it

Best for

  • Checking a freshly built hero section, card or form against its Figma frame.
  • Fixing a mobile breakpoint that looks off compared with the mobile frame.
  • Teams that want repeatable passes, with the agent re-run until the difference list is empty.

Not for

  • Starting a page from nothing. It assumes the implementation already exists and runs at a URL.
  • Projects without Tailwind or the two tools it names. Its conventions and capture steps are written around them.
  • Building the Figma side. For a component library there, see figma-generate-library. For reading Figma data over MCP, see figma-mcp-console-mcp.

Use it with UiChemy

The skill edits code you already have in your project. If the goal is a WordPress site, UiChemy starts earlier: Figma to WordPress converts the design itself. Click Get Started on uichemy.com, then use this check for any hand-built sections. A related bridge is gethopp-figma-mcp-bridge.