docs: update wx-cli skill

pull/21/head
Banghao Chi 2026-04-24 10:06:38 -05:00
parent def157272e
commit ea31bfb701
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
---
name: wx-cli
description: "wx-cli — 从本地微信数据库查询聊天记录、联系人、会话、收藏等。用户提到微信聊天记录、联系人、消息历史、群成员、收藏内容时,使用此 skill 安装并调用 wx-cli。"
description: "wx-cli — 从本地微信数据库查询聊天记录、联系人、会话、收藏等,并可在 macOS 通过 WeChat 屏幕自动化发送消息。用户提到微信聊天记录、联系人、消息历史、群成员、收藏内容、发送微信消息或回复微信时,使用此 skill 安装并调用 wx-cli。"
---
# wx-cli
@ -16,6 +16,8 @@ description: "wx-cli — 从本地微信数据库查询聊天记录、联系人
- wx-cli
- 帮我看看微信里
- 搜索微信消息
- 发送微信消息
- 回复微信
## Prerequisites
@ -23,6 +25,7 @@ description: "wx-cli — 从本地微信数据库查询聊天记录、联系人
- 微信桌面版 4.x 已安装并登录
- Node.js >= 14npm 安装方式)或 curlshell 安装方式)
- 首次 `wx init` 需要 `sudo`(内存扫描提取密钥)
- macOS 发送消息需要给当前终端或 agent 应用开启"辅助功能"权限
---
@ -122,10 +125,15 @@ wx history "AI群" --since 2026-04-01 --until 2026-04-15 -n 100
wx search "关键词"
wx search "关键词" -n 500
wx search "会议" --in "工作群" --since 2026-01-01
# 发送消息macOS
wx send "张三" "你好"
```
`history` / `search` / `export` 都支持 `-n` / `--limit` 指定返回条数。默认值只是为了避免一次输出过多,不是硬上限。
`send` 是 macOS 屏幕自动化命令:它会激活微信,用 `⌘F` 聚焦搜索框,打开目标聊天后发送文本。发送前必须由用户明确确认收件人和消息正文;命令会真实发送消息给第三方。发送过程中会临时使用文本剪贴板,并在常见情况下恢复原文本剪贴板内容。
`sessions` / `unread` / `history` / `new-messages` / `stats` 的输出都带 `chat_type` 字段agent 可据此分流:
| 取值 | 含义 | username 特征 |