/wa:whatsapp [chat name or JID] [what to do]from wa
Read, search and watch WhatsApp chats and groups on this Mac with the read-only wa CLI, and save the attachments of a chat. Use it when the user asks what a WhatsApp chat said or asks to find a WhatsApp message. Use it to wait for new WhatsApp messages. Use it to download the photos, videos, audio or documents of a WhatsApp chat or group. It reads only chats on the user's allowlist. Never read WhatsApp data any other way.
Ships in wa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
All work goes through one command: wa. The plugin puts it on PATH.
wa call downloads the binary for this plugin version, then checks its SHA-256 sum.wa only. Never open ChatStorage.sqlite, ContactsV2.sqlite, LID.sqlite or the Message/Media folder with sqlite3, python, cat or cp. The allowlist lives inside wa. Direct access skips it.wa allow --match "<name>" for the chat they named, and say what you allowed. With more than one match it exits 2 and lists them; allow one by JID.
wa allow --all opens every chat, now and in the future. It is the normal setup for daily use. Run it when the user wants their whole WhatsApp readable. wa disallow --all closes it again.wa media never overwrites. Do not tidy up its folders.--remote all. It asks the user's phone through a linked device. That breaks WhatsApp's terms. Ask in the same turn, every time.wa prints.Run wa doctor. Each line starts with ok, warn or FAIL.
| Line | Meaning | Action |
|---|---|---|
FAIL schema … schema drift | A WhatsApp Desktop update changed its data | Stop. Report the missing columns. wa needs a code update. |
FAIL data … open WhatsApp Desktop, then retry | SQLite needs a recovery that only the app can do | Ask the user to open WhatsApp Desktop. |
warn app … not running | New messages do not reach this Mac | Tell the user if they wait for messages. |
warn allowlist … no chat allowed | No chat is readable | Ask the user which chat to allow, then run wa allow --match "<name>". |
warn allowlist … every chat is readable | Allow-all is on | Say so once. Every chat can now enter this session. |
wa: cannot download … | The release download failed | Report the message. Ask the user to check their network, then retry once. |
ok sending … not set up | No linked device yet | Only matters for sending. Section 7 sets it up. |
warn update … wa X is out | A newer version exists | Run claude plugin marketplace update wa, then claude plugin update wa. Then tell the user to restart Claude Code. |
wa: … does not match the release checksum | The download is not the released binary | Stop. Report it. Do not retry in a loop. |
Run wa chats --match "<part of the name>". It lists allowed chats with a number and a JID. Use the JID in later commands, because a name part can match more than one chat.
| Exit | Meaning | Action |
|---|---|---|
| 0 | ok | Continue. |
| 1 | error | Read the message and report it. |
| 2 | more than one chat matches | Pick the JID from the list, or ask the user. |
| 3 | the chat is not on the allowlist | Ask the user. On a yes, run wa allow --match "<name>". |
wa read <JID> --since 2026-09-13. Without --since it shows the newest 50. Add --full for long messages, --json for fields.wa search "<text>" [--chat <JID>] [--since <date>]. It searches allowed chats only.YYYY-MM-DD, RFC 3339, or an age such as 36h or 7d.[2026-09-14 11:41 | Ana] see this [file #4242 image 1.2 MB live-link].
me is the user.[system event] is a group event or an app notice, not a message.on-disk, live-link or phone-only.wa media <chat> --dry-run [--since <date>] [--type image,video,audio,document,sticker]. Report the counts.wa media <chat> [--dest <folder>]. The default folder is ~/Downloads/whatsapp. The default --remote live copies files on disk and fetches live CDN links.wa media also works for a chat that is not on the allowlist. It then prints counts only and names files <date>_<number>.<ext>. Do not open those files.
| Unavailable reason | Meaning |
|---|---|
expired-link | Only the phone still has the file. |
no-link | No link and no local file. |
phone-fetch-not-set-up | Someone used --remote all, but the phone path does not exist yet. |
remote-disabled | A live link exists, but the run used --remote none. |
fetch-failed, http-NNN | The CDN request failed. Try again later. |
size-mismatch, key-unreadable | The download did not match the database. Report it. |
unreadable-on-disk, changed-while-copying | wa cannot read WhatsApp's local file, or the file changed during the copy. Run again. |
bad MAC and too large (over 100 MiB) also appear in the summary. Open a saved file for the user with open <path> only when they ask. Never read an image into this session unless they ask.
wa watch --state ~/.local/share/wa/watch-<topic>.json --seed.wa watch --state <same file> --wait 540 --poll 15 [--chat <JID>]... with run_in_background: true. The session gets a notification when it ends.(no new messages) after 540 seconds.(N new messages in chats not on the allowlist). Do not try to read them.--chat <JID> then, or the watcher wakes on any message.[wa-warn] WhatsApp Desktop is not running: tell the user.[wa-warn] no usable state: wa restarted from the newest message. It skipped the messages since the last run. Say so.wa watch in the foreground. Each foreground call fills the context with nothing.This is the most common job: hold one group's photos, videos and documents on disk.
wa chats --match "<group>". Use the JID from now on.wa media <JID> --dry-run first, report the counts, then wa media <JID> [--type image,video] [--dest <folder>].wa watch --state ~/.local/share/wa/watch-<group>.json --seed.wa watch --state <same file> --chat <JID> --wait 540 --poll 15 with run_in_background: true.[file …] tag, run wa media <JID> again. It saves only the new files.--chat <JID>. With allow-all on, any chat ends the wait otherwise.phone-only. The summary then says what is unavailable and why.Reading is read-only. Sending goes through a linked device and breaks WhatsApp's terms, so it works differently.
Set it up (once). wa doctor says ok sending not set up until then.
wa link. It installs wacli, checks its checksum, and prints a QR code.wa link --status. It says sending is ready when the phone is paired.wa unlink logs the device out again.The scan is the one step the user must do themselves.
wa send <JID> "<text>". Without --yes this only prints the message.wa send <JID> "<text>" --yes.wa send <JID> --file <path> [--caption "<text>"] --yes.wa refuses a chat that never wrote to the user, more than 50 messages a day, the same text to more than 2 chats, and any send during a ban. Report the refusal; never work around it.wa: … temporary ban … means WhatsApp stopped the number. Tell the user the time it ends. Do not retry.wa: wacli is not linked means the device was logged out. The user pairs again in their own terminal.wa sees only what WhatsApp Desktop on this Mac has synced. The app must run for new messages to arrive.wa cannot get those yet.wa. wa doctor names the missing columns.wa watch does not report edited or deleted messages.wa prints enters this session and goes to Anthropic. The allowlist is the control.https://github.com/scastillo/wa (private).~/.config/wa/policy.json. Change it only with wa allow and wa disallow.~/.local/share/wa/bin/.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub scastillo/wa --plugin wa