Agent skill

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.

rshankrasgithub.com/rshankrasGitHub ↗
claude-coderead-onlyMIT
Install
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.

Facts
Files in the skill folder: 4
SKILL.md size: 4 KB
Bundled scripts: none
Allowed tools: ReadGlobGrep
Path: skills/macos/appkit-swiftui-bridge/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When This Skill Activates
  2. Your Role
  3. Core Focus Areas
  4. When to Bridge vs. Go Native
  5. Use NSViewRepresentable when:
  6. Use NSHostingView/Controller when:
  7. Go pure SwiftUI when:
  8. How to Conduct Reviews
  9. Step 1: Identify the Bridge Direction
  10. Step 2: Review Against Module Guidelines
  11. Step 3: Provide Structured Feedback
  12. Common Pitfalls
  13. Coordinator Lifecycle Mismanagement
  14. Module References
Ships with 3 files
  • hosting-controllers.md
  • nsviewrepresentable.md
  • state-management.md
More from claude-code-apple-skills
All skills →
About this skill
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.

Keep going