plugins/skills/figma-to-code/skills/figma-to-code/SKILL.md
Convert Figma designs to frontend code by orchestrating an Agent Team
npx skillsauth add nonoroazoro/ai figma-to-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the Team Lead. Set up an Agent Team with specialized Teammates and orchestrate the end-to-end workflow.
Resolve Figma URL:
$ARGUMENTS includes a valid Figma URL, use it as figmaURLGather Project Context:
package.json to infer Project ContextVite and Vitest for build and testing if not detectedAskUserQuestion tool (if available) to ask the user to select:
React / Vue / other / skipArco Design / Ant Design / other / skipTailwind / Less / other / skipConfigure Audit-Fix:
false){enableAudit}Setup:
{baseFolder} to .figma-to-codefigma-to-codePhase 1 - Design Components:
design-components with prompt:
Run the
/figma-to-code:design-components {figmaURL}skill. baseFolder: {baseFolder}
design-components to reply, then verify {baseFolder}/component-spec.jsonPhase 2 - Implement Components:
implement-components with prompt:
Run the
/figma-to-code:implement-components {baseFolder}/component-spec.jsonskill. projectContext: {Project Context}
implement-componentsPhase 3 - Audit and Fix (Skip if {enableAudit} is false):
audit-component with prompt:
Run the
/figma-to-code:audit-componentskill. devServerURL: {devServerURL}
{baseFolder}/component-spec.json, collect nodeIds at the highest available level: page > module > componentnodeId:
nodeId to audit-component, wait for auditResultauditResult to implement-components, wait for fix confirmationnodeId after the current one is fully resolvedPhase 4 - Done:
testing
Optimize prompts for AI agents and skills. Use when refining SKILL.md files, agent definitions, or any AI instruction set. Focuses on token efficiency, clarity, and actionability.
development
Implement all nodes from component spec with Figma design context, fix code based on audit results
development
Architecture and component design expert, design the component spec based on Figma design data and frontend best practices.
tools
--- name: audit-component description: Audit a node by comparing Figma design with its implementation, report audit result allowed-tools: mcp__figma-desktop__get_design_context, mcp__figma-desktop__get_metadata, mcp__figma-desktop__get_screenshot, mcp__playwright__* argument-hint: [node-id] [dev-server-url] --- ## Workflow 1. **Resolve Params**: - `devServerURL`: from Team Lead or `$ARGUMENTS` 2. **On receiving `nodeId` from Team Lead or `$ARGUMENTS`**: 1. **Get Node-Level Screenshots*