wechat-insight is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Data category.
> /plugin marketplace add caigee-cmd/wechat-insight> /plugin install wechat-insight@wechat-insight
把本地微信聊天记录,变成一份关于关系、商机、情绪与表达习惯的滑动年报。整条链路在本机完成,聊天内容不出本机。
面向 macOS,基于已导出的微信聊天记录 JSONL,生成日报、客户分析、人格画像,最终输出一份双击即开的单文件 HTML 滑动年报。
不想安装?在线看一份示例报告(脱敏假数据,无需安装、无需联网)。
一份叙事版滑动年报(单文件 HTML,双击即开、可分享),整屏翻页一眼看完:
读微信记录很敏感,所以第一原则是:你的聊天内容永远不出本机。
tests/test_no_network.py 自动断言守护。pip)时发生,不接触你的聊天内容。~/.wechat-insight/。想自己验证"零联网"?拔网线跑
python3 -m unittest discover -s tests -p 'test_*.py'。
一行安装(macOS only,clone 到 ~/.local/share/wechat-insight 并装好 venv 和依赖):
curl -sL https://raw.githubusercontent.com/caigee-cmd/wechat-insight/main/install.sh | bash
或手动安装:
git clone https://github.com/caigee-cmd/wechat-insight.git
cd wechat-insight
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
./wechat-insightlauncher 会自动使用项目自带的.venv,无需每次source activate。需要 Python3.9+(年报是纯 Python 渲染,不依赖 Node)。
本工具不包含数据采集能力。请自行准备聊天记录 JSONL 后放入
~/.wechat-insight/data/。
检查环境:./wechat-insight doctor
准备数据:将已导出的聊天记录 JSONL 放到 ~/.wechat-insight/data/
生成报告:
./wechat-insight daily # 日报
./wechat-insight html # 滑动年报 HTML
./wechat-insight share # 可分享的关系画像卡
大多数命令支持
--input ~/.wechat-insight/data/messages_*.jsonl指定输入;html默认出滑动年报,加--renderer legacy出旧版静态模板。
本仓库本身就是一个 Claude Code 插件市场,在 Claude Code 里执行:
/plugin marketplace add caigee-cmd/wechat-insight
/plugin install wechat-insight@wechat-insight
装好后直接说"分析我的微信聊天记录""看看最近的客户线索""生成一份微信滑动年报",就会触发 analyzing-wechat-chats skill,由它编排分析和出报告。
插件只含编排用的 skill,不含 CLI 本体;skill 运行时仍需要
./wechat-insightCLI,本机没装会引导你跑安装脚本。
仓库内置脱敏样例数据 docs/sample/messages_sample.jsonl,可直接喂给任意命令:
./wechat-insight html --input docs/sample/messages_sample.jsonl
./wechat-insight share --input docs/sample/messages_sample.jsonl
share 生成的关系画像卡(适合发朋友圈 / 群聊):
| 命令 | 作用 |
|---|---|
doctor | 检查配置状态 |
features | 生成统一特征层 |
daily / digest | 日报 / 一键自动化日报 |
customer / labels | 客户分析 / 联系人标签模板 |
unreplied | 列出最后一条是对方发来、你还没回的会话(支持 --days / --exclude-ad) |
emotion / mbti / speech / social | 情绪、MBTI、口癖、社交图谱(启发式,仅供参考) |
report-data / html / share | 统一展示载荷 / 滑动年报 / 关系画像卡 |
默认写到 ~/.wechat-insight/:
data/messages_*.jsonlfeatures/*.jsonlreports/(daily_*.md、customer_*.md、report_payload_*.json、dashboard_*.html 等)OpenClaw 负责定时、推送和失败重试,定时任务只调用以下命令:
./wechat-insight doctor # 非 0 说明配置不完整
./wechat-insight digest --today --stdout # 返回 0,读取 stdout 或 DIGEST_REPORT_PATH;当天无消息也返回 0
内核是"本地分析引擎 + 单文件报告",后续会接入更多数据源和画像维度(朋友圈、收藏、企业微信 / 飞书报告、Windows 微信支持、可选本地模型增强),始终坚持"分析全程零联网、内容不出本机"。欢迎 issue / PR。
python3 -m unittest discover -s tests -p 'test_*.py' # Python 测试
./scripts/local_smoke.sh quick --days 7 # 本机回归
MIT,见 LICENSE
caiji · 522caiji@gmail.com · WeChat: caiji748
wechat-insight is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Data category. Install it with the command on its page. It includes analyzing-wechat-chats. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it