# Add Macos Statusbar

Add a macOS menu bar status indicator for NanoClaw.

- Repository: https://github.com/nanocoai/nanoclaw (31069 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nanocoai/nanoclaw --skill add-macos-statusbar -g -a claude-code -y`
Codex: `npx skills add nanocoai/nanoclaw --skill add-macos-statusbar -g -a codex -y`
Cursor: `npx skills add nanocoai/nanoclaw --skill add-macos-statusbar -g -a cursor -y`
Gemini CLI: `npx skills add nanocoai/nanoclaw --skill add-macos-statusbar -g -a gemini-cli -y`

## 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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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}`:

The rest: https://github.com/nanocoai/nanoclaw/blob/HEAD/.claude/skills/add-macos-statusbar/SKILL.md
