figma-code-connect-agent — Codex subagent: setup
This subagent matches published Figma components with code and prepares parserless Code Connect templates. Use it to map component properties and review candidate implementations.
.codex/agents/figma-code-connect-agent.tomlWhat figma-code-connect-agent does
The agent checks that a Figma target is a published component or component set, then uses Code Connect suggestions and property context to prepare template files. When several code components could match, it briefly states how it chose among them.
Its report covers discovered Figma components, current templates or mappings, code candidates, recommended files, and any actions or confirmations. Ambiguous matches require your approval before a template is created. The target must be published, so an unpublished draft does not meet the stated requirement.
What it helps with
- Create a Code Connect template for a Figma component
- Review existing templates and mappings
- Match Figma components with code candidates
- Request approval before creating an ambiguous template
Example prompts for the agent
- Find the published Figma components and suggest Code Connect templates for them.
- Review existing mappings and match this Figma component set to code components.
- Prepare a template for this component, and ask me first if the match is ambiguous.
How to install figma-code-connect-agent
Manually: put the files in place
.codex/agents/figma-code-connect-agent.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.claude/agents/figma-code-connect-agent.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.cursor/agents/figma-code-connect-agent.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about figma-code-connect-agent
How do I install figma-code-connect-agent in Codex?
Add the agent file at .codex/agents/figma-code-connect-agent.toml.
What does figma-code-connect-agent do?
It matches published Figma components to code components and prepares parserless Code Connect templates. Its report also lists existing mappings and possible code matches.
Does the agent need approval to create a template?
It asks for confirmation before creating a template when the component match is ambiguous.