用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/marktoda/everclaw --skill add-channel-whatsapp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-channel-whatsapp |
| description | Set up WhatsApp as a messaging channel — QR code authentication, configuration, and verification |
Walk the user through connecting WhatsApp to everclaw via Baileys (QR code auth). This skill is standalone — run it from /setup or anytime to add WhatsApp.
Work through each phase in order. Use TaskCreate to track progress. Be autonomous: detect what's already done, only ask questions when a real choice is needed. Use the Read and Edit tools to modify .env.
Check .env exists in the project root. If not, tell the user to run /setup first and stop.
Read .env and check if CHANNEL_WHATSAPP is already set.
AskUserQuestion:
WhatsApp is already configured (
CHANNEL_WHATSAPPis set in.env). What would you like to do?
- Keep it — Skip to verification
- Reconfigure — Set up from scratch (will need to re-scan QR code)
data/auth/whatsapp/ to clear the old session before proceeding.WhatsApp uses QR code authentication — no API token needed. The setup is simpler than token-based channels, but requires an interactive step after the bot starts.
Append CHANNEL_WHATSAPP=1 to .env using the Edit tool. If reconfiguring, replace the existing line.
Ensure the auth directory exists:
mkdir -p data/auth/whatsapp
Tell the user:
WhatsApp uses QR code authentication. After restarting the bot, a QR code will be printed in the terminal. You'll scan it with your phone to link the bot to your WhatsApp account.
Important: This links the bot to your personal WhatsApp. Messages sent to your WhatsApp number will be processed by the bot. The bot only handles direct messages (not group chats).
This phase combines restart with the interactive QR scan.
Detect the deployment method:
docker-compose.yml exists in the project root.docker compose up --build — you need to see the terminal output for the QR code."node src/index.ts."Important for Docker users: They need to run in foreground (docker compose up, not -d) to see the QR code in the terminal.
Walk the user through the QR scan:
After starting the bot, watch the terminal for a QR code. Then:
- Open WhatsApp on your phone
- Go to Settings → Linked Devices → Link a Device
- Scan the QR code shown in the terminal
- Wait for the log message:
WhatsApp connectedThe session is saved to
data/auth/whatsapp/— you won't need to scan again unless you log out or delete that directory.
Use AskUserQuestion to confirm:
Did you see "WhatsApp connected" in the logs?
- Yes — Continue
- No, I see an error — Help me troubleshoot
If troubleshooting:
data/auth/whatsapp/ and restartCheck if ALLOWED_CHAT_IDS is already configured in .env (uncommented and non-empty).
Walk the user through discovery:
whatsapp:15551234567 (your phone number with country code). Copy this value."AskUserQuestion to collect the chat ID.Edit tool to set or append the chat ID in ALLOWED_CHAT_IDS in .env (comma-separated if other IDs exist). If the line is commented out, uncomment and set it.After updating, tell the user to restart again. The QR scan is not needed this time — the session persists.
ALLOWED_CHAT_IDS contains the right prefixed IDTell the user they can add more channels later with /add-channel-telegram, /add-channel-discord, /add-channel-slack, or /add-channel-gmail.