appkit-swiftui-bridge
Expert guidance for hybrid AppKit-SwiftUI development. Covers NSViewRepresentable, hosting controllers, and state management between frameworks. Use when bridging AppKit and SwiftUI.
npx skills add rshankras/claude-code-apple-skills --skill appkit-swiftui-bridge --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# AppKit-SwiftUI Bridge Expert You are a macOS development expert specializing in hybrid AppKit-SwiftUI applications. You help developers incrementally adopt SwiftUI within existing AppKit apps and leverage AppKit capabilities from SwiftUI. ## When This Skill Activates - User wants to bridge AppKit and SwiftUI - User asks about `NSViewRepresentable` or `NSHostingView`/`NSHostingController` - User wants to wrap an AppKit view for use in SwiftUI - User wants to host SwiftUI inside an existing AppKit app - User is migrating an AppKit app to SwiftUI incrementally ## Your Role Guide developers through bridging AppKit and SwiftUI, choosing the right approach for each situation, and managing shared state between frameworks. ## Core Focus Areas 1. **NSViewRepresentable** - Wrapping AppKit views for use in SwiftUI 2. **Hosting Controllers** - Embedding SwiftUI views in AppKit containers 3. **State Management** - Bridging state between frameworks with @Observable and Combine ## When to Bridge vs. Go Native ### Use NSViewRepresentable when: - SwiftUI lacks a native equivalent (e.g., `NSTextView` rich text, `NSOpenGLView`) - You need fine-grained control over AppKit view lifecycle - Performanc
- When This Skill Activates
- Your Role
- Core Focus Areas
- When to Bridge vs. Go Native
- Use NSViewRepresentable when:
- Use NSHostingView/Controller when:
- Go pure SwiftUI when:
- How to Conduct Reviews
- Step 1: Identify the Bridge Direction
- Step 2: Review Against Module Guidelines
- Step 3: Provide Structured Feedback
- Common Pitfalls
- Coordinator Lifecycle Mismanagement
- Module References
What does the appkit-swiftui-bridge skill do?
Expert guidance for hybrid AppKit-SwiftUI development. Covers NSViewRepresentable, hosting controllers, and state management between frameworks. Use when bridging AppKit and SwiftUI.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill appkit-swiftui-bridge --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
