figma-swiftui

作成者: figma

SwiftUI ↔ Figmaの変換。ユーザーがSwift、SwiftUI、iOS、iPhone、iPadのいずれかを言及した場合に使用し、Figmaデザインを…に変換する双方向の処理を行います。

npx skills add https://github.com/figma/mcp-server-guide --skill figma-swiftui

Figma ↔ SwiftUI

Translation between Figma designs and SwiftUI code, both directions. This file is a router — actual guidance lives in the references below.

Pick the direction

DirectionTriggerReference
Design → codeUser wants SwiftUI in their iOS project from a Figma file/framereferences/design-to-code.md
Code → designUser wants to push SwiftUI views / screens / tokens into a Figma filereferences/code-to-design.md

If the request is ambiguous — a Figma URL and .swift files both present, no verb makes it clear — ask the user which direction before loading a reference.

Shared context (applies to both directions)

These points hold regardless of direction; the direction-specific references assume them.

  1. get_design_context is the read tool for Figma. Pass clientLanguages: "swift" and clientFrameworks: "swiftui" so the response is framed as Swift. URL → tool args: figma.com/design/:fileKey/:fileName?node-id=:nodeId → use fileKey, replace - with : in nodeId. For figma.com/design/:fileKey/branch/:branchKey/:fileName, use branchKey as fileKey.
  2. The React+Tailwind in get_design_context output is a structural reference, not a literal source. It approximates the visual. Never transliterate position: absolute / pixel frames / mix-blend-mode stacks into SwiftUI or into Figma — the screenshot is the source of truth in both directions.
  3. iOS HIG semantic colors are tokens, not hex. var(--backgrounds/primary, …), var(--labels/secondary, …), var(--separators/non-opaque, …) etc. map to Color(.systemBackground), Color.secondary, Color(.separator) in SwiftUI, and to variables in a semantic collection in Figma. Keep the mapping; drop the literal RGBA.
  4. SF Symbols round-trip by name in both directions — never by codepoint. Design → code: get_design_context substitutes Figma's SF Symbol glyph runs back into <SFSymbol>{Image(systemName: "...")}</SFSymbol> wrappers in the response. Use those names verbatim. Code → design: call figma.util.getSfSymbolCharacter(name) inside use_figma to convert a symbol name to the matching character — never look up codepoints by hand.
  5. Recognize the underlying iOS pattern, not the literal node / view name. The same patterns recur in both directions: large title + back chevron + trailing action = NavigationStack chrome; bottom row of icon+label pairs = TabView; repeating same-height rows with leading/trailing chrome = List. Match those system patterns rather than rebuilding them from primitives.
  6. For code → design, use_figma is the API. Always load figma-use before any use_figma call. If the task involves building a full screen, also load figma-generate-design; if it involves building components or a design system, also load figma-generate-library.

References

DocWhen to load
references/design-to-code.mdTranslating a Figma design / frame into SwiftUI
references/code-to-design.mdPushing SwiftUI views / screens / tokens into Figma

figmaのその他のスキル

video-interaction-mapper
figma
このスキルは、ユーザーがUI画面の録画を分析し、インタラクションの状態をFigmaにマッピングするよう依頼した場合に使用されます。「動画を配置して…」といったリクエストでトリガーされます。
figma-code-connect
figma
FigmaコンポーネントをコードスニペットにマッピングするFigma Code Connectテンプレートファイルを作成・管理します。ユーザーがCode ConnectやFigmaコンポーネントについて言及した場合に使用します。
create-design-system-rules
figma
プロジェクト全体で一貫したFigmaからコードへの実装を実現するカスタムデザインシステムルール。コンポーネント構成、スタイリング、デザイントークン、アセット処理に関するプロジェクト固有の規約を生成し、AIエージェントが一貫性のあるコードを生成できるよう導きます。CLAUDE.md(Claude Code用)、AGENTS.md(Codex CLI用)、.cursor/rules/figma-design-system.mdc(Cursor用)の3つのルールファイル形式に対応。ルール生成前にFigma MCPサーバー接続とコードベース分析による既存パターンの検出が必要です...
figma-implement-motion
figma
Figmaのモーションとアニメーションを本番対応のアプリケーションコードに変換します。Figmaデザインからアニメーション/モーションを実装する際に使用 — ユーザーが言及…
figma-use-motion
figma
Motion / animation context for the `use_figma` MCP tool — animating Figma nodes via manual keyframes, animation styles, easing, and timeline duration. Load…
figma-use-slides
figma
このスキルは、エージェントがFigmaのuse_figma MCPツールをスライドコンテキストで使用する際に役立ちます。figma-useと併用可能で、figma-useは…を使用するための基礎的なコンテキストを提供します。
figma-use-figjam
figma
このスキルは、エージェントがFigJamコンテキストでFigmaのuse_figma MCPツールを使用するのを支援します。use_figmaの基本的なコンテキストを持つfigma-useと併用できます。
code-connect-components
figma
Code Connectを使用してFigmaデザインコンポーネントとコード実装の間に双方向リンクを確立します。Figma MCPサーバー接続と、OrganizationまたはEnterpriseプランで公開されたコンポーネントが必要です。Figmaの選択範囲内の未マッピングコンポーネントを自動的に識別し、名前、構造、プロパティに基づいてコードベース内の一致するコードコンポーネントをスキャンします。マッピングを作成する前に、一致したコンポーネントをレビュー用に提示し、選択的に受け入れまたは拒否できます。複数の...をサポートします。