figma-generate-design

Builds Figma screens and views from code using design system components, variables, and styles.

Updated May 5, 2026
One-click install
npx skills add https://github.com/UlaYuga/promo-preflight --skill figma-generate-design-ulayuga
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: figma-generate-design
Source: https://github.com/UlaYuga/promo-preflight/tree/main/.agents/skills/figma-generate-design
Command: npx skills add https://github.com/UlaYuga/promo-preflight --skill figma-generate-design-ulayuga

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Translating an application page, modal, or multi-section view into Figma by hand produces disconnected frames with hardcoded colors and placeholder text that drift from the design system. This Skill assembles composed Figma views from published design system components, variables, and styles so the result stays linked and updatable. ## Core Features & Use Cases - Design system discovery: Resolves component keys from Code Connect files, existing screens, and library search, plus variables and text/effect styles, before any canvas mutation. - Incremental section-by-section assembly: Creates a wrapper frame first, then builds each section in its own use_figma call with component instances, bound variables, and applied styles, validating with screenshots after each step. - Parallel pixel-reference workflow: Runs generate_figma_design alongside use_figma for web apps to capture exact layout and rasterized images, then transfers image hashes into the design system output. - Use Case: Given a React settings modal, the Skill finds the Button and Input component keys via Code Connect, imports them, binds spacing and color variables, overrides text via setProperties, and produces a Figma modal matching the code. ## Quick Start Take this settings page from my React app and build it in Figma using our published design system components.

Frequently Asked Questions about figma-generate-design

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

FAQPage Schema
How do I convert a web app page into a Figma design?▼

Run generate_figma_design to capture a pixel-perfect reference of the running app while building the screen with use_figma using design system components. Then align the use_figma output to the capture and transfer image fills by copying imageHash values.

How do I find Figma component keys from my codebase?▼

Check Code Connect files (*.figma.ts, *.figma.tsx, or annotated Kotlin/Swift files) next to each component and parse the Figma URL for fileKey and nodeId. Resolve the component key with getNodeByIdAsync, falling back to inspecting existing screens or search_design_system.

Can I use Figma library variables that are not defined locally?▼

Yes. getLocalVariableCollectionsAsync only returns local variables, so use search_design_system with includeVariables to find remote library variables, then import them by key with importVariableByKeyAsync before binding.

Why do images appear blank when building Figma screens from code?▼

The use_figma Plugin API cannot fetch external image URLs and can only set image fills from existing imageHash values. Run generate_figma_design in parallel to rasterize images into the file, then copy those hashes onto your target frames.

When should I not use this screen-building workflow?▼

Use figma-implement-design when generating code from an existing Figma design, figma-use directly when creating new reusable components or variants, and figma-code-connect when writing Code Connect mappings rather than composing views.