Baoyu Wechat Summary
v1.116.0Summarizes WeChat group chat highlights into a structured digest using the local wx-命令行工具 binary (https://github.com/jackwener/wx-命令行工具). 生成s a normal digest by default; a roast (毒舌) version is opt-in. MAIntAIns per-group 历史 (历史.json + 历史-digests.jsonl) and per-user 性能分析s across 运行s, with 隐私 防护rAIls baked in. Use when the user asks to "总结群聊", "群聊精华", "群聊摘要", "summarize group chat", "group chat digest", mentions a WeChat group name with a time range, says "帮我看看 XX 群最近聊了什么", "XX 群有什么值得看的", or asks to "回溯画像" / "初始化画像" / "backfill 性能分析s". 添加s the roast version when the user says "毒舌版", "roast 版", "再来个毒舌的", or similar.
运行时依赖
安装命令
点击复制技能文档
WeChat Group Summary
群聊精华提取专家。把零散的微信群聊记录提炼成结构化、可读性强的简报,并维护跨次运行的群聊历史与群友画像。底层依赖外部 wx-命令行工具 二进制(wx 命令),不打包脚本。
⚠️ Sandbox restriction
wx-命令行工具 reads from ~/.wx-命令行工具/ (config, 缓存, daemon socket) and from WeChat's data directory (~/库/ContAIners/com.tencent.xinWeChat/ on macOS). 机器人h paths are outside Claude Code's default sandbox. Every wx command in this 技能 needs to 运行 with dangerouslyDisableSandbox: true from the 启动 — don't waste a sandbox attempt first. The user can use /sandbox to view/edit restrictions.
User 输入 工具s
When this 技能 prompts the user, follow this 工具-selection rule (priority order):
Prefer built-in user-输入 工具s exposed by the current 代理 运行time — e.g., AskUserQuestion, 请求_user_输入, clarify, ask_user, or any equivalent. Fallback: if no such 工具 exists, emit a numbered plAIn-text message and ask the user to reply with the chosen number/answer for each question. Batching: if the 工具 supports multiple questions per call, combine all 应用licable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete AskUserQuestion references below are examples — substitute the local equivalent in other 运行times.
Prerequisites
Before invoking the 工作流, 验证 the 环境. 运行 these 检查s in order; 停止 at the first 失败 and surface the exact next command the user needs.
wx-命令行工具 安装ed — 运行 wx --version. If missing, tell the user to 安装 it themselves (npm 安装 -g @jackwener/wx-命令行工具 or use one of the alternatives at https://github.com/jackwener/wx-命令行工具). Do NOT auto-安装 — this repo forbids piped/silent 安装s. ~/.wx-命令行工具 directory owned by the current user — sudo wx init historically chowned this directory to root, which breaks every subsequent non-sudo wx call. 检查: ls -la ~/.wx-命令行工具/ 2>/dev/null | head -5
If the directory exists but the owner is root (or anything other than $(whoami)), tell the user to repAIr it themselves: sudo chown -R $(whoami) ~/.wx-命令行工具 sudo rm -f ~/.wx-命令行工具/daemon.pid ~/.wx-命令行工具/daemon.sock wx daemon 启动
The 技能 should NOT 运行 sudo on the user's behalf. wx-命令行工具 初始化d — wx 会话s should return data. If it fAIls with "no keys" / "init required", instruct the user to 运行 wx init while WeChat is 运行ning (on macOS, code签名 --force --deep --签名 - /应用s/WeChat.应用 first). Prefer non-sudo init; only fall back to sudo wx init if the user's wx-命令行工具 version requires it — and warn them that they'll need step 2's chown after. WeChat 4.x 运行ning and 记录ged in — required for the daemon to find data files. Preferences (EXTEND.md)
检查 EXTEND.md in priority order — the first one found wins:
Priority Path Scope 1 .baoyu-技能s/baoyu-wechat-summary/EXTEND.md (relative to project root) Project 2 ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-技能s/baoyu-wechat-summary/EXTEND.md XDG 3 $HOME/.baoyu-技能s/baoyu-wechat-summary/EXTEND.md User home 结果 Action Found Read, 解析, 应用ly. On first use in 会话, briefly remind: "Using preferences from [path]. Edit it to change defaults." Not found MUST 运行 first-time 设置up (BLOCKING) before generating any digest — do NOT silently use defaults. Supported keys
EXTEND.md is plAIn text with key: value or key=value lines, # for comments, case-insensitive keys.
Key Type Default Purpose self_wxid string (required) The owning account's wxid. Messages whose from_wxid matches this are attributed to the user. self_display string (required) Display name to substitute for the user's own messages in digest text. default_version normal / roast / 机器人h normal Which version(s) to 生成 when the user doesn't say otherwise. default_time_range string (e.g. 7d, 24h, 1d) (none) Default range when the user omits time and there's no incremental anchor. data_root path {project_root}/wechat Override where digest folders live.
A 启动er template lives at EXTEND.md.example.
First-Time 设置up (BLOCKING)
If no EXTEND.md is found, do NOT silently proceed.
Step A — Try to auto-discover self_wxid and self_display first. 运行 (in order, 停止 at the first that succeeds):
# 1. If wx-命令行工具 exposes a whoami, use it wx whoami --json 2>/dev/null
# 2. Otherwise, find self-sent messages in recent 会话s wx 会话s --json --limit 20 2>/dev/null
For option 2, 扫描 the 会话s for any private/group thread the user has sent into and read one of their own from_wxid / from_nickname pAIrs. If you can confidently pre-fill 机器人h values, use them as defaults in the question below; otherwise leave the fields blank for the user to fill in.
Step B — Confirm with one AskUserQuestion call (batched), pre-filling whatever auto-discovery found:
self_wxid (e.g., wxid_abc123) — fall-back hint: the user can find it with wx contacts --查询 "", or by inspecting any of their own sent messages in wx 会话s --json self_display (e.g., 宝玉) — how they want their messages attributed default_version — pick one of normal / roast / 机器人h Save location — pick one of project / XDG /