它能做什么
这个技能把 WhatsApp 请求分配给合适的工具:历史记录使用只读的本地归档,实时账户使用关联设备的工具。适合想搜索 WhatsApp 历史或管理消息的人。
适用场景
- ✓你想从电脑上搜索或阅读旧的 WhatsApp 消息的时候。
- ✓你想使用第二个已关联的 WhatsApp 账户的时候。
- ✓在你明确要求之后,你想发送消息或更改聊天的时候。
技能链接
https://github.com/steipete/agent-scripts/blob/main/skills/whatsapp/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的 WhatsApp 桌面版历史记录中搜索我们讨论租约的那条消息。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用只读的归档工具查询历史和搜索,仅在实时操作时使用已关联账户的工具。除非你明确要求,它绝不会发送消息或更改聊天。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use this as the first stop for WhatsApp work. Keep the source boundary sharp:
wacrawl: primary WhatsApp Desktop archive. Read-only, best local history, no network, no sending.wacli: linked-device accounts. Use for alt accounts, live sync, auth, sending, chat/group mutation, and WhatsApp Web protocol questions.
If the user names wacrawl or wacli repo work specifically, read that tool's own skill too.
Routing
- Primary WhatsApp reads/search/history: use
wacrawl. - Read/unread counts from WhatsApp Desktop: use
wacrawl; it has chat-level unread counts, not per-message read state. - Freshness-sensitive primary reads: check
wacrawl status; runwacrawl syncwhen asked or when current data matters. - Alt accounts such as
me,molty, or named stores: usewacli --account NAME. - Sending, reactions, presence, archive/pin/mute/mark-read, group/channel mutations: use
waclionly after explicit user intent. - Comparing coverage between sources: treat
wacrawlas Desktop archive truth for primary history, andwaclias linked-device/live coverage with protocol limits.
Safety
- Never send or mutate WhatsApp state unless explicitly requested.
- Prefer read-only
waclicommands for inspection: pass--read-onlyor setWACLI_READONLY=1. - Do not write into WhatsApp Desktop's app container.
- Do not edit
waclisession.dbdirectly. - Keep named
wacliaccounts isolated; do not merge stores. - Report source freshness, account name, and known gaps when answering from local stores.
Common Commands
Primary Archive
Freshness and status:
wacrawl status
wacrawl doctor
wacrawl sync
Unread triage:
wacrawl chats --limit 20
wacrawl unread --limit 20
wacrawl --json unread --limit 100
Search and slice messages:
wacrawl messages --after 2026-01-01 --limit 50
wacrawl messages --chat JID --asc --limit 100
wacrawl messages --has-media --limit 50
wacrawl --json search "query"
wacrawl search "query" --after 2026-01-01 --from-them
Archive media or backups, only when asked:
wacrawl import --copy-media
wacrawl backup status
wacrawl --sync never backup push
Alt/Live Accounts
Account discovery and read-only inspection:
wacli accounts list --json
wacli --account me auth status --read-only --json
wacli --account me chats list --read-only --json
wacli --account me messages list --read-only --json --limit 50
wacli --account me messages search --read-only --json "query"
Background live sync, only when requested. Prefer tmux for follow-mode:
wacli --account me sync --follow --events
wacli --account me sync --once --events
Media, sending, and live mutations, only when explicitly requested:
wacli --account me media download --chat JID --id MESSAGE_ID
wacli --account me send text --to JID_OR_NAME --message "message"
wacli --account me send file --to JID_OR_NAME --file ./file.jpg --caption "caption"
wacli --account me send text --to JID --reply-to MESSAGE_ID --message "reply"
Comparisons
When comparing wacrawl and wacli, compare both counts and overlap:
- message counts and date spans
- chat counts
- newest message timestamp
- overlap by
msg_id - overlap by
chat_jid + msg_idwhen JIDs are normalized enough - obvious gaps explained by linked-device history limits vs Desktop archive coverage
Repo Pointers
~/Projects/wacrawl: Desktop archive importer/search/backup.~/Projects/wacli: linked-device client/sync/send.- Global skill copies:
~/Projects/agent-scripts/skills/wacrawland~/Projects/agent-scripts/skills/wacli.
常见问题
它会自行发送消息吗?
不会。只有在你明确要求之后,才会发送消息或更改聊天。
历史记录使用哪个数据来源?
WhatsApp Desktop 应用的只读归档。
它能使用一个以上的账户吗?
可以。可以按名称使用其他已关联的账户。
详情
作者的原始描述
WhatsApp router: history/search/read/send; wacrawl read, wacli live.
repo: steipete/agent-scripts
热度
- GitHub 星标
- 7.4k
- 排名
- #13256
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
beeper
7.4k帮你的智能体搜索本地 Beeper 聊天记录,找到消息,并判断模糊线索指的是哪个聊天或联系人。
cloudflare-registrar
7.4k帮你的智能体查询 Cloudflare Registrar 的域名价格和可用性,并在确认后注册或列出域名。
codexbar
7.4k帮你的智能体查看你在 Codex、Claude、Kimi 等 AI 服务中还剩多少用量,包括限额、额度和重置时间。
create-cli
7.4k帮你的智能体设计命令行工具的命令、参数、帮助文本、输出和错误提示,让人和脚本都能顺利使用。