What problem does it solve?
This Skill solves the difficulty of implementing native, production-quality macOS menu systems in SwiftUI apps, where built-in menu APIs are limited and AppKit interop is often required for advanced features.
Core Features & Use Cases
- SwiftUI Menu Bar Customization: Build custom top-level menus, reorder built-in menu groups, and assign conflict-free keyboard shortcuts using .commands, CommandMenu, and CommandGroup.
- Context & System Menus: Implement right-click context menus, dynamic dock menus, and system Services menu integration for seamless macOS user experience.
- AppKit Interop Patterns: Use the NSMenu escape hatch for advanced dynamic menu items, menu validation, and first-responder routing when SwiftUI's APIs are insufficient.
- Use Case: A macOS note-taking app can use this Skill to add a custom "Notes" top-level menu, assign keyboard shortcuts for quick note creation, implement a context menu for note actions, and add a dock menu that shows recent notes when right-clicking the app icon.
Quick Start
Use the macos-menus-commands skill to add a custom top-level menu with a keyboard shortcut to your macOS SwiftUI app's menu bar.