figma-design-sync

figma-design-sync is a skill for Claude Code, Codex from gvkhosla/compound-engineering-pi. It costs 33 tokens per session (2,167 once invoked), scanned A, original, MIT.

A design-to-code synchronisation tool that compares a Figma design with a live web implementation and adjusts the implementation to match. It examines visual details such as layout, colour, typography, spacing, and shadows.

In plain words
What is it for?
Use it to retrieve Figma specifications, capture the live page, compare both versions, and make targeted web styling changes.
Why use it?
Design specifications and working pages often drift apart during development. Repeated comparison helps identify and correct those differences instead of relying on visual memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to retrieve Figma specifications, capture the live page, compare both versions, and make targeted web styling changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gvkhosla/compound-engineering-pi/figma-design-sync
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.

Any agent
npx skills add gvkhosla/compound-engineering-pi --skill figma-design-sync
Clone the repo
git clone --depth 1 https://github.com/gvkhosla/compound-engineering-pi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for figma-design-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/figma-design-sync/github.svg)](https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/figma-design-sync)
Your own site
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/figma-design-sync"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/figma-design-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for figma-design-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/figma-design-sync"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/figma-design-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00033 $0.02167
Opus 5.5 $0.00013 $0.00867
Sonnet 5.5 $0.00007 $0.00433
Haiku 4.5 $0.00003 $0.00217

Measured 1mo ago against content hash 9f8fa6938c80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

skills/figma-design-sync/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 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.
  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 AGENTS.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 · 189 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. 1mo ago First seen · 189 lines · 33 tokens per session scan A 9f8fa6938c80

Subscribe to this mod's changes

figma-design-sync is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (52 stars, last pushed 14d ago), licensed MIT. It adds 33 tokens to every session and 2,167 once invoked, about $0.0001 per session on Opus 5.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-09-15.

Related

Other skills, from other repositories

pi-tui-design

Create distinctive, crafted TUI components for pi using @mariozechner/pi-tui and @mariozechner/pi-coding-agent. Use when building interactive terminal UIs — custom components, overlays, dialogs, dashboards, widgets, data visualizations, animated elements, game-like interfaces, or any visual TUI work inside pi…

joelhooks/pi-tools · 139 tokens

frontend-design

Produce intentional, responsive, accessible UI work and perform visual QA instead of generic component assembly.

Hmbown/CodeWhale · 21 tokens

styling-sidebar-products

How products and pages appear in the PostHog sidebar: which category they sit in, which icon and color they get, and which groups share a color gradient. Use when adding a product or data management page to the sidebar (treeItemsProducts or treeItemsMetadata in a products//manifest.tsx), giving an entry a new icon or…

PostHog/posthog · 137 tokens

quill-code

Edit the @posthog/quill design system locally and consume the change in products/desktop before it is published to npm. Use when changing quill components/primitives/tokens, when a quill change must be tested inside the Code app, or when the user mentions quill, the design system, the .local-quill tarball, or the…

PostHog/posthog · 84 tokens

pi-package-sandbox-test

Use when verifying that published Pi packages install and load for normal users, including pi.dev package compatibility checks, release validation, Daytona sandbox tests, and package installability audits.

spences10/my-pi · 40 tokens

pi-primitive-check

Use when evaluating proposed Pi customisation work against built-in Pi primitives before implementation, especially extensions, packages, slash commands, and workflow ideas.

spences10/my-pi · 33 tokens