figma-to-code

figma-to-code is a skill for Claude Code, Codex from troyjthomas/ios-agent-skills. It costs 78 tokens per session (1,136 once invoked), scanned A, original, MIT.

A workflow for turning Figma frames into native SwiftUI screens, using Figma's connection for developer tools. Figma is a design application, and SwiftUI is Apple's framework for building iPhone and iPad interfaces.

In plain words
What is it for?
Use it when building a new screen, matching an existing screen to a Figma design, or importing several designed screens. It requires a connected Figma MCP and organized frames.
Why use it?
It removes the need to recreate a design from screenshots and helps keep the implementation aligned with named Figma frames.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it when building a new screen, matching an existing screen to a Figma design, or importing several designed screens. It requires a connected Figma MCP and organized frames.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/troyjthomas/ios-agent-skills/figma-to-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add troyjthomas/ios-agent-skills --skill figma-to-code
Clone the repo
git clone --depth 1 https://github.com/troyjthomas/ios-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for figma-to-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/figma-to-code/github.svg)](https://agentmods.dev/skills/troyjthomas/ios-agent-skills/figma-to-code)
Your own site
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/figma-to-code"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/figma-to-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for figma-to-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/figma-to-code"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/figma-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01136
Opus 5 $0.00039 $0.00568
Sonnet 5 $0.00016 $0.00227
Haiku 4.5 $0.00008 $0.00114

Measured 8d ago against content hash cf06d6de3c97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

figma-to-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/figma-to-code/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Figma to Code

Get Claude Code to read your Figma designs directly and translate them into native SwiftUI. No screenshots. No PNGs. No "look at the bottom right corner of this image."

When to Use

  • You designed a screen in Figma and want Claude Code to build it
  • You're polishing an existing screen to match a refined Figma comp
  • You're adding new screens that were designed before being built
  • You want to batch-import multiple screens from a Figma project

Prerequisites

  • Figma MCP connected to Claude Code
  • Your Figma file organized with named frames (not random artboards)
  • Each screen in Figma should be a single, clearly named frame

How to Reference Figma Frames

Option 1: Frame URL

Copy the URL of a specific frame in Figma (right-click frame > Copy link). Paste it directly into your Claude Code prompt.

Option 2: Node ID

In the Figma URL, the node ID appears after node-id=. You can reference this directly.

Option 3: File + Frame Name

Reference the Figma file URL and frame name: "In my Figma file [URL], find the frame called 'Settings Main'."

The Prompt Template

For a New Screen

Build [Screen Name] based on this Figma frame: [URL or node ID].

Read the frame's layout, text content, spacing, and hierarchy.
Use native SwiftUI components for everything. Refer to CLAUDE.md
for component rules. The Figma design shows visual intent -- match
the layout and hierarchy, but use system-standard spacing and
native component behavior rather than pixel-exact replication of
every dimension.

For Polishing an Existing Screen

Refine [Screen Name] to match this Figma frame: [URL or node ID].

The screen already exists and works. Adjust layout, spacing,
typography weight, and visual hierarchy to match the Figma design.
Do not change functionality or navigation. Do not replace native
components with custom ones.

For Multiple Screens (Batch)

Here are the Figma frames for the Settings flow:
- Settings Main: [URL]
- Settings Notifications: [URL]
- Settings Appearance: [URL]
- Settings About: [URL]

Build all four screens. Each is a standard grouped List with
sections and rows. Refer to CLAUDE.md for navigation patterns.
The gear icon on the home screen is the entry point.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 130 lines · 78 tokens per session scan A cf06d6de3c97

Subscribe to this mod's changes

figma-to-code is a skill published in the GitHub repository troyjthomas/ios-agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 78 tokens to every session and 1,136 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ios-accessibility

Build and audit SwiftUI, UIKit, and AppKit accessibility for VoiceOver, Voice Control, Switch Control, Full Keyboard Access, Dynamic Type, focus restoration, labels/traits/actions, traversal, custom rotors, NSAccessibility, XCTest checks, adaptive system preferences, and App Store accessibility declarations. Use when…

dpearson2699/swift-ios-skills · 91 tokens

pencilkit

Add Apple Pencil drawing with PKCanvasView, PKToolPicker, PKDrawing serialization/export, stroke inspection, and PencilKit/PaperKit handoffs. Use when building drawing apps, annotation features, handwriting capture, signature fields, content-version-safe ink workflows, or Apple Pencil-powered experiences on…

dpearson2699/swift-ios-skills · 70 tokens

swiftui-liquid-glass

Implement, review, or improve SwiftUI Liquid Glass effects for iOS 26+. Covers glassEffect modifier, GlassEffectContainer, glass button styles, glass toolbar/tab bar, static status badges vs interactive controls, morphing transitions, tinting, interactive glass, ToolbarSpacer, scrollEdgeEffectStyle…

dpearson2699/swift-ios-skills · 111 tokens

swiftui-design-principles

Design principles for building polished, native-feeling SwiftUI apps and widgets. Use this skill when creating or modifying SwiftUI views, iOS widgets (WidgetKit), or any native Apple UI. Ensures proper spacing, typography, colors, and widget implementations that look and feel like quality apps rather than…

JordanCoin/ios-skills-collection · 72 tokens

swift-accessibility-skill

Apply platform accessibility best practices to SwiftUI, UIKit, and AppKit code. Essential companion to any SwiftUI, UIKit, or AppKit skill — always use together. Use whenever writing, editing, or reviewing ANY SwiftUI views, UIKit view controllers, AppKit views/window controllers, or platform UI — even when the user…

JordanCoin/ios-skills-collection · 141 tokens

figma-to-swiftui

Translate Figma designs into production-ready SwiftUI code with 1:1 visual fidelity using the Figma MCP workflow. Trigger when the user provides Figma URLs or node IDs and wants iOS/SwiftUI implementation, asks to implement a design or component from Figma for an iOS app, or references Figma selections in the context…

JordanCoin/ios-skills-collection · 133 tokens