Skip to content
Skills Library
Personal productivity · Automation

wechat-ops

/wechat-ops

Keep WeChat for Mac in a state the scripts can drive - see what is on screen, list, resize and close WeChat windows, handle a locked screen, a logout or a WeChat update, and use the low-level wxctl primitives. Use for "WeChat window is wrong", "what is on the WeChat screen", "wechat logged out", "close that popped-out chat", "wxctl", or when sends start aborting in a row. Not for first-time setup or permissions (wechat-setup).

Licence
Apache-2.0
Last repository change
31.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 31.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Keep WeChat for Mac in a state the scripts can drive - see what is on screen, list, resize and close WeChat windows, handle a locked screen, a logout or a WeChat update, and use the low-level wxctl primitives. Use for "WeChat window is wrong", "what is on the WeChat screen", "wechat logged out", "close that popped-out chat", "wxctl", or when sends start aborting in a row. Not for first-time setup or permissions (wechat-setup).

Triggers from the description

WeChat window is wrongwhat is on the WeChat screenwechat logged outclose that popped-out chatwxctl
Original author description

Keep WeChat for Mac in a state the scripts can drive - see what is on screen, list, resize and close WeChat windows, handle a locked screen, a logout or a WeChat update, and use the low-level wxctl primitives. Use for "WeChat window is wrong", "what is on the WeChat screen", "wechat logged out", "close that popped-out chat", "wxctl", or when sends start aborting in a row. Not for first-time setup or permissions (wechat-setup).

How it works

  1. When sends start failing
  2. After changing the Swift sources
Original SKILL.md headings · 39 lines, 317 words
SKILL.md preview
---
name: wechat-ops
description: Keep WeChat for Mac in a state the scripts can drive - see what is on screen, list, resize and close WeChat windows, handle a locked screen, a logout or a WeChat update, and use the low-level wxctl primitives. Use for "WeChat window is wrong", "what is on the WeChat screen", "wechat logged out", "close that popped-out chat", "wxctl", or when sends start aborting in a row. Not for first-time setup or permissions (wechat-setup).
---

Read `../shared/RULES.md` first.

# Operations

```bash
bin/wxctl windows                 # every WeChat window and its size (main window: Weixin / 微信 / WeChat)
bin/wxctl win                     # main window position {x, y, w, h, scale}
bin/wxctl fit                     # main window to the top-left, 1300 wide, full height
bin/wxctl close-window "<title>"  # close a popped-out chat window (refuses the main window)
bin/wxctl locked                  # 1 = screen locked
bin/wxctl perms                   # which grants this terminal app has
```

All subcommands are listed at the top of `native/wxctl.swift`. Only window-level Accessibility works on WeChat 4.x;
chat content is invisible to Accessibility, so content is always read from screenshots.

To see the screen: `screencapture -x /tmp/wechat.png` and look at it (it shows private chats: keep it local, delete
it after).

## When sends start failing

| Symptom | Do |
|---|---|
| several `aborted` in a row | `bin/wxctl windows`: a popped-out chat window or a shrunken main window; `close-window`, then `fit` |
| `screen locked` | ask the user to unlock; nothing types into a lock screen |
| QR code or "Log In" on screen | logged out: stop the sender (`python3 -m wxmac.stop_sender`) and ask the user to scan with their phone |
| `main window did not appear` | WeChat not running, or the window is off screen: `bin/wxctl activate`, then `fit`; never reinstall, re-sign or start a second copy |
| a warning in the sender log | the sender already paused; tell the user with the exact words; do not resume early |
| everything "does not match" after a WeChat update | UI words or layout changed: rerun `python3 -m wxmac.doctor --ocr`, compare the screen with `wxmac/ui_strings.py` and the constants in `wx_send.py`, see `docs/pitfalls.md` |

## After changing the Swift sources

```bash
./install.sh                       # rebuilds bin/wxctl and bin/ocr
```

A running sender keeps the old Python code: stop it with `stop_sender` and start it again.

Versions

The database has no other skills named wechat-ops.

Database snapshot: 13.11.2026 · package version f86ce7dba3a5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95wechat-setup
    First-time setup and health check for driving WeChat for Mac. Builds the native helpers, walks the user through the macOS permissions (Accessibility, Screen Recording, optional Full Disk Access), creates config.toml with their persona, sizes the WeChat window and runs a dry-run…
  • 100wechat-send
    Send one WeChat message from the user's own WeChat for Mac to one person or one group - text, optionally followed by a picture or any file - or just open a chat to check it is the right one. Every step is verified on screen (search result in a chat section, chat header, text…
  • 100wechat
    在本地查询、导出微信 4.1+ 聊天记录为 AI 可读文本 —— 支持双人会话、群聊、以及按消息量排名的重要联系人排名。当用户想导出、搜索或分析自己的微信聊天记录,或为其他 skill(前任.skill / 同事.skill 等)准备聊天记录原材料时使用。
  • 100wechat-send
    用户在桌面微信里给某个群或个人发一条消息、不想自己动手点的时候使用。通过 Win32 截图/点击/剪贴板脚本操作微信客户端:恢复窗口 → 窗口截图量坐标 → 搜索会话 → 核对标题(群名带人数) → 输入内容(中文走剪贴板) → 点「发送」→ 截图确认气泡。同义说法:给群里发个消息、在XX群发一下、微信回他一句、发微信消息、微信自动发消息、桌面微信自动化、Windows 微信自动化、微信群发消息、微信定时发送。
  • 100wechat-send-image
    Send an image or screenshot to WeChat. Use when the user wants to send a picture, screenshot, or photo to WeChat.
  • 95wechat-local
    读取和分析 Windows 微信(WeChat)聊天记录的 Agent Skill,提供本地 MCP / CLI。支持聊天搜索、消息统计、图片查看、语音转写、视频与附件读取、朋友圈缓存和 Obsidian 导出。用户提到微信聊天记录导出、WeChat MCP、查群聊、转写微信语音、微信数据分析或迁移手机历史时使用。

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.