Wechat Assistant For Claude banner
ZHOUCOOKIE ZHOUCOOKIE

Wechat Assistant For Claude

Development community

Description

Claude Skill for automating WeChat replies on Windows desktop via computer-use

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

wechat-assistant-for-claude

一个给 Claude(Claude Code / Cowork mode)使用的 Skill,让 Claude 通过 computer-use 操控 Windows 桌面版微信,在群聊或私聊里帮你发送 / 回复消息。

A Claude Skill that drives the Windows desktop WeChat client via computer-use to send and reply to messages on your behalf. Skill content is in Simplified Chinese because both the target app (微信) and the intended audience are Chinese-speaking.


这个 Skill 能做什么

  • 在指定群聊或私聊中发一条消息
  • 先读最近几条聊天记录,再按照话题、关系和语气生成一条"贴切"的回复
  • 跟进对方的新消息,延续对话

为什么要单独写一个 Skill

桌面版微信没有官方 API,Claude 只能靠"截图 + 视觉识别 + 模拟鼠标键盘"来操作。我在 Windows 上实际跑的时候撞上了一堆具体的坑 —— 中文输入丢字、启动流程里 `Wechatappex` 的假授权错误、`open_application` 误触发"新实例登录"把已登录会话搅乱、进程在跑但 UI 全藏在托盘里找不到、聊天对象错点成"文件传输助手"等等。一个个排查清楚之后把能稳定工作的全流程沉淀进这份 Skill,Claude 下次不用从零再踩一遍。

平台支持

  • Windows — 我本人实测并调通的全流程,只测试了微信 4.1.8.29(Weixin.exe,UI 用 WebView2)
  • macOS / Linux — 我没测过。Wechatappex 假授权之类的 Windows 特有问题在 macOS 上可能根本不存在,但 UI 布局、进程名、快捷键、前台焦点机制都不一样,能跑也不一定按这份 Skill 的步骤走。

安装方式

方式 1:从 Cowork UI 导入(推荐,最简单)

在 Cowork 界面点右上角 **Customize** → 打开 **Skills** 面板 → 导入 `SKILL.md` 即可。不用自己拼路径,也不用手动重启。

方式 2:手动放到 skills 目录

把 `SKILL.md` 放到你的 skills 目录下,作为一个子文件夹:

<你的 .claude 目录>/skills/wechat-reply-assistant/SKILL.md

例如:

  • Cowork mode: ~/.claude/skills/wechat-reply-assistant/SKILL.md
  • Claude Code 项目级: <项目>/.claude/skills/wechat-reply-assistant/SKILL.md

重启 Claude 后,该 Skill 会自动出现在可用 skill 列表中。

触发关键词

只要你在对话里说下面这类话,Claude 就会自动调用这个 Skill:

  • "帮我发个微信给 XX"
  • "回复一下 XX"
  • "在 XX 群里说一下 ..."
  • "跟进一下 XX 的消息"

甚至不用明确提"微信"二字 —— 只要上下文是聊天工具且提到"发给 XX / 在群里说 / 回复一下",也会触发。

触发后的交互方式

**Skill 只会问你一个问题**:是按最近聊天记录自动生成回复,还是你自己输入要发的内容。选完之后一气走到底 —— 期间不再二次确认、不让你审草稿、不反复追问细节,直到消息真的发出去为止。中途唯一可能再弹的只有一次 `request_access` 授权窗。

前置条件

  1. 已登录的 Windows 桌面版微信。Skill 不会替你扫码登录,遇到扫码页会停下来让你本人扫。
  2. computer-use MCP 可用,并会在任务开始时一次性向你申请以下应用权限:
    • 微信(微信 4.1.8.29 所有子进程都叫 Weixin.exe,会被 resolver 统一映射回"微信",申请这一个就够 —— 不要再追加 Wechatappex / msedgewebview2.exe / Weixin 等变体,resolver 会驳回)
    • 文件资源管理器(托盘区域属于