/swiftui-macos-skill:swiftui-macosfrom swiftui-macos-skill
Expert SwiftUI guidance for macOS apps covering observation, concurrency, performance, and AppKit bridging. Use when building views, reviewing code, fixing state issues, or debugging view updates.
Ships in swiftui-macos-skill. 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.
Read when SKILL.md points to them.
Guide SwiftUI development for macOS apps. Whether writing new code or reviewing existing code, apply deep understanding of SwiftUI's runtime behavior — how the observation registrar dispatches, how the attribute graph diffs view trees, how actor isolation interacts with view lifecycles.
Writing code: Load relevant references before implementation. The patterns here prevent bugs that are expensive to find later — observation cascades, identity thrashing, concurrency overhead. When making architecture decisions (state ownership, view decomposition, AppKit bridging), consult the relevant reference for tradeoffs.
Reviewing code: Check each reference area systematically. Focus on genuine problems — observation inefficiencies, deprecated API, accessibility gaps, concurrency anti-patterns. Don't flag obvious issues or invent problems.
Partial scope: Load only what the task needs. Not every change requires all eight references.
| Reference | Load when |
|---|---|
references/observation.md | @Observable, @State, ForEach, data-driven views, Observations {} streams |
references/concurrency.md | Task, async/await, actors, DispatchQueue, AsyncStream, scheduling decisions |
references/performance.md | View composition, animations, gestures, large collections, Canvas, TimelineView |
references/views.md | View decomposition, navigation, .task(id:), preference keys, custom Layout |
references/data.md | State architecture, SwiftData, environment injection, bindings, persistence |
references/platform.md | NSViewRepresentable, NSHostingView, multi-window state, AppKit bridging |
references/scenes.md | Scene and window API catalog — UtilityWindow, MenuBarExtra styles, Settings, window sizing/chrome, Commands, file dialogs, Table/PasteButton. Load to check what exists and its availability. |
references/api.md | API choice, deprecated patterns, modern Swift/SwiftUI idioms |
references/accessibility.md | VoiceOver, keyboard navigation, Dynamic Type, Reduce Motion |
@MainActor default isolation.NonisolatedNonsendingByDefault (SE-0461) — this changes where nonisolated async functions execute. See references/concurrency.md.NSViewRepresentable, NSHostingView, NSWindow) only when SwiftUI has no equivalent._modify vs set means for notification. Rules without understanding produce cargo-culted code.swift-collections, swift-algorithms, swift-async-algorithms) are exceptions — prefer them over reimplementing non-trivial data structures or algorithms. See references/api.md.User: "Review observation patterns in these sidebar views"
→ Load references/observation.md. Check each file for: state capture in ForEach, non-Equatable types on observed properties, missing @ObservationIgnored on caches, _modify vs set notification waste.
User: "I need to embed an NSCollectionView in SwiftUI"
→ Load references/platform.md. Apply NSViewRepresentable lifecycle, Equatable conformance for update gating, Coordinator for delegates.
User: "This view is re-rendering too much, help me debug it"
→ Load references/performance.md and references/observation.md. Check view identity (structural vs explicit), observation scope (are unrelated properties tracked in the same body?), @State vs @Observable for gesture-driven values.
Organize findings by file. For each issue:
Skip clean files. End with a prioritized summary of the most impactful changes.
references/accessibility.md (opens in a new tab)references/api.md (opens in a new tab)references/concurrency.md (opens in a new tab)references/data.md (opens in a new tab)references/observation.md (opens in a new tab)references/performance.md (opens in a new tab)references/platform.md (opens in a new tab)references/scenes.md (opens in a new tab)references/views.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swiftui, macos, appkit, observation, concurrency, state-management
swiftui-macos-skill@odak-plugins is listed by beyzaerdogaan/odak — review the source before installing
npx claudepluginhub beyzaerdogaan/odak --plugin swiftui-macos-skillOther plugins' skills for the same job