This skill helps you manage WhatsApp messaging across multiple accounts by sending, reading, and searching chats via automated sessions.
npx playbooks add skill idanbeck/claude-skills --skill whatsapp-skill
Send messages, read chats, and search WhatsApp via WhatsApp Web automation.
Before sending ANY WhatsApp message, you MUST get explicit user confirmation.
When the user asks to send a message:
cd ~/.claude/skills/whatsapp-skill
npm install
This installs:
whatsapp-web.js - WhatsApp Web automationqrcode-terminal - QR code display for authenticationFirst time requires scanning a QR code with your phone:
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js auth
# Authenticate (scan QR)
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js auth [--session NAME]
# Check status
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js status [--session NAME]
# Logout
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js logout [--session NAME]
# Send to phone number (include country code, no + or spaces)
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js send 14155551234 "Hello!" [--session NAME]
# Send to group
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js send-group GROUP_ID "Hello group!" [--session NAME]
# List recent chats
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js chats [--limit N] [--session NAME]
# Get messages from a chat
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js messages CHAT_ID [--limit N] [--session NAME]
# Search messages
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js search "query" [--session NAME]
# List contacts
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js contacts [--session NAME]
# List groups
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js groups [--session NAME]
Use --session flag for different WhatsApp accounts:
# Personal account
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js auth --session personal
# Work account
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js auth --session work
# Send from specific account
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js send 14155551234 "Hi" --session work
Sessions stored in ~/.claude/skills/whatsapp-skill/sessions/
Always use full international format without + or spaces:
14155551234 (1 = country code)447911123456 (44 = country code)919876543210 (91 = country code)Chat IDs are returned by the chats command:
14155551234@c.us120363123456789012@g.usnode ~/.claude/skills/whatsapp-skill/whatsapp_skill.js send 14155551234 "Meeting at 3pm today?"
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js chats --limit 5
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js messages 14155551234@c.us --limit 10
node ~/.claude/skills/whatsapp-skill/whatsapp_skill.js search "meeting agenda"
All commands output JSON for easy parsing.
~/.claude/skills/whatsapp-skill/sessions/QR code not appearing?
npx puppeteer browsers install chromeAuthentication keeps failing?
Messages not sending?
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.