wacli
它能做什么
这项技能让 AI 向你指定的人发送 WhatsApp 消息,或搜索你过往的 WhatsApp 记录。适合希望获得帮助、在 WhatsApp 上联系他人的人。
适用场景
- ✓当你明确要求智能体向 WhatsApp 上的某个特定的人发送消息时。
- ✓当你想搜索或同步你的 WhatsApp 消息记录时。
- ✓当你想向某位 WhatsApp 联系人发送文件或议程的时候。
技能链接
https://github.com/spinabot/brigade/blob/main/skills/wacli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在你确认消息内容之后,通过 WhatsApp 给 Priya 发消息,告诉她我会晚五分钟到。”
每周 5 个新技能,1 分钟读完。
工作原理
一旦你给出明确的收件人和消息内容,AI 就会运行 wacli 命令行工具。发送之前,它会与你确认这两项内容。账户同步之后,它还可以搜索聊天和记录。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wacli
Use wacli only when the user explicitly asks you to message someone else on WhatsApp or when they ask to sync/search WhatsApp history.
Do NOT use wacli for normal user chats; Brigade routes WhatsApp conversations automatically.
If the user is chatting with you on WhatsApp, you should not reach for this tool unless they ask you to contact a third party.
Safety
- Require explicit recipient + message text.
- Confirm recipient + message before sending.
- If anything is ambiguous, ask a clarifying question.
Auth + sync
wacli auth(QR login + initial sync)wacli sync --follow(continuous sync)wacli doctor
Find chats + messages
wacli chats list --limit 20 --query "name or number"wacli messages search "query" --limit 20 --chat <jid>wacli messages search "invoice" --after 2025-01-01 --before 2025-12-31
History backfill
wacli history backfill --chat <jid> --requests 2 --count 50
Send
- Text:
wacli send text --to "+14155551212" --message "Hello! Are you free at 3pm?" - Group:
wacli send text --to "1234567890-123456789@g.us" --message "Running 5 min late." - File:
wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "Agenda"
Notes
- Store dir:
~/.wacli(override with--store). - Use
--jsonfor machine-readable output when parsing. - Backfill requires your phone online; results are best-effort.
- WhatsApp CLI is not needed for routine user chats; it’s for messaging other people.
- JIDs: direct chats look like
<number>@s.whatsapp.net; groups look like<id>@g.us(usewacli chats listto find).
常见问题
它会在未经询问的情况下给别人发消息吗?
不会。该技能要求明确的收件人和消息文本,并会在发送前确认两者。
它用于我与智能体的日常聊天吗?
不是。你在 WhatsApp 上与智能体的对话会自动路由,因此这个工具只用于联系他人。
我需要登录吗?
需要。你先通过二维码登录,然后同步记录。
详情
作者的原始描述
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
repo: spinabot/brigade
热度
- GitHub 星标
- 11k
- 排名
- #11742
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …