add-macos-statusbar
microsoft/amplifier-app-nanoclaw/.claude/skills/add-macos-statusbar/SKILL.md
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
Skill4 starsChanged 4 months ago
What's in it
- Add macOS Menu Bar Status Indicator
- Phase 1: Pre-flight
- Check platform
- Check for swiftc
- Check if already installed
- Phase 2: Compile and Install
- Compile the Swift binary
- Create the launchd plist
- Load the service
- Phase 3: Verify
- Removal
---
name: add-macos-statusbar
description: Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
---
# Add macOS Menu Bar Status Indicator
Adds a persistent menu bar icon that shows NanoClaw's running status and lets the user
start, stop, or restart the service — similar to how Docker Desktop appears in the menu bar.
**macOS only.** Requires Xcode Command Line Tools (`swiftc`).
## Phase 1: Pre-flight
### Check platform
If not on macOS, stop and tell the user:
> This skill is macOS only. The menu bar status indicator uses AppKit and requires `swiftc` (Xcode Command Line Tools).
### Check for swiftc
```bash
which swiftc
```
If not found, tell the user:
> Xcode Command Line Tools are required. Install them by running:
>
> ```bash
> xcode-select --install
> ```
>
> Then re-run `/add-macos-statusbar`.
### Check if already installed
```bash
launchctl list | grep com.nanoclaw.statusbar
```
If it returns a PID (not `-`), tell the user it's already installed and skip to Phase 3 (Verify).
## Phase 2: Compile and Install
### Compile the Swift binary
The source lives in the skill directory. Compile it into `dist/`:
```bash
mkdir -p dist
swiftc -O -o dist/statusbar "${CLAUDE_SKILL_DIR}/add/src/statusbar.swift"
```
This produces a small native binary at `dist/statusbar`.
On macOS Sequoia or later, clear the quarantine attribute so the binary can run:
```bash
xattr -cr dist/statusbar
```
### Create the launchd plist
Determine the absolute project root and home directory:
```bash
pwd
echo $HOME
```
Create `~/Library/LaunchAgents/com.nanoclaw.statusbar.plist`, substituting the actual values
for `{PROJECT_ROOT}` and `{HOME}`:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.nanoclaw.statusbar</string>
<key>ProgramArguments</key>
<array>
<string>{PROJECT_ROOT}/dist/statusbar</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>EnvironmentVariables</key>
<dict>
<key>HOME</key>
<string>{HOME}</string>
</dict>
<key>StandardOutPath</key>
<string>{PROJECT_ROOT}/logs/statusbar.log</string>
<key>StandardErrorPath</key>
<string>{PROJECT_ROOT}/logs/statusbar.error.log</string>
</dict>
</plist>
```
### Load the service
```bash
launchctl load ~/Library/LaunchAgents/com.nanoclaw.statusbar.plist
```
## Phase 3: Verify
```bash
launchctl list | grep com.nanoclaw.statusbar
```
The first column should show a PID (not `-`).
Tell the user:
> The bolt icon should now appear in your macOS menu bar. Click it to see NanoClaw's status and control the service.
>
> - **Green dot** — NanoClaw is running
> - **Red dot** — NanoClaw is stopped
>
> Use **Restart** after making code changes, and **View Logs** to open the log file directly.
## Removal
```bash
launchctl unload ~/Library/LaunchAgents/com.nanoclaw.statusbar.plist
rm ~/Library/LaunchAgents/com.nanoclaw.statusbar.plist
rm dist/statusbar
```
More agent context in microsoft/amplifier-app-nanoclaw
51 other files this repository gives its agents.
CLAUDE.md
Skill
- add-amplifier-agent.claude/skills/add-amplifier-agent/SKILL.md
- add-atomic-chat-tool.claude/skills/add-atomic-chat-tool/SKILL.md
- add-codex.claude/skills/add-codex/SKILL.md
- add-dashboard.claude/skills/add-dashboard/SKILL.md
- add-deltachat.claude/skills/add-deltachat/SKILL.md
- add-discord.claude/skills/add-discord/SKILL.md
- add-emacs.claude/skills/add-emacs/SKILL.md
- add-gcal-tool.claude/skills/add-gcal-tool/SKILL.md
- add-gchat.claude/skills/add-gchat/SKILL.md
- add-github.claude/skills/add-github/SKILL.md
- add-gmail-tool.claude/skills/add-gmail-tool/SKILL.md
- add-imessage.claude/skills/add-imessage/SKILL.md
- add-karpathy-llm-wiki.claude/skills/add-karpathy-llm-wiki/SKILL.md
- add-linear.claude/skills/add-linear/SKILL.md
- add-matrix.claude/skills/add-matrix/SKILL.md
- add-mnemon.claude/skills/add-mnemon/SKILL.md
- add-ollama-provider.claude/skills/add-ollama-provider/SKILL.md
- add-ollama-tool.claude/skills/add-ollama-tool/SKILL.md
- add-opencode.claude/skills/add-opencode/SKILL.md
- add-parallel.claude/skills/add-parallel/SKILL.md
- add-resend.claude/skills/add-resend/SKILL.md
- add-rtk.claude/skills/add-rtk/SKILL.md
- add-signal.claude/skills/add-signal/SKILL.md
- add-slack.claude/skills/add-slack/SKILL.md
- add-teams.claude/skills/add-teams/SKILL.md
- add-telegram.claude/skills/add-telegram/SKILL.md
- add-vercel.claude/skills/add-vercel/SKILL.md
- add-webex.claude/skills/add-webex/SKILL.md
- add-wechat.claude/skills/add-wechat/SKILL.md
- add-whatsapp-cloud.claude/skills/add-whatsapp-cloud/SKILL.md
- add-whatsapp.claude/skills/add-whatsapp/SKILL.md
- claw.claude/skills/claw/SKILL.md
- convert-to-apple-container.claude/skills/convert-to-apple-container/SKILL.md
- customize.claude/skills/customize/SKILL.md
- debug.claude/skills/debug/SKILL.md
- get-qodo-rules.claude/skills/get-qodo-rules/SKILL.md
- init-first-agent.claude/skills/init-first-agent/SKILL.md
- init-onecli.claude/skills/init-onecli/SKILL.md
- manage-channels.claude/skills/manage-channels/SKILL.md
- manage-mounts.claude/skills/manage-mounts/SKILL.md
- migrate-from-openclaw.claude/skills/migrate-from-openclaw/SKILL.md
- migrate-from-v1.claude/skills/migrate-from-v1/SKILL.md
- migrate-nanoclaw.claude/skills/migrate-nanoclaw/SKILL.md
- qodo-pr-resolver.claude/skills/qodo-pr-resolver/SKILL.md
- setup.claude/skills/setup/SKILL.md
- update-nanoclaw.claude/skills/update-nanoclaw/SKILL.md
- update-skills.claude/skills/update-skills/SKILL.md
- use-native-credential-proxy.claude/skills/use-native-credential-proxy/SKILL.md
- x-integration.claude/skills/x-integration/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

