From figma
Generates production-ready React, Vue, or HTML/CSS code from Figma components or frames via Figma MCP server with Code Connect support. For design-to-code workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/figma:figma-generate-componentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
figma:figma-generate-component - Generate production-ready code from Figma designs
figma:figma-generate-component - Generate production-ready code from Figma designs
Convert Figma frames and components into production code (React, Vue, HTML/CSS) using the Figma Desktop MCP server with support for Code Connect mappings and design tokens.
You are tasked with generating production-ready code from a Figma design using the Figma MCP server. This command bridges the design-to-code workflow by analyzing Figma frames and converting them into semantic, accessible, framework-specific components.
Uses the Figma Desktop MCP server (HTTP transport at http://127.0.0.1:3845/mcp) to access selected frames or node IDs from Figma URLs. Leverages Code Connect mappings when available to prefer design system components over generating code from scratch.
The user can provide Figma context in two ways:
Understand the Context:
Analyze the Design:
Generate Code:
Provide Context:
When generating a React component, structure it like:
// ComponentName.tsx
import React from 'react';
import { DesignSystemButton } from '@/components/Button'; // Using Code Connect mapping
interface ComponentNameProps {
// Props based on Figma variants
}
/**
* ComponentName - Brief description
*
* Figma: [Link to Figma frame]
* Design tokens used: --color-primary, --spacing-md, --font-heading
*/
export const ComponentName: React.FC<ComponentNameProps> = ({ ...props }) => {
return (
// JSX matching Figma layout
);
};
Before finishing:
npx claudepluginhub thebushidocollective/han --plugin figmaGenerates React, Vue, or HTML code from Figma designs using Anima SDK. Supports TypeScript, Tailwind CSS, and shadcn/ui. Outputs files for components.
Extracts Figma designs into production code for React, Vue, Svelte, Astro, Next.js, Nuxt, or HTML using ralph-fetch-spec and ralph-run tools.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.