/figma-mcp-bridge:code-design-mapperfrom figma-mcp-bridge
Maps Figma design components to code components across iOS (SwiftUI), Android (Compose), and Web (React/Vue) platforms. Supports multi-platform mapping, local operation without Enterprise plan, and generates JSON, Markdown, or Code Connect format output.
Ships in figma-mcp-bridge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bu skill, Figma tasarım bileşenlerini iOS, Android ve Web platformlarındaki kod karşılıklarına eşler. Tek bir Figma component'i 3 farklı platform implementasyonuyla eşleşebilir.
Figma resmi Code Connect'ten farkları:
REST API veya Figma access token gerekmez.
Resmi Figma MCP'de Code Connect akışı get_code_connect_suggestions ve send_code_connect_mappings araçlarıyla çalışır. F-MCP Bridge'de bu araçlar kayıtlı değildir (FUTURE.md'de planlı).
F-MCP ile eşdeğer iş akışı:
| Resmi Code Connect adımı | F-MCP Bridge karşılığı |
|---|---|
| Resmi: code connect suggestions | figma_search_components + figma_get_component + figma_get_component_for_development |
| Bileşen–kod eşleme | AI ile .figma-mappings.json üretimi (bu skill'in ana akışı) |
| Resmi: send code connect mappings | yok — eşleme dosyası repoda kalır, Figma'ya gönderilmez |
Resmi Code Connect .figma.js şablonları gerekiyorsa: Kullanıcıya resmi Figma MCP sunucusunu etkinleştirmesi ve topluluk figma-code-connect skill'ini kullanması önerilir.
Bridge'e Code Connect araçları eklendiğinde bu bölüm ve iş akışı güncellenmeli.
.figma-mappings.json ile design-drift-detector ve implement-design; manifest için ai-handoff-export.Bu adımları sırayla uygula. Adım atlama.
figma_get_status()
Kullanıcıdan veya codebase'den platform proje köklerini belirle:
Hangi platformlarda çalışıyorsunuz ve proje dizinleri nerede?
- iOS: ör. ios-app/ veya MyApp.xcodeproj/
- Android: ör. android-app/ veya app/src/main/
- Web: ör. web-app/ veya src/
Her platform için component dizinlerini tespit et:
| Platform | Yaygın Component Dizinleri |
|---|---|
| iOS (SwiftUI) | Sources/Components/, Views/, UI/ |
| iOS (UIKit) | Views/, UI/Components/, Cells/ |
| Android (Compose) | ui/components/, presentation/components/ |
| Android (XML) | res/layout/, res/values/styles.xml |
| Web (React) | src/components/, components/ui/ |
| Web (Vue) | src/components/, views/ |
| Web (Legacy) | templates/, partials/, public/js/ |
Belirli component:
figma_get_component(nodeId="<NODE_ID>")
Tüm component'ler (aktif sayfa):
figma_search_components(query="", currentPageOnly=true, limit=50)
Uyarı: currentPageOnly=false büyük dosyalarda timeout'a neden olabilir. Önce currentPageOnly=true (varsayılan) ile dene. Component başka sayfadaysa dikkatli şekilde false kullan.
figma_get_component_for_development(nodeId="<NODE_ID>", scale=2, format="PNG")
Bu tek çağrıda hem metadata hem base64 screenshot döner. Ancak base64 screenshot context'i şişirir — çok fazla component taranacaksa önce figma_get_component(nodeId="...") (sadece metadata) kullan, screenshot'ı sadece eşleşme onayı için al.
Her component için Figma'daki bilgiler:
Her Figma component'i için, her platformda ayrı ayrı eşleşme ara:
iOS arama:
.swift dosyalarında struct ComponentName: View (SwiftUI).swift dosyalarında class ComponentName: UIView (UIKit).xib / .storyboard dosyalarında custom class referanslarıAndroid arama:
.kt dosyalarında @Composable fun ComponentName (Compose)res/layout/ altında component_name.xml (XML)Web arama:
.tsx/.jsx dosyalarında export function ComponentName veya export const ComponentName.vue dosyalarında <script> içinde component tanımı.html/.hbs dosyalarında template/partialMulti-platform sunum formatı:
Figma Component: Button (42:15)
Variant'lar: primary | secondary | ghost × sm | md | lg
Platform Eşleşmeleri:
┌──────────┬────────────────────────────────────┬──────────┐
│ Platform │ Kod Dosyası │ Durum │
├──────────┼────────────────────────────────────┼──────────┤
│ iOS │ Sources/UI/ButtonComponent.swift │ Eşleşti │
│ Android │ ui/components/ButtonComponent.kt │ Eşleşti │
│ Web │ src/components/Button.tsx │ Eşleşti │
└──────────┴────────────────────────────────────┴──────────┘
Figma Component: Avatar (42:30)
┌──────────┬────────────────────────────────────┬──────────────┐
│ Platform │ Kod Dosyası │ Durum │
├──────────┼────────────────────────────────────┼──────────────┤
│ iOS │ Sources/UI/AvatarView.swift │ Eşleşti │
│ Android │ — │ Eksik │
│ Web │ src/components/Avatar.tsx │ Eşleşti │
└──────────┴────────────────────────────────────┴──────────────┘
Bu eşleşmeleri kaydetmek ister misiniz?
Önemli: .figma-mappings.json dosyası AI agent tarafından oluşturulur ve yönetilir. Hiçbir MCP aracı bu dosyayı okumaz veya yazmaz — tamamen agent-tarafı bir artifact'tir.
Proje kökünde .figma-mappings.json dosyası:
{
"version": "2.0",
"lastUpdated": "2026-03-12T10:30:00Z",
"figmaFile": "Design System",
"platforms": {
"ios": {
"rootDir": "ios-app/",
"framework": "SwiftUI",
"language": "Swift",
"componentDirs": ["Sources/UI/", "Sources/Components/"]
},
"android": {
"rootDir": "android-app/",
"framework": "Compose",
"language": "Kotlin",
"componentDirs": ["app/src/main/java/com/app/ui/components/"]
},
"web": {
"rootDir": "web-app/",
"framework": "React",
"language": "TypeScript",
"componentDirs": ["src/components/", "src/ui/"]
}
},
"components": [
{
"figmaNodeId": "42:15",
"figmaName": "Button",
"figmaPath": "Components/Button",
"variants": {
"variant": ["primary", "secondary", "ghost"],
"size": ["sm", "md", "lg"]
},
"implementations": {
"ios": {
"codePath": "ios-app/Sources/UI/ButtonComponent.swift",
"componentName": "ButtonComponent",
"propMapping": {
"variant": { "codeProp": "style", "codeType": "ButtonStyle" },
"size": { "codeProp": "size", "codeType": "ButtonSize" }
},
"status": "synced",
"lastSync": "2026-03-12T10:30:00Z"
},
"android": {
"codePath": "android-app/app/src/main/java/com/app/ui/components/ButtonComponent.kt",
"componentName": "ButtonComponent",
"propMapping": {
"variant": { "codeProp": "variant", "codeType": "ButtonVariant" },
"size": { "codeProp": "size", "codeType": "ButtonSize" }
},
"status": "synced",
"lastSync": "2026-03-12T10:30:00Z"
},
"web": {
"codePath": "web-app/src/components/Button.tsx",
"componentName": "Button",
"propMapping": {
"variant": { "codeProp": "variant", "codeType": "string" },
"size": { "codeProp": "size", "codeType": "string" }
},
"status": "synced",
"lastSync": "2026-03-12T10:30:00Z"
}
}
},
{
"figmaNodeId": "42:30",
"figmaName": "Avatar",
"figmaPath": "Components/Avatar",
"variants": {
"size": ["xs", "sm", "md", "lg", "xl"]
},
"implementations": {
"ios": {
"codePath": "ios-app/Sources/UI/AvatarView.swift",
"componentName": "AvatarView",
"status": "synced",
"lastSync": "2026-03-12T10:30:00Z"
},
"android": null,
"web": {
"codePath": "web-app/src/components/Avatar.tsx",
"componentName": "Avatar",
"status": "outdated",
"lastSync": "2026-02-15T14:00:00Z"
}
}
}
],
"coverageSummary": {
"totalComponents": 25,
"ios": { "implemented": 20, "missing": 5, "outdated": 2 },
"android": { "implemented": 18, "missing": 7, "outdated": 1 },
"web": { "implemented": 22, "missing": 3, "outdated": 3 }
}
}
Mapping tamamlandıktan sonra coverage raporu sun:
Design System Platform Coverage Raporu
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Toplam Figma Component: 25
iOS Android Web
Impl. 20/25 18/25 22/25
% 80% 72% 88%
Güncel 18/20 17/18 19/22
Eksik 5 7 3
Eksik Component'ler:
Android: Avatar, Tooltip, Breadcrumb, Stepper, DatePicker
iOS: Breadcrumb, DataTable, Pagination, RichText, CodeBlock
Web: Stepper, DatePicker, BottomSheet
"Mapping'leri güncelle" veya "sync" dendiğinde:
.figma-mappings.json okustatus: "outdated"status: "missing"Coverage raporunda eksik görünen component'i implement etmek için:
figma_get_component_for_development(nodeId="...") ile Figma verisini alKullanıcı: "Button component'ini tüm platformlarda eşle, nodeId: 42:15"
Akış:
figma_get_status() → bağlıfigma_get_component_for_development(nodeId="42:15") → Button, variantsButtonComponent.swift bulunduButtonComponent.kt bulunduButton.tsx bulundu.figma-mappings.json'a kaydetKullanıcı: "Tüm component'leri tara, hangi platformlarda eksik göster"
Akış:
figma_search_components(query="", currentPageOnly=false) → 25 componentKullanıcı: "Android Compose component'lerini Figma ile eşle"
Akış:
Çözüm: platforms.ios.rootDir alanını absolute path veya relative path olarak ayarla. Farklı repo'lar için workspace root'a göre path ver.
Çözüm: Her platform implementasyonunun componentName alanı bağımsızdır. Figma'da "SegmentedControl" → iOS'ta "Picker", Android'de "TabRow", Web'de "SegmentedControl" olabilir.
Çözüm: Web implementasyonu null olarak bırak, coverage raporunda "N/A" göster. Platform-specific component'leri mapping'de işaretle.
Çözüm: platforms altında ayrı entry ekle: "web-legacy": { "framework": "jQuery", ... }. Bir Figma component'in hem modern hem legacy web karşılığı olabilir.
.figma-mappings.json şeması değişirse çıktı formatı uyarlanmalıWhat SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (atezer/fmcp) — no native marketplace selected
npx claudepluginhub p/atezer-figma-mcp-bridge29 skills in this plugin
/ai-handoff-exportFigma tasarım verisini AI'nın kod üretimi için kullanabileceği tek bir handoff paketine dönüştürür (HANDOFF şablonu + JSON manifest). Node kimlikleri, design context özeti, token özeti, ekran görüntüsü referansları ve opsiyonel Code Connect haritası üretir. PO/PM için executive summary da içerir. "AI handoff", "handoff dosyası", "handoff export", "teslimat paketi", "figma handoff", "koda teslim özeti", "design handoff oluştur", "handoff al", "implementasyon paketi" ifadeleriyle tetiklenir. F-MCP Bridge plugin bağlantısı gerektirir./apply-figma-design-systemMevcut Figma ekranını yayınlanmış design system bileşenleri ve token'larıyla çok bölümlü şekilde hizalar; yedek, envanter, bölüm bölüm swap/compose. "ekranı ds'ye bağla", "kütüphaneye geçir", "design system apply", "tasarım sistemi uygula", "bileşenleri hizala", "token'ları bağla" ifadeleriyle tetiklenir. F-MCP Bridge ve figma_execute gerektirir./audit-figma-design-systemFigma ekran veya bileşenini design system entegrasyonu açısından okuma-only denetler; eksik kütüphane instance'ları, yerel override'lar ve bağlanmamış token'ları raporlar. "figma ds audit", "design system audit", "kütüphane kullanımı kontrol", "token bağlı mı", "DS sağlık kontrolü", "ne kadar DS uyumlu", "tasarım durumu raporu", "ekran kalitesi" ifadeleriyle tetiklenir. F-MCP Bridge plugin bağlantısı gerektirir./component-documentationFigma bileşeni için kullanım kılavuzu oluşturur. "bileşen dokümantasyonu", "component docs", "usage guidelines", "bileşen kılavuzu" ifadeleriyle tetiklenir./design-drift-detectoriOS, Android ve Web platformlarında mevcut kod ile Figma tasarımı arasındaki farkları (drift) tespit eder. Platform bazlı ve cross-platform drift raporları üretir. "check drift", "design drift", "platform drift", "tasarım sapması kontrol et", "parity check", "kod Figma uyuşuyor mu", "spacing doğrula", "token tutarlılık" ifadeleriyle tetiklenir. F-MCP Bridge plugin bağlantısı gerektirir. Bu özellik resmi Figma plugininde yoktur./design-system-rulesiOS, Android ve Web platformlarına özel design system kuralları oluşturur. Figma variable ve style verilerini analiz ederek akıllı kural üretimi yapar. "create design system rules", "design system kuralları oluştur", "platform kuralları ayarla", "DS standartlarını belirle", "token kullanım kuralları" ifadeleriyle tetiklenir. F-MCP Bridge plugin bağlantısı gerektirir.Other plugins' skills for the same job