figma-code-connect
Code Connect
Overview
Create Code Connect template files (.figma.ts) that map Figma components to code snippets. Given a Figma URL, follow the steps below to create a template.
You write
.figma.tstemplate files ONLY — never.figma.tsx. This skill produces parserless templates: a.figma.tsfile whose default export uses afigma.code`...`tagged template. Do NOT write a.figma.tsxfile and do NOT usefigma.connect()— that is the separate parser-based Code Connect format (published a different way) and is the wrong artifact for this skill; output written as.figma.tsxis rejected outright. If a.figma.tsxalready exists for a component, leave it untouched and add your.figma.tstemplate alongside it. A capable model may be tempted to reach for the more familiar.figma.tsx/figma.connect()pattern from memory — resist it; here the correct output is always.figma.ts+figma.code.