Send a single text message in the macOS WeChat desktop app by controlling the native UI. Use when the user asks to send a WeChat message to a named contact or group, or asks the agent to operate the desktop WeChat client directly.
83%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Use this skill for desktop WeChat GUI automation on macOS, not for protocol bots or backend send APIs.
This skill is appropriate when the user wants the agent to act like a human:
Prefer the Computer Use app tools when they are available. Treat the WeChat client as the source of truth.
This skill now has a local helper implementation:
Use these layers in order:
Computer Use / accessibility tree when the WeChat window is inspectableosascript + System Events for app activation, shortcuts, and search flowDo not jump straight to coordinate clicking if the higher layers are still viable.
The current machine has a verified faster path for WeChat:
com.tencent.xinWeChat.Cmd+F instead of trying to click the search box.Return.Return.Use this fast path first unless the UI clearly changed.
Do not use this skill for:
recipient: contact name, remark, or group namemessage: exact text to sendIf the recipient or message is missing, ask only for the missing field.
Computer Use can inspect the window, use it first.python3 .agents/skills/weixin-desktop-send/scripts/wechat_macos_send.py probecom.tencent.xinWeChat.Cmd+F to focus search.Return.Return.Before every verification step, get a fresh WeChat app snapshot.
If Computer Use reports that approval was denied or WeChat cannot be inspected because app-control permission is missing:
If the helper reports screen capture failure:
System Settings > Privacy & Security > Screen Recording for the terminal or app that is running the helperambiguous or blocked state unless the user explicitly wants --allow-ambiguous-sendIf a permission prompt is visible, tell the user to approve it. If no prompt appears, direct the user to re-enable WeChat access in Codex app permissions and macOS System Settings > Privacy & Security > Accessibility and Screen Recording for Codex, then retry.
Prefer this order:
Cmd+F.Observed on this machine:
AXError.notImplemented.type_text may drop Chinese characters in WeChat search and composer.Computer Use may expose the outer window while returning a black screenshot for the content layer.screencapture may fail when Screen Recording permission is missing.Before sending:
Return until the chat target is verified or the user explicitly accepts ambiguousNever claim success just because a click happened.
Success requires one of:
If verification is ambiguous:
--allow-ambiguous-sendStop and report clearly if:
If accessibility data is weak, fall back to the helper's keyboard flow first, then coordinate focus for the composer, but keep the same verification rules.
Probe the machine first:
python3 .agents/skills/weixin-desktop-send/scripts/wechat_macos_send.py probeDry-run a send flow without pressing Return on the final message:
python3 .agents/skills/weixin-desktop-send/scripts/wechat_macos_send.py send \
--recipient "文件传输助手" \
--message "这是第二条成功的信息" \
--dry-runOnly continue with the helper's ambiguous path when the user explicitly approves it:
python3 .agents/skills/weixin-desktop-send/scripts/wechat_macos_send.py send \
--recipient "文件传输助手" \
--message "这是第二条成功的信息" \
--allow-ambiguous-sendReturn a short result:
给老曹发微信,内容是“你好,早上好”帮我给产品群发一句:今晚九点前提交周报在微信里给张三发一条消息,说我十分钟后到202780181/lingxiData
83191c9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.