一键导入
figma-to-code
Convert Figma designs to frontend code by orchestrating an Agent Team
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert Figma designs to frontend code by orchestrating an Agent Team
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create git commits
Code review
Convert Figma designs to frontend code
Implement all nodes from component spec with Figma design context
Implement all nodes from component spec with Figma design context, fix code based on audit results
Architecture and component design expert, design the component spec based on Figma design data and frontend best practices.
| name | figma-to-code |
| description | Convert Figma designs to frontend code by orchestrating an Agent Team |
| allowed-tools | AskUserQuestion |
| argument-hint | ["figma-url"] |
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: