mcpField
W
wechat-send

wechat-send

github.com/jasoftProductivity1318 installsUpdated 30w ago
Repository

About wechat-send

wechat-send is a skill for sending messages through the WeChat desktop app on macOS. It uses UI automation and clipboard pasting to select a contact and enter message text, for environments where Chinese input may be disrupted by the input method.

Key features

  1. 01Activate WeChat and bring it to the foreground
  2. 02Find a conversation using shortcuts
  3. 03Paste contact names and message text
  4. 04Check required automation dependencies

Use cases

  1. 01Send a requested message to a WeChat contact on macOS
  2. 02Send Chinese text when direct typing is unreliable

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jasoft/ursoft-skills --skill wechat-send

After installing, type/wechat-sendin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

requirements.txt
scripts/
send_message
test_minimal.py
wechat_auto.py
tests/
test_path_resolution.py

Details

From the project README

WeChat Send

概览

这个 skill 用来在 macOS 桌面版微信里发送消息,优先走稳定的 UI 自动化顺序:

  1. 激活 WeChat 并确认它是前台应用
  2. 用快捷键打开搜索或切换会话
  3. 联系人名和消息正文都通过剪贴板粘贴,避免输入法拦截

何时使用

  • 用户明确要求在 macOS 微信客户端给联系人发消息
  • 直接键入中文容易被输入法干扰,必须改用剪贴板粘贴

不要在这些场景优先使用这个 skill:

  • 用户只是要发网页微信消息
  • 目标环境不是 macOS 桌面

前置依赖

  • macOS 已安装并登录 WeChat
  • 运行环境已授予 Accessibility 权限

标准工作流

1. 先做依赖体检
python3 scripts/wechat_auto.py doctor

这个检查会确认:

  • WeChat 是否可启动
  • osascript、pbcopy、pbpaste 是否可用

任一必需项缺失时,命令会输出错误并以非 0 退出。

2. 直接发送消息

从 skill 根目录执行:

scripts/send_message "文件传输助手" "测试消息"

需要调试信息时:

python3 scripts/wechat_auto.py send "文件传输助手" "测试消息" --debug --delay 0.8

快速命令

  • 体检:
python3 scripts/wechat_auto.py doctor
  • 发送消息:
scripts/send_message "张三" "你好,这是自动消息"

常见风险

  • 没有 Accessibility 权限时,快捷键会失败
  • 微信未在前台时,粘贴内容会发到错误应用
  • 联系人重名时,单靠回车选中可能进入错误会话

参考文件

  • scripts/wechat_auto.py
  • scripts/send_message

Comments

Markdown supported