Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

appkit-menu-bar-builder

БесплатноБез исполняемых скриптовНе проверен

Generate NSMenu and NSStatusItem configurations for macOS menu bar applications

a5c-aiот a5c-ai★ 1 947 звёзд на GitHub

Об этом скилле

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

Установить appkit-menu-bar-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep

Вложенные файлы

README.md

FAQ

Что делает скилл appkit-menu-bar-builder?

Generate NSMenu and NSStatusItem configurations for macOS menu bar applications

Как установить скилл appkit-menu-bar-builder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл appkit-menu-bar-builder запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить appkit-menu-bar-builder с