figma
Skill2 starsChanged 7 months agoMITView on GitHub
Figma-to-code workflow using MCP tools. Fetches design context, screenshots, variables, and Code Connect mappings before implementation.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- AceDataCloud/Skillstheir own version, first seen Oct 5, 2026
- edenfunf/reelmimictheir own version, first seen Oct 4, 2026
- STARDUSTLC666/dsh-hyperframestheir own version, first seen Oct 3, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- obra/muse-skillstheir own version, first seen Sep 26, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- openai/skills★ 28ksame name
- edenfunf/reelmimic★ 1.3ksame name
- JetBrains/skills★ 360same name
- hoodini/ai-agents-skills★ 281same name
- 3x-haust/oh-my-design★ 199same name
- dylantarre/design-system-skills★ 50same name
- VoDaiLocz/kilo-kit-mcp★ 27same name
- PracticalSwan/agent-skills★ 18same name
- ulises-jeremias/agent-toolkit★ 18same name
- AceDataCloud/Skills★ 17same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-vs-fix-disciplineSkill
- block-journeySkill
- clean-worktreesSkill
- debuggingSkill
- debug-rulesSkill
- debug-wpSkill
- handoffSkill
- module-depth-reviewSkill
- playwrightSkill
- qa-checkSkill
- review-memorySkill
- swift-concurrency-reviewSkill
- test-planSkill
- tool-usageSkill
- vibe-userSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. 0 are common, 21 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
21
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use this skill when implementing UI from a Figma design.
- Very specific: line 15
Use $ARGUMENTS as the Figma URL or file key.
- Distinctive: line 17
Do NOT use this skill for general frontend work that doesn't involve a Figma design.
- Distinctive: line 23
If you have a Figma URL or file key, you MUST call these tools before writing any code.
- Very specific: line 29
get_metadata: - If get_design_context returns too much data, use this first to get a lightweight structural outline, then re-fetch only … - Very specific: line 30
get_variable_defs: - When the design uses Figma variables/tokens, fetch them. - Distinctive: line 32
Only after you have both design context AND a screenshot should you start implementation.
- Distinctive: line 38
If the design has mobile and desktop variants (separate frames, component variants with Size/Breakpoint properties, or sibling frames named …
- Very specific: line 40
Identify all breakpoint variants before writing any code: Use get_metadata on the parent frame or component set to find all variants (e.g., …
- Very specific: line 41
Fetch
get_design_contextfor EVERY breakpoint variant: Do not fetch desktop and guess mobile, or vice versa. - Distinctive: line 43
If you cannot find a mobile/desktop variant,: ask the user for the node URL.
- Distinctive: line 45
This gate is blocking: Do not write responsive CSS until you have MCP data for every breakpoint the design targets.
- Distinctive: line 49
When implementing from a Figma design:
- Very specific: line 51
Extract specs from MCP output: Call get_design_context and list every measurable property from the response: widths, heights, gaps, …
- Very specific: line 53
Fix all deltas: Don't cherry-pick. If Figma says align-items: center and code says flex-start, that's a bug.
- Distinctive: line 54
No invented values: Every CSS value you write must trace back to an MCP output or an existing project token.
- Distinctive: line 60
After writing CSS/SCSS for a Figma component, re-read the output file and verify every value against the MCP data before declaring done.
- Distinctive: line 79
After the spec audit passes, do a visual verification:
- Very specific: line 81
Call get_screenshot from Figma for the reference image.
- Distinctive: line 82
After implementation, take a browser screenshot and compare side-by-side with the Figma screenshot.
- Distinctive: line 83
Never say "the changes are applied" based only on CSS property existence.
- Distinctive: line 84
If they don't match, iterate.
- Very specific: line 88
When Figma uses variables, call get_variable_defs to get actual token values.
- Distinctive: line 90
Never hardcode a color, spacing, or typography value when a token exists for it.
- Distinctive: line 91
If the Figma MCP server returns a localhost source for an image or SVG, use that source directly.
- Distinctive: line 95
If the project uses Code Connect mappings:
- Very specific: line 96
Call get_code_connect_map to check existing component mappings before implementing.
- Very specific: line 97
Use get_code_connect_suggestions to find suggested mappings for new components.
- Distinctive: line 98
When a Code Connect mapping exists, use the mapped codebase component directly instead of generating new code.
- Distinctive: line 108
Never implement from memory: Always call MCP tools first.
- Distinctive: line 111
Never declare done without a spec audit: After writing styles, re-read your output and verify every value against the MCP data in a …
- Distinctive: line 112
Never declare done without visual verification: After the spec audit, compare a browser screenshot against the Figma screenshot.
- Very specific: line 113
If the user says it doesn't look right, they're right: Don't explain why the CSS "should" work.
- Distinctive: line 116
Visual iteration limit: 3 rounds: After 3 compare-fix-screenshot cycles without achieving parity, stop and report: what matches, what …
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: figma
When to Use
Use this skill when implementing UI from a Figma design. Invoke with /figma [URL] where the URL is a Figma design link, or /figma to start without a specific URL.
Use $ARGUMENTS as the Figma URL or file key. If empty, ask the user for the Figma URL.
Do NOT use this skill for general frontend work that doesn't involve a Figma design.
Method
MCP Tools Are Mandatory
If you have a Figma URL or file key, you MUST call these tools before writing any code. Never implement from memory, verbal description alone, or assumptions about what a design "probably" looks like.
Required sequence:
get_design_context- Fetch structured design representation (layout, spacing, colors, typography). This is your primary source of truth.get_screenshot- Get a visual reference of the target design. Always do this alongsideget_design_context.get_metadata- Ifget_design_contextreturns too much data, use this first to get a lightweight structural outline, then re-fetch only the nodes you need.get_variable_defs- When the design uses Figma variables/tokens, fetch them. Map to CSS custom properties or Tailwind theme values instead of hardcoding.
Only after you have both design context AND a screenshot should you start implementation.
If any tool call fails or returns incomplete data: Tell the user. Do not fill in the gaps from assumptions.
Responsive Gate - Fetch All Breakpoints First
If the design has mobile and desktop variants (separate frames, component variants with Size/Breakpoint properties, or sibling frames named "Mobile"/"Desktop"):
- Identify all breakpoint variants before writing any code. Use
get_metadataon the parent frame or component set to find all variants (e.g.,Size=Large, State=Default,Card / Mobile,Card / Desktop). - Fetch
get_design_contextfor EVERY breakpoint variant. Do not fetch desktop and guess mobile, or vice versa. Each breakpoint is a separate MCP call. - Build a comparison table of the values that differ between breakpoints (spacing, padding, font sizes, border-radius, image heights, etc.) and the values that are the same. This table is your responsive spec.
- If you cannot find a mobile/desktop variant, ask the user for the node URL. Do not invent "smaller-looking" values. Mobile values that look reasonable to you are still guesses — and guesses are wrong.
This gate is blocking. Do not write responsive CSS until you have MCP data for every breakpoint the design targets.
Never Assume - Extract Then Compare
When implementing from a Figma design:
- Extract specs from MCP output. Call
get_design_contextand list every measurable property from the response: widths, heights, gaps, padding, alignment, positioning, border-radius, colors, gradients, opacity, font sizes, line heights. Write these as a checklist. - Compare against current code. For each spec, check what the current codebase has. Identify every delta, not just the ones that seem "important."
- Fix all deltas. Don't cherry-pick. If Figma says
align-items: centerand code saysflex-start, that's a bug. - No invented values. Every CSS value you write must trace back to an MCP output or an existing project token. If you cannot find the value in MCP data, you are missing context — fetch it or ask. "Looks about right" is not a source.
MCP output is a representation, not final code. The default output (React + Tailwind) should be translated into the project's conventions, framework, and design tokens. Reuse existing components instead of duplicating.
Post-Implementation Spec Audit (Blocking)
After writing CSS/SCSS for a Figma component, re-read the output file and verify every value against the MCP data before declaring done. This is a data-level check, not a visual check.
- Re-fetch or re-read the MCP output you used during implementation. For each breakpoint variant, you should still have the
get_design_contextdata from the Responsive Gate step. - Read every style file you wrote or edited. For each CSS property (font-size, line-height, padding, gap, border-radius, color, width, height), confirm the value matches the MCP data or maps to a project token that resolves to the MCP value.
- Build a verification table and present it to the user:
| Property | Figma (desktop) | Figma (mobile) | Code (lg:) | Code (base) | Match? |
|----------------|-----------------|----------------|-------------|-------------|--------|
| title font | 28px | 28px | --text-h4 | --text-h4 | ✅ |
| content padding| 32px | 20px | 32px | 20px | ✅ |- Any row that doesn't match is a bug. Fix it before moving on. Do not skip this step because "it looks right visually."
This audit catches the exact failure mode where correct MCP data was fetched but wrong values were written into the code.
Verify Visually - Screenshots Are Mandatory
After the spec audit passes, do a visual verification:
- Call
get_screenshotfrom Figma for the reference image. - After implementation, take a browser screenshot and compare side-by-side with the Figma screenshot. If Playwright MCP is available, use
browser_navigate+browser_take_screenshotto capture the rendered output, or usebrowser_evaluateto extract computed styles (getComputedStyle) and bounding boxes (getBoundingClientRect) for precise numerical comparison. - Never say "the changes are applied" based only on CSS property existence. Verify the rendered visual output.
- If they don't match, iterate. Don't declare done until visual parity is achieved.
Design Tokens and Variables
- When Figma uses variables, call
get_variable_defsto get actual token values. - Map Figma tokens to the project's CSS custom properties, Tailwind theme, or design system tokens.
- Never hardcode a color, spacing, or typography value when a token exists for it.
- If the Figma MCP server returns a localhost source for an image or SVG, use that source directly. Don't create placeholders or import new icon packages.
Code Connect
If the project uses Code Connect mappings:
- Call
get_code_connect_mapto check existing component mappings before implementing. - Use
get_code_connect_suggestionsto find suggested mappings for new components. - When a Code Connect mapping exists, use the mapped codebase component directly instead of generating new code.
Structure Matters
- Compare HTML/DOM structure against Figma's layer hierarchy. If Figma has a container div with a gradient and an image inside, the code must match, not flatten the gradient onto the image element.
- Pay attention to: parent-child relationships, overflow behavior, absolute vs relative positioning, z-index stacking.
- Break large designs into smaller sections. Large selections slow the tools down, cause errors, or produce incomplete responses.
Rules
- Never implement from memory. Always call MCP tools first. If a tool fails, tell the user - do not fill in gaps from assumptions.
- Never write a CSS value you didn't get from Figma or an existing token. If you don't have the MCP data for a breakpoint, fetch it. If you can't find the variant, ask the user. Inventing "reasonable" values is the #1 source of Figma mismatches.
- Never hardcode values when tokens exist. Map Figma variables to the project's design system tokens.
- Never declare done without a spec audit. After writing styles, re-read your output and verify every value against the MCP data in a comparison table. Present the table to the user. This catches wrong values that look "close enough" visually.
- Never declare done without visual verification. After the spec audit, compare a browser screenshot against the Figma screenshot. CSS property existence is not proof.
- If the user says it doesn't look right, they're right. Don't explain why the CSS "should" work. Look at what's actually rendering. Call
get_screenshotagain and compare. - MCP output is a reference, not final code. Translate to the project's conventions, framework, and existing components.
- Break large designs into smaller sections. Large selections slow the tools down or produce incomplete responses.
- Visual iteration limit: 3 rounds. After 3 compare-fix-screenshot cycles without achieving parity, stop and report: what matches, what doesn't, and what you've tried. The remaining deltas may need manual inspection or are platform-specific rendering differences.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

