caigee-cmd/wechat-insight/analyzing-wechat-chats
Claude Code and agent skill by caigee-cmd/wechat-insight
- community
Checking that the SKILL.md file is still in the repository.
Use when analyzing, exporting, or reporting on WeChat Mac 4.x local chat history on macOS - builds feature layers from exported JSONL data, and generates daily reports, customer insights, contact labels, and a single-file HTML report (a pure-Python narrative slides recap by default). 触发词:微信分析、分析微信、微信洞察、微信聊天分析、wechat-insight、analyzing-wechat-chats
Install
npx vskill@latest install caigee-cmd/wechat-insight/analyzing-wechat-chatsSKILL.md
分析微信聊天记录 Analyzing WeChat Chats
前置依赖:本 skill 不是自包含的,运行需要./wechat-insightCLI(仓库:https://github.com/caigee-cmd/wechat-insight)。触发本 skill 时按以下顺序判断当前 CLI 位置:1. 当前目录有wechat-insight可执行文件 → 直接用./wechat-insight ...2.~/.local/share/wechat-insight/wechat-insight存在 →cd ~/.local/share/wechat-insight后用./wechat-insight ...3. 都没有 → 提示用户、并提议执行一行安装(macOS only):```bashcurl -sL https://raw.githubusercontent.com/caigee-cmd/wechat-insight/main/install.sh | bash```脚本会 clone 仓库到~/.local/share/wechat-insight、创建 venv、安装 Python 依赖。装好后再cd进去触发本 skill。./wechat-insightlauncher 会自动使用.venv,不需要手动source activate。
总览
这是一个 本地微信分析工作台 v1。
当前已经可用的能力:
- feature 层生成
- Markdown 日报
- 面向自动化宿主的一键 digest 日报
- 客户 / 商业分析
- 联系人标签模板生成与自动建议
- 单文件 HTML 报告(默认叙事版滑动年报,纯 Python 渲染,不依赖 Node)
- 可分享的竖版关系画像卡
启发式分析能力(基于聊天文本的统计规则推测,不是医学诊断、心理测评或模型级结论,结果仅供参考):
- 情绪分析
- MBTI 推测
- 口癖统计
- 社交图谱
适用条件
- macOS
- 微信 Mac 4.x 已安装并登录过
- Python 3.9+
核心原则
- 优先使用统一 CLI:`./wechat-insight`
- 首次使用先跑
doctor - 分析类请求尽量走:
featuresdailylabelscustomer- 对启发式分析能力,必须明确告知“仅供参考”,不要包装成模型级结论
当前命令面
| 命令 | 作用 | 状态 | |
|---|---|---|---|
./wechat-insight doctor | 检查配置状态 | 可用 | |
./wechat-insight features | 生成 feature 层 | 可用 | |
./wechat-insight daily | 生成日报 | 可用 | |
./wechat-insight labels | 生成联系人标签模板 | 可用 | |
./wechat-insight customer | 生成客户 / 商业分析 | 可用 | |
./wechat-insight report-data | 汇总展示层统一 JSON 载荷 | 可用 | |
./wechat-insight html | 生成本地可打开的单文件 HTML 报告(默认叙事版滑动年报) | 可用 | |
./wechat-insight share | 生成可分享的竖版关系画像卡 | 可用 | |
./wechat-insight emotion | 情绪分析(启发式) | 可用 | |
./wechat-insight mbti | MBTI 推测(启发式) | 可用 | |
./wechat-insight speech | 口癖统计(启发式) | 可用 | |
./wechat-insight social | 社交图谱(启发式) | 可用 |
标准执行流
Phase 1: 环境检查
每次优先执行:
判断逻辑:
- 配置完整:进入具体任务
- 配置缺失:进入首次配置
Phase 2: 首次配置
脚本会自动:
- 检查微信环境
- 自动识别
wxid和数据库路径 - 生成:
~/.config/wechat-insight.json
注意:
- 过程中用户需要手动登录微信
- 首次配置通常要 2-3 分钟
Phase 3: 根据意图选择任务
1. 用户想看有哪些群 / 联系人
常见命令:
3. 用户想做日报
推荐流程:
也可以直接指定输入:
日报当前已包含:
- 基础统计
- 活跃时段
- 最活跃会话 / 联系人
- 高频短句
- 互动结构(发出 / 收到 / 系统)
- Top 会话收发拆分
- 待跟进信号
3.1 用户想让 OpenClaw / 自动化宿主每天推送沟通摘要
本 skill 不负责定时和推送;OpenClaw 负责调度、推送和失败重试。
推荐让自动化宿主每天执行:
执行规则:
doctor非 0:提示用户先人工执行./wechat-insight setupdigest返回 0:从 stdout 读取 Markdown,或读取DIGEST_REPORT_PATH=...指向的文件- 当天没有消息:
digest仍会返回 0,并生成“暂无可分析消息”的日报
4. 用户想做客户 / 商业分析
推荐流程:
customer 当前已包含:
- 总览
- 角色分组:
customer / vendor / unknown - 每组的高意向机会
- 每组的售后风险
- 每组的待跟进
5. 用户想先生成结构化特征层
生成内容包括:
- enriched messages
- daily features
- chat features
- contact features
6. 用户想先清洗联系人标签
标签模板会:
- 只包含私聊联系人
- 保留已有
role/notes - 输出
suggested_role - 输出
suggested_role_reason - 输出
review_priority_score
--apply-suggestions 的规则:
- 只会填充空白 /
unknown的role - 不会覆盖用户已确认标签
7. 用户点名 MBTI / 情绪 / 口癖 / 社交图谱
当前必须明确说明:
- 这些脚本已经可用
- 属于启发式分析(基于聊天文本的统计规则推测,不是医学诊断、心理测评或模型级结论),结果仅供参考
- 可以直接进入:
- Markdown 报告
report-datahtml
推荐话术与策略
用户说“帮我分析下微信”
优先走:
./wechat-insight doctor- 若未明确分析方向,优先推荐:
dailycustomer
用户说“帮我看看最近聊天情况”
优先走:
用户说“帮我看客户和商机”
优先走:
用户说“我想做 MBTI / 性格分析”
当前应该回答:
- 可以直接跑
./wechat-insight mbti - 属于启发式分析(基于聊天表达风格的统计规则推测,不是正式人格测评),结果仅供参考
- 最好和
emotion / speech / social / html一起看,而不是单独解读
产物目录
配置
~/.config/wechat-insight.json~/.config/wechat-insight-contacts_labels.json
目录:
主要文件:
messages_YYYYMMDD_YYYYMMDD.jsonlexport_meta.json
feature 层
目录:
主要文件:
messages_enriched_*.jsonldaily_features.jsonlchat_features.jsonlcontact_features.jsonl
报告
目录:
主要文件:
daily_*.mdcustomer_report.mdreport_payload_*.jsondashboard_*.html
关键数据字段
is_selfdirectionreal_sender_id
当前 feature 层已经有这些关键衍生字段:
message_iddate / hour / weekdaychat_typecontent_cleanis_questionis_action_itemis_scheduleis_business_signalis_quote_signalis_support_signalis_negative_signaltopic_tagsemotion_label
这意味着:
- 日报和商业分析已经有稳定底座
- HTML 报告已经可以直接生成(默认叙事版滑动年报,纯 Python 渲染)
联系人标签文件格式
示例:
建议角色:
customervendorfamilyfriendadspamunknown
安全声明
- 所有数据只在本地处理
- 不上传任何服务器
结论
当前这个 skill 的真实定位是:
微信本地分析工作台 v1
已经成熟可用的主线:
doctorfeaturesdailylabelscustomerreport-datahtmlshareemotionmbtispeechsocial
已落地的交付层:
report-data:输出统一展示载荷html:生成本地可打开的单文件 HTML 报告(默认叙事版滑动年报,纯 Python 渲染)share:生成可分享的竖版关系画像卡
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/wechat-insight/skills/analyzing-wechat-chats/SKILL.md
Popularity
- Repository stars
- 109
- Repository forks
- 41
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/caigee-cmd/wechat-insight/analyzing-wechat-chats)