Turn a selected shadcncraft Figma frame, component, or full page into production React + shadcn/ui code, reusing the matching registry block and your design tokens.
Generate code converts a selected shadcncraft Figma node into React + shadcn/ui code that drops into your project clean, on your tokens, your icons, your conventions. The headline idea: the kit and the registry are the same library, so most frames already exist as a hand-tuned registry block. Reuse beats regeneration.
A Pro + React license (SHADCNCRAFT_LICENSE_KEY set). Generate code installs Pro React registry blocks, which the registry serves only to a valid Pro + React key, so it's a Pro + React feature (mirroring the Figma plugin's generate-code restriction). The skill checks for the key up front: without one it stops and points you to pricing rather than shipping a generic, un-themed approximation. (Import variables needs no key.)
The official Figma MCP connected (so the agent can read the selected node).
A project with components.json (the @shadcncraft registry configured) and a globals.css with the shadcn token block.
Reads the node you selected or linked (name, data-slot, a screenshot).
Tries to reuse first. It resolves the frame to a registry item by its data-slot value or name, not its node ID, which differs between files. If it matches, it installs the real block instead of writing JSX:
Generates only when there is no match. It composes from shadcn/ui primitives and shadcncraft components, using your design tokens (no hardcoded colors, no arbitrary values) and emitting icons from your configured iconLibrary.
Returns the file(s), any install commands (in your package manager, with the license-key reminder for Pro items), and a short note of any assumptions.