Send and receive WhatsApp messages via the unofficial linked-device client pywhats (pip install pywhats) — pair with QR, send text/images, group chat, read…
Skill by sanjay3290
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sanjay3290-whatsapp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/whatsapp
What's inside
- Skill name
whatsapp- Description
- Send and receive WhatsApp messages via the unofficial linked-device client pywhats (pip install pywhats) — pair with QR, send text/images, group chat, read receipts, presence/typing, and a long-running JSON event stream. Use when the user wants to script WhatsApp as a linked companion device (like WhatsApp Web), pair a device, send a WhatsApp from Python, or listen for inbound messages. Triggers: 'whatsapp', 'send whatsapp', 'pair whatsapp', 'pywhats', 'linked device', 'whatsapp web client'. NOT the official WhatsApp Business/Cloud API.
- License
- Apache-2.0
- Instructions
- 80 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- README.md
- SKILL.md
- api.md · references/
- _bootstrap.sh · scripts/
- wa.py · scripts/
SKILL.md (first lines)
# WhatsApp (pywhats) Drive a WhatsApp account as a **linked companion device** (like WhatsApp Web) from async Python via [`pywhats`](https://pypi.org/project/pywhats/) (pre-alpha, text/image only). This is an **unofficial** multi-device client — **not** the official WhatsApp Business / Cloud API. CLI entrypoint: `scripts/wa.py` (auto-bootstraps a managed venv on first run). ## Mental model - **Pairing = one-time QR scan.** `wa.py pair` shows an ASCII QR; scan it in WhatsApp → Linked Devices. Credentials persist to `$PYWHATS_HOME/<session>.session` (+ `.signal.db`). - **Resuming = silent.** Later commands reconnect with the same session — no QR. - **JIDs address chats.** Bare phone `15550001234` → `15550001234@s.whatsapp.net`; groups use `...@g.us`. - **Events are how you receive.** `wa.py listen` prints one JSON object per event. ## ⚠️ Never bare-await Client calls inside a handler Event handlers run **inline on the receive loop**. Awaiting `send_*`, `mark_read`, `get_group_info`, `download_media`, etc. inside a handler **deadlocks** the connection. Always `asyncio.create_task(...)`. The `listen` subcommand already does this for `--read`. ## Commands ```bash scripts/wa.py pair # one-time QR pair scripts/wa.py send-text 15550001234 "hello" # 1:1 text scripts/wa.py send-image 15550001234 photo.jpg --caption hi # 1:1 image scripts/wa.py group-info 120363000000000000@g.us # group metadata JSON scripts/wa.py group-send 120363000000000000@g.us "hi all" # group text scripts/wa.py mark-read 15550001234 MSGID [--sender JID] # blue ticks scripts/wa.py presence available # global presence scripts/wa.py typing 15550001234 composing [--media audio] # typing indicator scripts/wa.py listen --read --events message,receipt # JSONL event stream scripts/wa.py --session work send-text 15550001234 "hi" # named session ``` | Command | Behavior | |---------|----------| | `pair` | Fresh link via ASCII QR; idempotent if already paired | | `send-text <to> <text>` | Send 1:1 text; print message id | | `send-image <to> <path> [--caption C]` | Send image (jpg/png/webp, ≤16MB); print id | | `group-info <gid>` | Print group JSON (subject, owner, participants, …) | | `group-send <gid> <text>` | Resolve members then send group text; print id | | `mark-read <chat> <ids...>` | Blue-tick; `--sender` for groups | | `presence <available\|unavailable>` | Global presence | | `typing <to> <composing\|paused>` | Chat presence; optional `--media audio` | | `listen` | Long-running JSON lines; `--read`, `--events`, `--subscribe JID` (required for presence events) | Global: `--session NAME` (default `default`, or env `PYWHATS_SESSION`) — goes **before** the subcommand: `wa.py --session work pair`. ## Sessions / multi-account ``` $PYWHATS_HOME/ # default: ~/.pywhats venv/ # managed Python + pywhats default.session # --session default default.session.signal.db work.session # --session work ``` Override home with `PYWHATS_HOME`. Unpaired / logged-out sessions print a clear message to re-run `wa.py --session <name> pair`. If `pair` reports the device was logged out right after scanning, that is WhatsApp device-churn reaping, not a failure of the skill — the dead session is deleted automatically; follow the recovery steps it prints (remove linked devices, wait 15–20 min, pair once). ## Full reference [references/api.md](references/api.md) — every `Client` method, every event payload, JID construction, and the `download_media` note.
From sanjay3290/ai-skills, Apache-2.0.
More from sanjay3290/ai-skills
- 0.765score
google-chat
sanjay3290
Interact with Google Chat - send, read, edit, delete and react to messages, share images and files, reply in threads, and manage spaces and DMs.
SkillBFreshness: B★ 444Claude Code +9 - 0.707score
atlassian
sanjay3290
Manage Jira issues and Confluence wiki pages in Atlassian Cloud.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
azure-devops
sanjay3290
Manage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
elevenlabs
sanjay3290
Convert documents and text to audio using ElevenLabs text-to-speech.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
gmail
sanjay3290
Interact with Gmail - search emails, read messages, send emails, create drafts, and manage labels.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-calendar
sanjay3290
Interact with Google Calendar - list calendars, view events, create/update/delete events, and find free time.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
apple-container
sanjay3290
Apple's open-source `container` CLI to build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS — no Docker daemon…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
postgres
sanjay3290
Execute read-only SQL queries against multiple PostgreSQL databases.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
telegram
sanjay3290
Send Telegram messages, files, and alerts via bot API; read replies; ask questions with inline buttons and wait for the answer (approve-from-phone).
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-drive
sanjay3290
Interact with Google Drive - search files, find folders, list contents, download files, upload files, create folders, move, copy, rename, and trash files.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-docs
sanjay3290
Interact with Google Docs - create documents, search by title, read content, and edit text.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-sheets
sanjay3290
Read and write Google Sheets spreadsheets - get content, update cells, append rows, fetch specific ranges, search for spreadsheets, and view metadata.
SkillCFreshness: C★ 444Claude Code +9
Signals
- Stars
- 444
- Forks
- 50
- Open issues
- 2
- Last commit (this folder)
- Jul 9, 2026 (3 months ago)
- Last release
- Jul 9, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/sanjay3290/ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sanjay3290
- 0.765score
google-chat
sanjay3290
Interact with Google Chat - send, read, edit, delete and react to messages, share images and files, reply in threads, and manage spaces and DMs.
SkillBFreshness: B★ 444Claude Code +9 - 0.707score
azure-devops
sanjay3290
Manage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
atlassian
sanjay3290
Manage Jira issues and Confluence wiki pages in Atlassian Cloud.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
elevenlabs
sanjay3290
Convert documents and text to audio using ElevenLabs text-to-speech.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
gmail
sanjay3290
Interact with Gmail - search emails, read messages, send emails, create drafts, and manage labels.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
apple-container
sanjay3290
Apple's open-source `container` CLI to build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS — no Docker daemon…
SkillCFreshness: C★ 444Claude Code +9
Cite this page
whatsapp skill. Agent Mart. https://agentmart.dev/skills/sanjay3290-whatsapp (last updated 2026-10-24)