agentsclimarketplace

Appkit menu bar builder

Skill a5c-ai/babysitter/library/specializations/desktop-development/skills/appkit-menu-bar-builder

Generate NSMenu and NSStatusItem configurations for macOS menu bar applicationsFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill appkit-menu-bar-builder

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.4 KB, 451 tokens by cl100k_base, as published. Nobody here has run it

appkit-menu-bar-builder

Generate NSMenu and NSStatusItem configurations for macOS menu bar applications. This skill creates menu bar apps with proper status items, menus, and SwiftUI integration.

Capabilities

  • Create NSStatusItem menu bar apps
  • Generate NSMenu configurations
  • Integrate SwiftUI popovers with AppKit
  • Handle menu item actions
  • Configure keyboard shortcuts
  • Support dynamic menu updates
  • Handle light/dark mode icons
  • Generate agent app configurations (LSUIElement)

Input Schema

{
  "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"]
}

Generated Code

import 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)
        }
    }
}

Related Skills

  • swiftui-view-generator
  • macos-entitlements-generator

What ships with it: 1 file

629 B alongside SKILL.md

Keep looking

Skills are one crate of 326,059. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.