plugins/skills/figma-to-code/skills/implement-components/SKILL.md
Implement all nodes from component spec with Figma design context, fix code based on audit results
npx skillsauth add nonoroazoro/ai implement-componentsInstall 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.
Resolve Params:
componentSpec: from Team Lead or $ARGUMENTSprojectContext: from Team LeadBootstrap:
projectContextImplementation
componentSpec, process ONE node at a time, never batch or parallelize across nodes:
get_design_context with nodeId to get design context (typically React + Tailwind code snippets)get_variable_defs with nodeId to get design tokens (e.g., primary-500, primary-hover)get_screenshot with nodeId to get visual referencehttp://localhost:3845/assets/...) with local imports{/* ✅ This structure is what Figma gives you, keep it */}
<div className="absolute inset-[X%_Y%]">
<img src={icon} className="absolute block max-w-none size-full" />
</div>
{/* ❌ DO NOT flatten into this */}
<img src={icon} className="absolute inset-[X%_Y%] size-full" />
data-node-id to the root element of every node, use nodeId by default, repeat.nodeIds for repeated nodesrepeat: implement once, render repeat.count timescomponentSpec hierarchyPrepare for Audit:
./examples directory that renders all implemented nodesdevServerURL to the Team LeadWait for Audit Results:
auditResults from Team Lead, apply fixes based on it and report backdata-node-id during fixesprojectContext (tech stack, styling, component library, reference docs, etc.)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
Convert Figma designs to frontend code by orchestrating an Agent Team
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*