Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

docs(ops-inbox): correct whatsmeow naming + add archive_chat tool docs

Aurora Capital2fc06bbaf832
diff --git a/claude-ops/skills/ops-inbox/SKILL.md b/claude-ops/skills/ops-inbox/SKILL.md
index 6b078a90..95f2b99c 100644
--- a/claude-ops/skills/ops-inbox/SKILL.md
+++ b/claude-ops/skills/ops-inbox/SKILL.md
@@ -1,6 +1,6 @@
---
name: ops-inbox
-description: Full inbox management across all channels — WhatsApp (Baileys bridge via mcp__whatsapp__*), Email (Gmail MCP), Slack (MCP), Telegram (user-auth MCP), Discord (webhook + REST read), Notion (MCP — comments, mentions, assigned tasks). Scans FULL inbox (not just unread), identifies messages needing replies, archives handled conversations.
+description: Full inbox management across all channels — WhatsApp (whatsmeow bridge via mcp__whatsapp__*), Email (Gmail MCP), Slack (MCP), Telegram (user-auth MCP), Discord (webhook + REST read), Notion (MCP — comments, mentions, assigned tasks). Scans FULL inbox (not just unread), identifies messages needing replies, archives handled conversations.
argument-hint: "[channel: whatsapp|email|slack|telegram|discord|notion|all]"
allowed-tools:
- Bash
@@ -36,6 +36,8 @@ allowed-tools:
- mcp__whatsapp__send_message
- mcp__whatsapp__get_chat
- mcp__whatsapp__get_message_context
+ - mcp__whatsapp__archive_chat
+ - mcp__whatsapp__resync_app_state
effort: high
maxTurns: 60
---
@@ -44,7 +46,7 @@ maxTurns: 60
## ⚠️ WHATSAPP TRANSPORT — MCP ONLY, NEVER `wacli`
-For **all** WhatsApp operations in this skill (list chats, read messages, search contacts, send replies), use the `mcp__whatsapp__*` tool family backed by the Baileys whatsapp-bridge.
+For **all** WhatsApp operations in this skill (list chats, read messages, search contacts, send replies, archive chats), use the `mcp__whatsapp__*` tool family backed by the whatsmeow (Go) whatsapp-bridge — upstream `lharries/whatsapp-mcp`. (Earlier docs misnamed this as "Baileys" — Baileys is the Node.js WhatsApp library; this bridge uses `go.mau.fi/whatsmeow`.)
**NEVER call the legacy `wacli` CLI** (`wacli chats list`, `wacli messages list`, `wacli send`, `wacli doctor`, `wacli history backfill`, etc). The wacli store and keepalive daemon are deprecated for this skill.
@@ -102,6 +104,18 @@ If bridge is not running: `launchctl kickstart -k gui/$UID/com.<user>.whatsapp-b
| `mcp__whatsapp__send_message` | `{recipient, message}` | Send result |
| `mcp__whatsapp__get_chat` | `{chat_jid}` | Chat metadata |
| `mcp__whatsapp__get_message_context` | `{chat_jid, message_id}` | Message context window |
+| `mcp__whatsapp__archive_chat` | `{chat_jid, archive: true}` | Archive (or unarchive with `archive: false`) a chat — sends app-state mutation via whatsmeow |
+| `mcp__whatsapp__resync_app_state` | `{name: "regular_low", full_sync: true}` | Force full app-state resync — run when archive fails with `LTHash mismatch` (server/local desync) |
+
+**Bulk archive non-actionable WA chats** — for newsletters, dead group chats, one-word reactions, etc.:
+```bash
+for jid in "<NEWSLETTER_JID>@newsletter" "<GROUP_JID>@g.us" "<CONTACT_PHONE>@s.whatsapp.net"; do
+ curl -s -X POST http://localhost:8080/api/archive \
+ -H 'Content-Type: application/json' \
+ -d "{\"chat_jid\":\"$jid\",\"archive\":true}"
+done
+```
+If you get `409 conflict / LTHash mismatch`, run resync first: `curl -s -X POST http://localhost:8080/api/resync_app_state -d '{"name":"regular_low","full_sync":true}'`.
**Full-text search** — use `mcp__whatsapp__list_messages` with a `query` param (backed by FTS5 after running `scripts/whatsapp-bridge-migrate.sh`):
```bash
@@ -115,7 +129,7 @@ sqlite3 "$DB" "SELECT chat_jid, sender, content, timestamp FROM messages WHERE r
sqlite3 "$DB" "SELECT jid, name, phone FROM contacts WHERE name LIKE '%<name>%' COLLATE NOCASE LIMIT 10;"
```
-**History backfill** — the Baileys bridge automatically syncs history on connection. No manual backfill command exists; if messages are missing, restart the bridge:
+**History backfill** — the whatsmeow bridge automatically syncs history on connection. No manual backfill command exists; if messages are missing, restart the bridge:
```bash
launchctl kickstart -k gui/$UID/com.<user>.whatsapp-bridge
```
@@ -309,7 +323,7 @@ If only 3 channels are configured, "All channels" + 3 channel options = 4, fits
6. Classify each chat:
- **NEEDS REPLY**: Last message has `is_from_me: false` (they sent last)
- **WAITING**: Last message has `is_from_me: true` (you sent last)
- - **ARCHIVE**: Old conversation, no recent activity, or concluded
+ - **ARCHIVE**: Newsletters (`@newsletter` JIDs), dead group chats with no recent activity, one-word reactions, or concluded conversations. Bulk-archive these via `mcp__whatsapp__archive_chat {chat_jid, archive: true}` after user confirmation. If the call fails with `LTHash mismatch`, run `mcp__whatsapp__resync_app_state {name: "regular_low", full_sync: true}` first, then retry.
**Phase 2 — Build context for NEEDS REPLY chats (run in parallel):**
For each NEEDS REPLY chat:
diff --git a/claude-ops/skills/setup/SKILL.md b/claude-ops/skills/setup/SKILL.md
index 1f1aa52a..1fd0a52a 100644
--- a/claude-ops/skills/setup/SKILL.md
+++ b/claude-ops/skills/setup/SKILL.md
@@ -1168,7 +1168,7 @@ Sub-flow (only runs if user selected Yes above):
### 3b — WhatsApp (bridge health + QR pair)
-WhatsApp is handled exclusively by the Baileys `whatsapp-bridge` (managed by `com.<user>.whatsapp-bridge` LaunchAgent) and accessed via `mcp__whatsapp__*` tools.
+WhatsApp is handled exclusively by the whatsmeow `whatsapp-bridge` (managed by `com.<user>.whatsapp-bridge` LaunchAgent) and accessed via `mcp__whatsapp__*` tools.
#### Step 3b.1 — Presence
@@ -1183,8 +1183,8 @@ lsof -i :8080 2>/dev/null | grep LISTEN
If binary missing: ask `AskUserQuestion`: `[Show install docs]`, `[Skip WhatsApp]`. On install docs, print:
```
-whatsapp-bridge (Baileys) is not installed. Install:
- git clone https://github.com/your-org/whatsapp-mcp ~/.local/share/whatsapp-mcp
+whatsapp-bridge (whatsmeow) is not installed. Install:
+ git clone https://github.com/lharries/whatsapp-mcp ~/.local/share/whatsapp-mcp
cd ~/.local/share/whatsapp-mcp/whatsapp-bridge && go build -o whatsapp-bridge .
mkdir -p ~/.local/share/whatsapp-mcp/whatsapp-bridge/logs
```