figma-code-connect

Generate .figma.ts Code Connect templates mapping Figma components to code snippets.

Updated May 13, 2026
One-click install
npx skills add https://github.com/DevPelumi/sleeqma --skill figma-code-connect-devpelumi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figma-code-connect
Source: https://github.com/DevPelumi/sleeqma/tree/main/backend/figma-plugin-bundle/skills/figma-code-connect
Command: npx skills add https://github.com/DevPelumi/sleeqma --skill figma-code-connect-devpelumi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone manual work of creating and maintaining Figma Code Connect template files that map design components to their corresponding production code snippets, ensuring design and code stay in sync without repetitive effort.

Core Features & Use Cases

  • Automated Template Generation: Creates valid .figma.ts template files for published Figma team library components, handling all property types including text, variants, booleans, instance swaps, and slots.
  • Intelligent Code Component Matching: Automatically searches the user's codebase to find the matching code component for a given Figma component, comparing prop interfaces to ensure accurate alignment.
  • Nested Component Support: Dynamically resolves multi-level nested child instances and their templates instead of hardcoding content, supporting complex design system components.
  • Use Case: A design system team can use this Skill to generate up-to-date Code Connect templates for all new Figma components in minutes, cutting down design-to-code sync time from hours to minutes.

Quick Start

Use the figma-code-connect skill to generate a Code Connect template for the Figma component at your provided Figma component URL.

Frequently Asked Questions about figma-code-connect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Figma design-to-code component mapping?

You can automate Figma design-to-code component mapping by generating valid .figma.ts template files that dynamically map published Figma team library components to your production code snippets, eliminating manual synchronization effort.

What is a Figma Code Connect template file used for?

A Figma Code Connect template file is used to map design components to their corresponding production code snippets. It ensures consistent design-to-code translation by dynamically resolving component properties and child instances without hardcoded values.

How do I generate Code Connect templates for nested Figma components?

To generate Code Connect templates for nested Figma components, the system dynamically resolves multi-level nested child instances and their templates instead of hardcoding content, supporting complex design system components with accurate property mapping.

Does Figma Code Connect work with variant and instance swap properties?

Yes, Figma Code Connect works with variant and instance swap properties, along with text, booleans, and slots. It handles all property types to ensure accurate alignment between the Figma component and your production code.

Can I match Figma components to existing code components automatically?

Yes, you can automatically match Figma components to existing code components by searching your codebase. The system compares prop interfaces to find the matching code component and ensures accurate alignment for the generated template.

What are the limitations of automating Figma to code synchronization?

The primary limitation of automating Figma to code synchronization is that it requires published Figma team library components and a corresponding codebase to search. It relies on matching prop interfaces, so unmapped or unstructured code components may not resolve correctly.