跳到正文
Skillpedia
邮件与消息7.4k · #13256

whatsapp

它能做什么

这个技能把 WhatsApp 请求分配给合适的工具:历史记录使用只读的本地归档,实时账户使用关联设备的工具。适合想搜索 WhatsApp 历史或管理消息的人。

适用场景

  • ✓你想从电脑上搜索或阅读旧的 WhatsApp 消息的时候。
  • ✓你想使用第二个已关联的 WhatsApp 账户的时候。
  • ✓在你明确要求之后,你想发送消息或更改聊天的时候。

技能链接

https://github.com/steipete/agent-scripts/blob/main/skills/whatsapp/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/steipete/agent-scripts/blob/main/skills/whatsapp/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的 WhatsApp 桌面版历史记录中搜索我们讨论租约的那条消息。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用只读的归档工具查询历史和搜索,仅在实时操作时使用已关联账户的工具。除非你明确要求,它绝不会发送消息或更改聊天。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

WhatsApp

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; run wacrawl sync when asked or when current data matters.
  • Alt accounts such as me, molty, or named stores: use wacli --account NAME.
  • Sending, reactions, presence, archive/pin/mute/mark-read, group/channel mutations: use wacli only after explicit user intent.
  • Comparing coverage between sources: treat wacrawl as Desktop archive truth for primary history, and wacli as linked-device/live coverage with protocol limits.

Safety

  • Never send or mutate WhatsApp state unless explicitly requested.
  • Prefer read-only wacli commands for inspection: pass --read-only or set WACLI_READONLY=1.
  • Do not write into WhatsApp Desktop's app container.
  • Do not edit wacli session.db directly.
  • Keep named wacli accounts 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_id when 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/wacrawl and ~/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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能