Skip to main content
command CX Codex GP ChatGPT official · OpenAI

connect-figma-components — Claude command: Code Connect templates

Builds and refreshes Figma Code Connect templates for components: reads a Figma link, finds the nodes and matches them to code.

Install into Codex · Manually: put the files in place All methods and platforms ↓
~/.codex/prompts/connect-figma-components.md
Open on GitHub

What connect-figma-components does

The command takes a Figma URL containing node-id, pulls the metadata and picks out the component nodes. It then looks for existing Code Connect templates or mappings. Components without one get matched against candidate implementations in your codebase. Matches are shown first, and .figma.js files are written after you confirm. The run ends with a summary of what was created, skipped or left unresolved.

A second argument, component_path, points at a local component you already know about, which skips the codebase search. The Figma URL is required unless the component comes from a figma-desktop selection.

On a large design system, mapping components one by one gets tedious. The command hands the job to the figma-code-connect-agent subagent so many components can be handled in a single pass.

What it helps with

  • match Figma nodes to components in the codebase
  • generate .figma.js templates for new components
  • find components that still have no Code Connect mapping
  • refresh mappings that already exist
  • work through a batch of components in one pass via the subagent

Example prompts for the agent

  • Create Code Connect templates for the components in <figma_url>
  • Find the components in <figma_url> that have no mapping yet and write .figma.js for them
  • Match the components from <figma_url> against implementations in src/components

How to install connect-figma-components

Manually: put the files in place

~/.codex/prompts/connect-figma-components.md

Call it with /prompts:connect-figma-components. Codex marks this format deprecated in favour of skills

Questions about connect-figma-components

How do I install connect-figma-components in Claude?

Place the command file at ~/.codex/prompts/connect-figma-components.md.

What does connect-figma-components do?

It creates and updates Figma Code Connect templates: it reads nodes from a Figma link, searches the codebase for matching implementations and writes .figma.js files once you confirm.

What input does the command need?

A Figma URL with node-id — without it the command has nothing to work from, unless the component is selected through figma-desktop. The component_path argument is optional.

Similar slash commands

All slash commands for Design →

From the same set420

The whole set →
cuopt-user-rules A skill that tells the agent how to help with NVIDIA cuOpt: routing, LP, MILP, QP, installation and the server. CX Codex GP ChatGPT ★ 7,604repo stars mixpanel-auth A Claude skill that manages Mixpanel accounts: checks the session, adds credentials, runs OAuth login and switches projects. CX Codex GP ChatGPT ★ 7,604repo stars review-design-parity Compares a built interface with its Figma frame and lists where layout, tokens or interactions drift. Useful before handing off a screen. CX Codex GP ChatGPT ★ 7,604repo stars implement-from-figma Converts Figma components and frames directly into project code. It pulls design context, inspects layouts, and checks visual parity. CX Codex GP ChatGPT ★ 7,604repo stars design-system-rules-agent A subagent that turns your codebase conventions into Figma-to-code rules and writes them into AGENTS.md, so later implementations stay consistent. CX Codex GP ChatGPT ★ 7,604repo stars setup-codex-run-actions Wires the current Expo project into the Claude action bar with a Run button, plus iOS, Android or web buttons when you ask for them. CX Codex GP ChatGPT ★ 7,604repo stars organize-dropbox-folder This skill restructures Dropbox content by making folders, copying items, or moving them. It fits requests to archive, consolidate, or reorganize files. CX Codex GP ChatGPT ★ 7,604repo stars inspect-dropbox-file This skill reports metadata for a Dropbox file or folder, checks shared links, and reads content when asked. Handy when you need to know what a file is and who can open it. CX Codex GP ChatGPT ★ 7,604repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor