📦 WeChat — 微信
v0.4.0Desktop Sender Windows 微信桌面端自动化:打开聊天、搜索联系人或群组、发送消息。在用户需要打开 微信桌面端 时使用。
0· 25·0 当前·0 累计
下载技能包
最后更新
2026/4/19
安全扫描
OpenClaw
安全
high confidence该包内部一致:它自动化 Windows 版 WeChat 桌面 UI,无需凭据或外部端点,文件与说明均与此目的一致。
评估建议
This skill appears to be what it says: desktop UI automation for Windows WeChat. Before installing/running it, consider: (1) it manipulates your clipboard (pyperclip) and will overwrite whatever is there — don't run while you need clipboard data; (2) it can capture screenshots and save logs that include message text and recipient names (wechat_automation_logs/) — treat those files as sensitive; (3) OCR and screenshots use Pillow/pytesseract and capture the full screen, so overlapping windows cou...详细分析 ▾
✓ 用途与能力
Name/description, SKILL.md, and the included Python scripts all describe and implement desktop UI automation for WeChat (open app, search chat, paste/send messages, verify). The declared requirements (none) and the actual code (pywinauto, pyperclip, psutil, optional Pillow/pytesseract) are coherent with the stated purpose — nothing requests unrelated cloud credentials, system configs, or network endpoints.
ℹ 指令范围
Runtime instructions and code stay within desktop automation scope: starting/connecting to WeChat.exe, locating UI controls, copying text to the clipboard, sending Enter to send messages, collecting window texts, optionally taking screenshots and running local OCR. However, these behaviors carry privacy implications: screenshots (ImageGrab.grab()) capture the full screen, logs and control-tree dumps may contain message/recipient text, and pyperclip.copy() overwrites the clipboard. These actions are expected for verification/debugging but users should be aware they can capture sensitive local content.
✓ 安装机制
No automated install spec is provided (instruction-only install); SKILL.md suggests pip-installing well-known Python packages. That is low-risk compared with remote download/extract installs. The skill does not automatically fetch or execute code from arbitrary URLs.
✓ 凭证需求
The skill requests no environment variables, no credentials, and no config paths. All file access is user-supplied (contacts CSV/JSON) or local log/screenshot output under wechat_automation_logs/. This is proportionate to the stated purpose.
✓ 持久化与权限
Skill flags are typical (not always: true). The skill does not request permanent platform presence, does not modify other skills or global agent settings, and does not store secrets. It operates only when the user runs the scripts.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv0.4.02026/4/19
为 CSV/JSON 收件人列表添加 template-variable 活动工作流,以及渲染消息跟踪和示例模板数据集。
● 无害
安装命令
点击复制官方npx clawhub@latest install wechat-desktop-sender
镜像加速npx clawhub@latest install wechat-desktop-sender --registry https://cn.longxiaskill.com
技能文档
用于 Windows 微信桌面端发消息 流程。
本技能提供
打包脚本:scripts/wechat_send.py—— 正式单发入口scripts/wechat_send_hello.py—— 核心实现(打开微信、搜索聊天、发送、验证)scripts/wechat_send_batch.py—— 串行批量发送给多个联系人/群聊scripts/wechat_send_campaign.py—— 个性化串行发送(每人不同内容)scripts/wechat_send_template_campaign.py—— 模板变量发送(同一模板,不同行值)
快速开始
安装依赖: ``bash
pip install pywinauto pyperclip psutil pywin32 pillow pytesseract
`
pytesseract可选,仅当需要 OCR 验证时安装。
单发
`bash
python scripts/wechat_send.py --to "文件传输助手" --message "你好"
`
常用参数:
`bash
python scripts/wechat_send.py --to "李义" --message "我是龙虾Koi,打个招呼。" --verify-title
python scripts/wechat_send.py --to "文件传输助手" --message "OCR测试" --ocr-verify
` 串行批量发送
`bash
python scripts/wechat_send_batch.py --to "张三,李四,文件传输助手" --message "晚上 8 点开会"
`
或从文件:
`bash
python scripts/wechat_send_batch.py --contacts-file contacts.txt --message "晚上 8 点开会"
` 个性化发送
`bash
python scripts/wechat_send_campaign.py --csv contacts_messages.csv --verify-title
python scripts/wechat_send_campaign.py --json contacts_messages.json --verify-title
` 模板变量发送
`bash
python scripts/wechat_send_template_campaign.py --csv template_contacts.csv --template "{name}你好,我是Koi,关于{company}这边和你打个招呼。" --verify-title
` 推荐流程
- 确保已登录微信桌面端
- 先用“文件传输助手”测试
- 单发用于单个联系人/群聊
- 批量发送用于串行触达
查看wechat_automation_logs/日志与汇总
验证机制
当前验证层级:
- 成功定位 UI 元素
- 消息已通过输入框发出
- 窗口文本验证消息是否出现在当前微信窗口
可选 OCR 验证(启用--ocr-verify且已装 OCR 依赖)
视为实用桌面自动化,非加密级送达保证。 边界
未扩展前请勿声称支持:
- 朋友圈抓取
- 可靠历史消息转发
- 多窗口真并行发送
- 完整桌面社交图谱提取
文件与输出
默认日志目录:
`text
wechat_automation_logs/
`
输出可能含:
- 运行日志
- 失败截图
- 控件树 dump
- 批量汇总 JSON
OpenClaw 工作流用法
安装后,用户可用自然语言表达意图,agent 自动路由到对应脚本:
- “给张三发一句话:今晚 8 点开会” → 单发
- “给这 20 个人发同一条消息” → 批量发送
- “按这份名单分别发不同文案” → 个性化发送
- “按这份名单套一个模板变量群发” → 模板变量发送
首选操作模式:
- 归一化收件人列表与消息载荷
一人一条 →scripts/wechat_send.py多人同内容 →scripts/wechat_send_batch.py多人不同内容 →scripts/wechat_send_campaign.py多人共用模板,每行字段不同 →scripts/wechat_send_template_campaign.py- 向用户报告成功数、验证数、重试建议及日志/汇总路径
了解更多
详细 CLI 用法与参数见:
references/single-send.mdreferences/batch-send.mdreferences/personalized-send.mdreferences/template-send.md`