Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate NSMenu and NSStatusItem configurations for macOS menu bar applications
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-10 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -36% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -70% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -76% | 0% |
Generate NSMenu and NSStatusItem configurations for macOS menu bar applications. This skill creates menu bar apps with proper status items, menus, and SwiftUI integration.
json{ "type": "object", "properties": { "projectPath": { "type": "string" }, "appType": { "enum": ["menu-only", "popover", "window-and-menu"] }, "menuStructure": { "type": "array" }, "iconType": { "enum": ["system", "custom", "dynamic"] }, "useSwiftUI": { "type": "boolean", "default": true } }, "required": ["projectPath"] }
swiftimport AppKit import SwiftUI class StatusBarController { private var statusItem: NSStatusItem private var popover: NSPopover init() { statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) popover = NSPopover() popover.contentSize = NSSize(width: 300, height: 400) popover.behavior = .transient popover.contentViewController = NSHostingController(rootView: ContentView()) if let button = statusItem.button { button.image = NSImage(systemSymbolName: "star.fill", accessibilityDescription: "App") button.action = #selector(togglePopover) button.target = self } } @objc func togglePopover() { if popover.isShown { popover.performClose(nil) } else if let button = statusItem.button { popover.show(relativeTo: button.bounds, of: button, preferredEdge: .minY) } } }
swiftui-view-generatormacos-entitlements-generatorOther measured skills in the registry, with their headline benchmark lift.