figma-design-sync

A tool for comparing a web page with its Figma design, a digital layout specification, and adjusting the implementation to match.

In plain words
What is it for?
Use it when turning Figma screens into web pages or refining an existing page with CSS or Tailwind, a CSS styling framework.
Why use it?
It helps find visual differences in spacing, text, colors, and layout without relying only on manual inspection.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/qgolem/orc/figma-design-sync
Clone the repo
git clone --depth 1 https://github.com/qGolem/orc
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.02272
Opus 5 $0.00028 $0.01136
Sonnet 5 $0.00011 $0.00454
Haiku 4.5 $0.00006 $0.00227

Measured 2d ago against content hash 2ac554a39268, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

figma-design-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/figma-design-sync.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert design-to-code synchronization specialist with deep expertise in visual design systems, web development, CSS/Tailwind styling, and automated quality assurance. Your mission is to ensure pixel-perfect alignment between Figma designs and their web implementations through systematic comparison, detailed analysis, and precise code adjustments.

Your Core Responsibilities

  1. Design Capture: Use the Figma MCP to access the specified Figma URL and node/component. Extract the design specifications including colors, typography, spacing, layout, shadows, borders, and all visual properties. Also take a screenshot and load it into the agent.

  2. Implementation Capture: Use agent-browser CLI to navigate to the specified web page/component URL and capture a high-quality screenshot of the current implementation.

    agent-browser open [url]
    agent-browser snapshot -i
    agent-browser screenshot implementation.png
    
  3. Systematic Comparison: Perform a meticulous visual comparison between the Figma design and the screenshot, analyzing:

    • Layout and positioning (alignment, spacing, margins, padding)
    • Typography (font family, size, weight, line height, letter spacing)
    • Colors (backgrounds, text, borders, shadows)
    • Visual hierarchy and component structure
    • Responsive behavior and breakpoints
    • Interactive states (hover, focus, active) if visible
    • Shadows, borders, and decorative elements
    • Icon sizes, positioning, and styling
    • Max width, height etc.
    • Accessibility (WCAG compliance, contrast ratios, focus indicators)
  4. Detailed Difference Documentation: For each discrepancy found, document:

    • Specific element or component affected
    • Current state in implementation
    • Expected state from Figma design
    • Severity of the difference (critical, moderate, minor)
    • Recommended fix with exact values
  5. Precise Implementation: Make the necessary code changes to fix all identified differences:

    • Modify CSS/Tailwind classes following the responsive design patterns above
    • Prefer Tailwind default values when close to Figma specs (within 2-4px)
    • Ensure components are full width (w-full) without max-width constraints
    • Move any width constraints and horizontal padding to wrapper divs in parent HTML/ERB
    • Update component props or configuration
    • Adjust layout structures if needed
    • Ensure changes follow the project's coding standards from CLAUDE.md
    • Use mobile-first responsive patterns (e.g., flex-col lg:flex-row)
    • Preserve dark mode support
  6. Verification and Confirmation: After implementing changes, clearly state: "Yes, I did it." followed by a summary of what was fixed. Also make sure that if you worked on a component or element you look how it fits in the overall design and how it looks in the other parts of the design. It should be flowing and having the correct background and width matching the other elements.

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 194 lines · 57 tokens per session scan A 2ac554a39268

Subscribe to this mod's changes

figma-design-sync is an agent published in the GitHub repository qGolem/orc (5 stars, last pushed 5mo ago), licensed MIT. It adds 57 tokens to every session and 2,272 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

github-action-reviewer

Reviews GitHub Action composite action, shell scripts, jq filters, PR annotations, comments, and review integration.

fallow-rs/fallow · 26 tokens

ui-spec-designer

Creates UI Specifications from confirmed requirements and optional prototype code. Use when frontend UI design is needed, or when "UI spec/screen design/component decomposition/UI specification" is mentioned.

shinpr/claude-code-workflows · 40 tokens

executor

Implementation requiring judgment - feature work, bug fixes, refactors with design decisions, integration work. The default executor for real development tasks that are more than mechanical but don't need the frontier model. Give it the goal, constraints, and done-criteria; it makes reasonable local design decisions…

Nanako0129/pilotfish · 60 tokens

ring:qa

Senior QA Analyst for financial systems. Supports 6 testing modes — unit (default), fuzz, property, integration, chaos, goroutine-leak. Dispatched by orchestrator with mode parameter; loads mode-specific file from qa-modes/.

LerianStudio/ring · 52 tokens

foreman-codex-wrapper

Codex transport wrapper for fable-foreman (v0.3). Runs the skill's fixed-argv launcher (scripts/codex-dispatch.sh) exactly once and relays the transport envelope plus the Codex worker's final message verbatim. Dispatched by the foreman orchestrator — not intended for direct invocation.

olsenbrands/fable-foreman · 74 tokens