From figma-to-code
Convert Figma designs to frontend code by orchestrating an Agent Team
npx claudepluginhub nonoroazoro/ai --plugin figma-to-codeThis skill is limited to using the following tools:
You are the Team Lead. Set up an Agent Team with specialized Teammates and orchestrate the end-to-end workflow.
Extracts Figma designs into production code for React, Vue, Svelte, Astro, Next.js, Nuxt, or HTML using ralph-fetch-spec and ralph-run tools.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for node-specific implementations from Figma URLs or desktop selections.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Share bugs, ideas, or general feedback.
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: