Skip to content

nanocoai/nanoclaw / .claude/skills/add-whatsapp

add-whatsapp

Verified

Add WhatsApp channel via native Baileys adapter. Direct connection — no Chat SDK bridge. Uses QR code or pairing code for authentication.

FileKindSize
REMOVE.mdmarkdown1.8 KB
SKILL.mdskill md27.3 KB
apply-fixtures.jsonconfig1.9 KB
scripts/wa-qr-browser.tsscript7.8 KB
# Remove WhatsApp

Every step is idempotent — safe to re-run.

## 1. Remove the adapter

Delete the self-registration import from `src/channels/index.ts` (skip if already gone):

```typescript
import './whatsapp.js';
```

Then delete the copied adapter, its registration test, its unit test, and the
`whatsapp-formatting` container skill (part of the channel payload — trunk
doesn't ship it):

```bash
rm -f src/channels/whatsapp.ts src/channels/whatsapp-registration.test.ts src/channels/whatsapp.test.ts
rm -rf container/skills/whatsapp-formatting
```

## 2. Remove the setup steps

Delete these entries from the `STEPS` map in `setup/index.ts` (skip lines already gone):

```typescript
groups: () => import('./groups.js'),
'whatsapp-auth': () => import('./whatsapp-auth.js'),
```

> Keep `groups: ...` if another installed channel relies on the `groups` setup step. Only the `'whatsapp-auth':` entry is WhatsApp-specific.

Then delete the copied setup step files:

```bash
rm -f setup/whatsapp-auth.ts
```

> Keep `setup/groups.ts` if another installed channel relies on it.

## 3. Remove credentials

Remove `ASSISTANT_HAS_OWN_NUMBER` and `ASSISTANT_NAME` from `.env`.

## 4. Remove the packages

```bash
pnpm uninstall @whiskeysockets/baileys qrcode @types/qrcode pino
```

## 5. Rebuild and restart

```bash
pnpm run build
source setup/lib/install-slug.sh
launchctl kickstart -k gui/$(id -u)/$(launchd_label)  # macOS
# Linux: systemctl --user restart $(systemd_unit)
```

## 6. Remove auth state (optional)

To fully remove the linked-device authentication and session state:

```bash
rm -rf store/auth/
```

> **Warning:** This unlinks the device. Re-installing WhatsApp requires re-pairing from your phone via QR or pairing code (see SKILL.md Credentials).

To keep the linked device for a later reinstall, leave `store/auth/` intact.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall