skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
oakoss/agent-skills102 installs

figma-developer

Extracts design data from Figma via the REST API and converts designs to React code. Use when syncing Figma tokens to CSS variables, exporting icons as SVG components, generating code from Figma designs, or automating design-to-code workflows. Use for design token extraction, icon export, component generation, and CI-based Figma sync.

How do I install this agent skill?

npx skills add https://github.com/oakoss/agent-skills --skill figma-developer
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides tools and guidance for automating design-to-code workflows using the Figma API. It is generally safe but carries a low risk of indirect prompt injection because it processes external design data from Figma and transforms it into executable code. Users should ensure that Figma source files are managed by trusted contributors.

  • Socketwarn

    2 alerts: gptAnomaly

  • Snykwarn

    Risk: MEDIUM · 1 issue

  • Runlayerpass

    3/7 files flagged

What does this agent skill do?

Figma Developer

Overview

Automates the Figma-to-code bridge using the Figma REST API. Extracts design tokens (colors, typography, spacing) as CSS variables and JSON, exports icons as SVG React components, generates React components from Figma node structures, and sets up CI pipelines for continuous design sync.

When to use: Syncing design tokens from Figma to code, exporting icon sets as React components, generating component scaffolding from Figma variants, setting up automated design sync in CI.

When NOT to use: Manual one-off design tweaks (just copy values), Figma plugin development (use the Plugin API instead), real-time collaborative editing (use Figma webhooks directly), or projects without a Figma design system.

Quick Reference

PatternAPI / ApproachKey Points
Get file dataGET /v1/files/:keyReturns full document tree with styles and fills
Get specific nodesGET /v1/files/:key/nodes?ids=...Fetch only the nodes you need to reduce payload
Export imagesGET /v1/images/:key?ids=...&format=svgRenders nodes as SVG/PNG/PDF; URLs expire in 14 days
Get stylesGET /v1/files/:key/stylesLists all published color, text, and effect styles
Get componentsGET /v1/files/:key/componentsLists all published components with metadata
Get component setsGET /v1/files/:key/component_setsReturns variant groupings for components
Get variablesGET /v1/files/:key/variables/localExtracts Figma Variables (colors, spacing, etc.)
Publish variablesPOST /v1/variablesPublishes local variables organization-wide
Token extractionParse styles from file response, transform to CSS/JSONNo built-in "extract tokens" endpoint exists
CI syncGitHub Actions cron + peter-evans/create-pull-requestAuto-sync PRs on Figma file changes

Figma File Organization

SectionContents
ColorsAll color styles with / hierarchy (Primary/500)
TypographyText styles (Heading/Large, Body/Regular)
SpacingSpacing guide values
ComponentsVariant groups (Button/Primary, Card/Default)
IconsAll icons in one exportable frame

Common Mistakes

MistakeFix
Using fabricated API methods like extractDesignTokens()Parse styles from GET /v1/files/:key response manually
Hardcoding Figma values instead of using tokensExtract tokens to CSS variables, reference with var()
Not normalizing Figma style namesLowercase + replace special chars with hyphens
Forgetting Figma uses 0-1 RGB not 0-255Multiply by 255 and round before hex conversion
No API response cachingCache with TTL to avoid rate limits
Manual icon exportsAutomate with GET /v1/images/:key + React component generation
No CI sync workflowGitHub Actions cron + create-pull-request action
Using expired image URLsImage export URLs expire in 14 days; re-fetch before use

Libraries

PackagePurpose
figma-apiCommunity Figma REST API client (typed)
@figma/rest-api-specOfficial TypeScript types for Figma API
style-dictionaryTransform design tokens across platforms
svgoOptimize exported SVGs before use
@svgr/coreConvert SVG files to React components

Delegation

  • Design systems: see design-system skill
  • Asset optimization: see asset-manager skill

References

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/oakoss/agent-skills/figma-developer">View figma-developer on skillZs</a>