Personal WhatsApp as a linked device (Baileys) — link by QR, mirror chats/contacts/messages into Postgres, read and search them, list group members, and send…
от hyper-code-harness★ 22 звезды на GitHub
Установить whatsapp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
The plugin connects to the user's WhatsApp account as a linked device (like WhatsApp Web) using Baileys.
The session (multi-file auth state) lives in ~/.hyper/whatsapp/auth; it is never returned by functions.
Everything WhatsApp shares with the device (history sync on first link, then live events) is mirrored into the
Postgres schema whatsapp (chats, contacts, messages).
Linking
whatsapp.status({})—status: "open"means linked;"qr"/"loggedOut"means linking is needed.whatsapp.login({})→{ qrPath, qrUrl }. Show the image to the person, e.g.<img src="{qrUrl}">in respondHtml. They scan it in WhatsApp → Settings → Linked devices → Link a device.- QR rotates every ~20 s; call
login({})again for a fresh one. Pollstatus({ waitMs })untilopen. - The plugin pairs using the standard Web profile and accepts supported history batches. WhatsApp decides which chats and messages it delivers. Reconnecting an existing session can receive future sync events; it does not force WhatsApp to resend the initial history.
Read
whatsapp.chats({ query?, groups?, limit? })— chats/groups, most recent first.whatsapp.messages({ chat, limit?, query? })— one chat, oldest→newest;chat= JID, phone or name fragment.whatsapp.search({ query, limit? })— text search across all chats.whatsapp.participants({ chat })— live group members with admin flags.
Requesting older personal messages
whatsapp.requestPersonalHistory({ chat, limit? }) asks the linked phone for up to 50 older messages for an exact personal JID returned by chats. It returns requested when the request was submitted; check the mirror later for results. no_anchor means there is no local message to use as a cursor. Contact-only chats cannot be fetched this way. Do not loop or re-pair automatically; neither option guarantees a complete archive.
Guarded writes
All writes require explicit user approval (ask with input.request({ kind: "confirm" })) and confirm: true:
whatsapp.send({ chat, text, confirm: true })whatsapp.joinGroup({ inviteLink, confirm: true })— withoutconfirmreturns a preview (subject, size).whatsapp.logout({ confirm: true })— unlink this device.
whatsapp.client and whatsapp.resolveChat are internal helpers.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- bun.lock
- package.json
- src/whatsapp/$migration_20291020120000_whatsapp.ts
- src/whatsapp/$route_qr_GET.ts
- src/whatsapp/chats.ts
- src/whatsapp/client.ts
- src/whatsapp/joinGroup.ts
- src/whatsapp/linked.ts
- src/whatsapp/login.ts
- src/whatsapp/logout.ts
- src/whatsapp/messages.ts
- src/whatsapp/participants.ts
- src/whatsapp/requestPersonalHistory.test.ts
- src/whatsapp/requestPersonalHistory.ts
- src/whatsapp/resolveChat.ts
- src/whatsapp/search.ts
- src/whatsapp/send.ts
- src/whatsapp/status.ts
FAQ
Что делает скилл whatsapp?
Personal WhatsApp as a linked device (Baileys) — link by QR, mirror chats/contacts/messages into Postgres, read and search them, list group members, and send messages or join groups only with confirm: true.
Как установить скилл whatsapp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл whatsapp запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…