Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
openai avatar

Appkit Interop

  • 22 installs
  • 4.9k repo stars
  • Updated July 14, 2026
  • openai/plugins

appkit-interop bridges SwiftUI to AppKit for windows, menus, and panels.

About

The appkit-interop skill bridges macOS SwiftUI into AppKit narrowly when implementing representables, reaching NSWindow or panels, handling menus, or using the responder chain. It avoids duplicating source of truth between SwiftUI and AppKit state, keeps Coordinator objects focused, and limits bridge surface to APIs SwiftUI cannot express. Workflow identifies the minimal NSView or NSViewController representable, documents lifecycle callbacks, and validates focus, key window, and menu validation behavior. Pair with swiftui-patterns and window-management before reaching for AppKit. Output describes bridge scope, state ownership, and manual QA steps for keyboard shortcuts and menu items. Guardrails forbid letting Coordinator become an unstructured dumping ground or using AppKit when SwiftUI modifiers suffice. Use this skill when SwiftUI is close but not quite enough for native macOS behavior. the source of truth, while AppKit handles the imperative edge.

  • Implements narrow AppKit bridges from SwiftUI representables.
  • Keeps single source of truth across SwiftUI and AppKit.
  • Covers NSWindow, panels, menus, and responder chain hooks.
  • Validates focus, key window, and menu validation behavior.
  • Uses AppKit only when SwiftUI lacks equivalent APIs.

Appkit Interop by the numbers

  • 22 all-time installs (skills.sh)
  • +1 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #710 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

appkit-interop capabilities & compatibility

Capabilities
narrow bridge workflow · coordinator discipline guardrails
Use cases
frontend
Platforms
macOS
From the docs

What appkit-interop says it does

Do not duplicate the source of truth between SwiftUI and AppKit
SKILL.md
npx skills add https://github.com/openai/plugins --skill appkit-interop

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs22
repo stars4.9k
Last updatedJuly 14, 2026
Repositoryopenai/plugins

How do I access NSWindow from SwiftUI safely?

Bridge macOS SwiftUI into AppKit narrowly for windows, menus, and responder chain.

Who is it for?

macOS SwiftUI developers needing NSWindow or menu hooks.

Skip if: Skip when SwiftUI scene modifiers fully cover the need.

When should I use this skill?

User implements representables, menus, or responder chain in AppKit.

What you get

Minimal representable bridge with documented state ownership.

Files

SKILL.mdMarkdownGitHub ↗

AppKit Interop

Quick Start

Use this skill when SwiftUI is close but not quite enough for native macOS behavior. Keep the bridge as small and explicit as possible. SwiftUI should usually remain the source of truth, while AppKit handles the imperative edge.

Choose The Smallest Bridge

  • Use pure SwiftUI when the required behavior already exists in scenes, toolbars, commands, inspectors, or standard controls.
  • Use NSViewRepresentable when you need a specific AppKit view with lightweight lifecycle needs.
  • Use NSViewControllerRepresentable when you need controller lifecycle, delegation, or presentation coordination.
  • Use direct AppKit window or app hooks when you need NSWindow, responder-chain, menu validation, panels, or app-level behavior.

Workflow

1. Name the capability gap precisely.

  • Window behavior
  • Text system behavior
  • Menu validation
  • Drag and drop
  • File open/save panels
  • First responder control

2. Pick the smallest boundary that solves it.

  • Avoid porting a whole screen to AppKit when one wrapped control or coordinator would do.

3. Keep ownership explicit.

  • SwiftUI owns value state, selection, and observable models.
  • AppKit objects stay inside the representable, coordinator, or bridge object.

4. Expose a narrow interface back to SwiftUI.

  • Bindings for editable state
  • Small callbacks for events
  • Focused bridge services only when necessary

5. Validate lifecycle assumptions.

  • SwiftUI may recreate representables.
  • Coordinators exist to hold delegate and target-action glue, not as a second app architecture.

References

  • references/representables.md: choosing between view and view-controller wrappers, plus coordinator patterns.
  • references/window-panels.md: window access, utility windows, and open/save panels.
  • references/responder-menus.md: first responder, command routing, and menu validation.
  • references/drag-drop-pasteboard.md: pasteboard, file URLs, and desktop drag/drop edges.

Guardrails

  • Do not duplicate the source of truth between SwiftUI and AppKit.
  • Do not let Coordinator become an unstructured dumping ground.
  • Do not store long-lived NSView or NSWindow instances globally without a strong ownership reason.
  • Prefer a tiny tested bridge over rewriting the feature in raw AppKit.
  • If a pattern can remain entirely in swiftui-patterns, keep it there.

Output Expectations

Provide:

  • the exact SwiftUI limitation being crossed
  • the smallest recommended bridge type
  • the data-flow boundary between SwiftUI and AppKit
  • the lifecycle or validation risks to watch

Related skills

FAQ

What does appkit-interop do?

appkit-interop bridges SwiftUI to AppKit for windows, menus, and panels.

When should I use appkit-interop?

User implements representables, menus, or responder chain in AppKit.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.