{"id":"add-macos-statusbar","name":"add-macos-statusbar","summary":"NanoClaw用にmacOSメニューバーのステータスインジケーターを追加してください。NanoClawが稼働中かどうかを示す緑/赤の点がついたボルトアイコンが表示され、スタート、停止、再起動のコントロールがあります。","body":"# Add macOS Menu Bar Status Indicator\n\nAdds a persistent menu bar icon that shows NanoClaw's running status and lets the user\nstart, stop, or restart the service — similar to how Docker Desktop appears in the menu bar.\n\n**macOS only.** Requires Xcode Command Line Tools (`swiftc`).\n\n## Phase 1: Pre-flight\n\n### Check platform\n\nIf not on macOS, stop and tell the user:\n\n> This skill is macOS only. The menu bar status indicator uses AppKit and requires `swiftc` (Xcode Command Line Tools).\n\n### Check for swiftc\n\n```bash\nwhich swiftc\n```\n\nIf not found, tell the user:\n\n> Xcode Command Line Tools are required. Install them by running:\n>\n> ```bash\n> xcode-select --install\n> ```\n>\n> Then re-run `/add-macos-statusbar`.\n\n### Check if already installed\n\n```bash\nlaunchctl list | grep com.nanoclaw.statusbar\n```\n\nIf it returns a PID (not `-`), tell the user it's already installed and skip to Phase 3 (Verify).\n\n## Phase 2: Compile and Install\n\n### Compile the Swift binary\n\nThe source lives in the skill directory. Compile it into `dist/`:\n\n```bash\nmkdir -p dist\nswiftc -O -o dist/statusbar \"${CLAUDE_SKILL_DIR}/add/src/statusbar.swift\"\n```\n\nThis produces a small native binary at `dist/statusbar`.\n\nOn macOS Sequoia or later, clear the quarantine attribute so the binary can run:\n\n```bash\nxattr -cr dist/statusbar\n```\n\n### Create the launchd plist\n\nDetermine the absolute project root and home directory:\n\n```bash\npwd\necho $HOME\n```\n\nCreate `~/Library/LaunchAgents/com.nanoclaw.statusbar.plist`, substituting the actual values\nfor `{PROJECT_ROOT}` and `{HOME}`:\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n    <key>Label</key>\n    <string>com.nanoclaw.statusbar</string>\n    <key>ProgramArguments</key>\n    <array>\n        <string>{PROJECT_ROOT}/dist/statusbar</string>\n    </array>\n    <key>RunAtLoad</key>\n    <true/>\n    <key>KeepAlive</key>\n    <true/>\n    <key>EnvironmentVariables</key>\n    <dict>\n        <key>HOME</key>\n        <string>{HOME}</string>\n    </dict>\n    <key>StandardOutPath</key>\n    <string>{PROJECT_ROOT}/logs/statusbar.log</string>\n    <key>StandardErrorPath</key>\n    <string>{PROJECT_ROOT}/logs/statusbar.error.log</string>\n</dict>\n</plist>\n```\n\n### Load the service\n\n```bash\nlaunchctl load ~/Library/LaunchAgents/com.nanoclaw.statusbar.plist\n```\n\n## Phase 3: Verify\n\n```bash\nlaunchctl list | grep com.nanoclaw.statusbar\n```\n\nThe first column should show a PID (not `-`).\n\nTell the user:\n\n> The bolt icon should now appear in your macOS menu bar. Click it to see NanoClaw's status and control the service.\n>\n> - **Green dot** — NanoClaw is running\n> - **Red dot** — NanoClaw is stopped\n>\n> Use **Restart** after making code changes, and **View Logs** to open the log file directly.\n\nTo uninstall, follow [REMOVE.md](REMOVE.md).","author":"@nanocoai","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/nanocoai/nanoclaw/tree/main/.claude/skills/add-macos-statusbar","license":"MIT","category":"coding","lang":"en","tokens":788,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"add/src/statusbar.swift","size":5262,"sha256":"8e9d0dc5f61f4a768cb2602bb9c985fb8183f4a9cea56da9cf245cbf891e040c"},{"path":"REMOVE.md","size":547,"sha256":"c2d479f449824dcfa1c53ecc0f71be2bef2362934520819df22b0df677933d5d"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":["www.apple.com"]}}