/apple-dev:figma-importfrom apple-dev
Use when importing a Figma design into a SwiftUI project, translating Figma frames into SwiftUI, or when the user shares a figma.com URL. Adds SwiftUI-project rules on top of the Figma plugin's figma-design-to-code and figma-swiftui skills, which must be loaded first.
Ships in apple-dev. 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.
Load the Figma plugin's figma-design-to-code and figma-swiftui skills first for the core pattern mappings, typography, colors, and asset handling. If the Figma MCP tools are unavailable, ask the user to connect or authorize the Figma connector, then continue on their next message.
Before writing a view, classify each element as system chrome to omit, a native control to substitute, an extension surface, or genuinely custom UI. Names are hints. Confirm from anatomy, position, and the screenshot. Ownership follows the nearest product-screen boundary: a map inside an app screen is a MapKit candidate, while the same map inside a phone mockup in a marketing graphic is artwork.
These extend the table in the figma-swiftui reference.
| Figma evidence | SwiftUI | Guardrail |
|---|---|---|
| Alert or action sheet with role-labeled actions such as Cancel or Delete | alert or confirmationDialog with button roles | Let iOS choose side-by-side versus stacked buttons |
| Menu list, context preview, or Cut/Copy/Paste bar | Menu, contextMenu, or the text system's edit menu | Never draw selection handles or clipboard commands |
| Activity view with app and action rows | ShareLink | The activity list is system-owned and personalized |
| Bottom-anchored growing field with send, mic, or attachment actions, often above a keyboard | TextField with a vertical axis, lineLimit, and safeAreaInset(edge: .bottom) | Do not bake the keyboard height into the layout |
| Email, password, phone, URL, or code field variants | TextField or SecureField with textContentType, keyboardType, autocapitalization, and submitLabel | Preserve autofill and privacy semantics |
| Grouped rows with a swipe reveal | List rows with swipeActions | Do not draw the revealed buttons |
| Sheet with a grabber, half-height variant, or inspector | sheet with presentationDetents and presentationDragIndicator, or inspector | Avoid fixed overlay heights and hand-built grabbers |
| Centered symbol, title, and subtitle on an otherwise empty screen | ContentUnavailableView | Also use for search with no results |
| Color swatch picker | ColorPicker | |
| Face ID or Touch ID prompt | LocalAuthentication request | The system draws the prompt |
| Frame named Map with pins or route geometry | Map from MapKit, only after asking | Adds live data and may need location permission |
Figma's Glass effect is a GLASS record in a node's effects. get_design_context, get_metadata, and SVG or PNG exports all drop it and show an ordinary translucent rectangle with the node's blend mode and fills. Only use_figma can see it, so check for it before mapping any surface.
After get_design_context, load the figma-use skill and run one read-only use_figma script per chosen frame that lists every visible node carrying a visible GLASS effect. Switch to the frame's page first, because a frame fetched by ID on an unloaded page has no children to search. Effect styles count, because a node's effects reflect its applied style.
const frame = await figma.getNodeByIdAsync("151:546")
let page = frame
while (page.type !== 'PAGE') page = page.parent
await figma.setCurrentPageAsync(page)
const hasGlass = n => n.visible && 'effects' in n && n.effects.some(e => e.type === 'GLASS' && e.visible)
const nodes = frame.findAll(hasGlass)
if (hasGlass(frame)) nodes.unshift(frame)
return Promise.all(nodes.map(async n => {
let instance = null
for (let p = n; p && p.type !== 'PAGE' && !instance; p = p.parent) if (p.type === 'INSTANCE') instance = p
const main = instance && await instance.getMainComponentAsync()
const set = main && main.parent && main.parent.type === 'COMPONENT_SET' ? main.parent.name : null
return { id: n.id, name: n.name, type: n.type, cornerRadius: n.cornerRadius, fills: n.fills,
component: main ? { name: set || main.name, library: main.remote } : null }
}))
Design context labels a symbol with Image(systemName:) only while it is still a text glyph. Once a designer outlines or flattens one, it arrives as a vector or boolean group whose layer name is the glyph's single private-use character, U+100000 or above, which renders as a box or as nothing. That layer is still an SF Symbol, so never trace it as a path or pick a lookalike from the screenshot. List the glyphs with one read-only use_figma script per frame, then look each codepoint up in the sf-symbols-catalog skill's index:
const frame = await figma.getNodeByIdAsync("151:546")
let page = frame
while (page.type !== 'PAGE') page = page.parent
await figma.setCurrentPageAsync(page)
const isGlyphName = n => /^[\u{100000}-\u{10FFFD}]$/u.test(n.name)
return frame.findAll(isGlyphName).map(n => ({
id: n.id, type: n.type, parent: n.parent.name, codepoint: n.name.codePointAt(0).toString(16)
}))
Apple publishes an official iOS and iPadOS 27 UI kit for Figma at https://www.figma.com/community/file/1651309003795292092/ios-and-ipados-27. Layers that come from it are Apple components and map to system controls and colors; layers from other kits stay literal. Its 27.1 update adds iPhone Duo bezels, a keyboard, and toolbar, tab bar, and status bar components, so a Duo design built on it shows where the vertical bar and safe areas fall. Point the user at it when they want to design iPhone or iPad screens in Figma before importing them.
The kit's Pane controls instance is the Duo's vertical bar, and it is system chrome. It is a narrow column along the outer edge of a pane holding a Status bar instance with the Dynamic Island, time, and levels, and a Controls slot of round Buttons groups, sometimes with a vertical Tab Bar. iOS builds that column from the app's toolbar and tab bar in every pose that moves bars to the side, so omit the column and never draw a vertical stack of glass buttons. Read its contents as toolbar evidence instead: the top group holds the navigation and top-bar items, the bottom group holds the bottom-bar items and tabs, and each button's symbol becomes a toolbar item or Tab in the pane's NavigationStack or TabView. A horizontal bar that stays inside a pane, such as a list header with its own buttons, is that pane's own toolbar and maps the same way.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chrislaupama/apple-dev-kit --plugin apple-dev25 skills in this plugin
/app-intentsUse when adding or modifying App Intents, App Shortcuts, Siri actions, Spotlight actions, Action Button actions, or parameters exposed through those systems./apple-app-extensionsUse when adding or modifying a Widget, Control Center control, Live Activity, WidgetKit extension, complication, or App Group shared between an app and its extensions./apple-higConsult Apple's Human Interface Guidelines when creating a new app's user-facing interface, designing a new screen or UI component, substantially redesigning UI layout, controls, navigation, or interactions, or answering an explicit HIG guidance or review request. Not triggered by code architecture, API or data-model design, or implementation changes that preserve the UI.Other plugins' skills for the same job