Wechat Group Daily Report logo

Wechat Group Daily Report

Community
Bryan-Cyf
wechat-group-daily-report

生成微信群聊可视化日报(Markdown 聊天记录 + Agent 结构化分析 + HTML/PNG)。 WeChatDaily 项目专用 Skill。当用户提到微信群日报、群聊报告、群分析、 导出群聊天记录、生成 HTML 群报时使用。

Overview

PublisherBryan-Cyf
RepositoryWeChatDaily
Skill namewechat-group-daily-report
Stars
41
Forks
18
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Bryan-Cyf on GitHub. Read the source before you install it.

Installation

Install the Wechat Group Daily Report AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Bryan-Cyf/WeChatDaily/tree/master/.claude/skills/wechat-group-daily-report
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Bryan-Cyf/WeChatDaily.git /tmp/WeChatDaily
mkdir -p .claude/skills
cp -r /tmp/WeChatDaily/.claude/skills/wechat-group-daily-report .claude/skills/wechat-group-daily-report
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Group Daily Report in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Group Daily Report on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Group Daily Report is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

微信群聊日报生成

概述

在 WeChatDaily 项目中,将指定群、指定日期的聊天记录导出为 Markdown,由 当前 Agent 做结构化话题分析,再渲染为 HTML(可选 PNG)。

项目根目录:含 wechat.py、.env、export/ 的目录。

前置检查

开始流程前 silently 确认:

  • tools/wechat-decrypt/key_scan_common.py 存在(子模块已初始化)
  • pip install -r requirements.txt 已执行(Python 3.14+)
  • .env 已配置 WX_RAW_KEY(见 references/env-setup.md)
  • 已执行过至少一次 setup + decrypt(或用户确认本次要刷新)

若缺子模块:git submodule update --init --recursive,或手动克隆 WeChatDecrypt 到 tools/wechat-decrypt/。


工作流(必须按序执行)

⚠️ 铁律:一步都不能少。 即使用户在首条消息里已经给了群名、日期、是否解密,也不能跳过 Step 1–3 的确认。 用户提供的信息只作为预填默认值,仍必须:

  1. 该拉的数据照拉(如 Step 1 的群列表);
  2. 用 AskQuestion 把预填结果回显给用户逐项确认;
  3. 得到用户明确确认后才进入下一步。 禁止以「用户已经说了」为由直接跳到 Step 4。

复制进度清单:

- [ ] Step 1 确认群名(先拉全量群列表比对,再确认)
- [ ] Step 2 确认日期
- [ ] Step 3 确认是否刷新解密
- [ ] Step 4 导出聊天记录 MD
- [ ] Step 5 Agent 分析 → JSON
- [ ] Step 6 渲染 HTML (+ PNG)
- [ ] Step 7 交付路径

Step 1:确认群名(必做,不可凭用户输入直接定群)

无论用户是否已经给了群名,都必须先拉取当前全部群再比对确认:

  1. 拉全量群列表(需已 decrypt;若报错见下方说明):
powershell
python wechat.py groups
  1. 比对:
    • 用户已给群名 → 拿用户给的片段在群列表里做匹配:
      • 唯一精确/模糊命中 → 作为预填项,仍需第 3 步回显确认;
      • 命中多个 → 列出候选让用户选;
      • 零命中 → 告知未找到,展示相近群名供用户重选。
    • 用户未给群名 → 直接展示群列表(或活跃群)供选择。
  2. 回显确认:用 AskQuestion 把「我将分析的群」逐项列给用户,得到明确确认后才进入 Step 2。

说明:

  • 支持多个群:逗号分隔,与 groups 命令显示名完全一致
  • 群名含逗号时用引号包裹整个 --groups 参数
  • 若 groups 因尚未解密而报错/为空 → 先与用户确认走 Step 3 解密,再回到 Step 1 拉列表

示例提问(用户已给群名时):

你提到的「{用户片段}」匹配到群「{命中群名}」,确认就分析这个群吗?

示例提问(用户未给群名时):

当前可选群如下,要生成哪几个群的日报?(可多选)

Step 2:确认日期(必做)

无论用户是否已给日期,都用 AskQuestion 回显确认:

  • 默认:当天,YYYY-MM-DD(本地时区)
  • 用户已给日期 → 作为预填项回显确认(如校验格式是否合法)
  • 用户未指定 → 预填今天 {today}

示例提问:

分析哪一天的数据?{用户已给则填该日期,否则填今天 {today}},确认吗?

Step 3:确认是否拉取最新数据(必做)

无论用户是否已表态,都用 AskQuestion 回显确认(把用户倾向设为预填默认项):

是否需要重新解密最新微信数据?(微信重启后 key 会变,建议选「是」)

选「是」 → 执行(在项目根目录):

  1. 从 .env 读取 WX_RAW_KEY(缺失则提示用户按 env-setup.md 配置)
  2. Setup:
powershell
python wechat.py setup --raw-key $env:WX_RAW_KEY

若 .env 有 WECHAT_DB_DIR:

powershell
python wechat.py setup --raw-key $env:WX_RAW_KEY --db-dir $env:WECHAT_DB_DIR
  1. Decrypt:
powershell
python wechat.py decrypt

选「否」 → 跳过,直接使用 export/decrypted/ 现有库。

Step 4:导出聊天记录(MD)

对每个目标群,一次命令导出:

powershell
python wechat.py export --date {date} --groups {群1,群2} --limit 99999

说明:

  • --limit 99999:尽量导出当日全部消息(默认仅 1000)
  • 输出:export/reports/report_{date}.md(多群时同一文件内 ## 群名 分节)

确认 MD 中 _消息数: N 条_ 与预期一致。

Step 5:Agent 结构化分析(核心)

禁止在项目中配置 API Key 或调用任何内置 LLM 接口。

对每个群分别:

  1. 读取 references/analysis-prompt.md 中的 Prompt 模板
  2. 从 export/reports/report_{date}.md 提取该群 ### 聊天记录 代码块全文
  3. 以 Agent 身份分析,只输出 JSON(格式见 analysis-prompt.md)
  4. 写入:
export/reports/analysis_{date}_{safe_group}.json

safe_group = 群名中非法文件名字符替换为 _,最长 60 字符(与 render_manual_report.py 一致)。

消息极多时分批阅读 MD,但 JSON 必须覆盖全天主要话题,勿只分析开头。

Step 6:渲染 HTML 与 PNG

每个群执行:

powershell
python scripts/render_manual_report.py --group "{群名}" --date {date} --analysis-json export/reports/analysis_{date}_{safe_group}.json --png

产出:

  • export/reports/report_{date}_{safe_group}.html
  • export/reports/report_{date}_{safe_group}.png(需 python -m playwright install chromium)

若 PNG 失败:仍交付 HTML,并提示安装 Chromium。

Step 7:交付

向用户汇总:

类型路径
完整聊天记录export/reports/report_{date}.md
结构化分析export/reports/analysis_{date}_{群}.json
可视化日报export/reports/report_{date}_{群}.html
图片版export/reports/report_{date}_{群}.png

关键约束

项规则
分析者当前 Agent,项目不内置 LLM
导出export 或 report 命令只写 MD
密钥只从 .env 的 WX_RAW_KEY 读取,勿写入 Skill 或提交 Git
HTML 模板src/visual_report.py 的 render_html_report
多群Step 5–6 按群循环

故障排查

现象处理
No module named 'key_scan_common'初始化 tools/wechat-decrypt
raw_key 验证失败微信登录后重跑 wx_key,更新 .env
MD 只有少量消息加大 --limit,或检查 decrypt 是否最新
未找到群python wechat.py groups 核对精确群名
PNG 失败pip install playwright + python -m playwright install chromium

参考文件

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Group Daily Report AI skill do?

生成微信群聊可视化日报(Markdown 聊天记录 + Agent 结构化分析 + HTML/PNG)。 WeChatDaily 项目专用 Skill。当用户提到微信群日报、群聊报告、群分析、 导出群聊天记录、生成 HTML 群报时使用。

Why use Wechat Group Daily Report on TypingMind?

Because you install it once and use it with any model. Wechat Group Daily Report is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Group Daily Report in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Bryan-Cyf/WeChatDaily/tree/master/.claude/skills/wechat-group-daily-report. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Group Daily Report?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Group Daily Report?

As many as you like. As long as a model supports skills, you can use Wechat Group Daily Report with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Group Daily Report AI skill free?

Yes. It is published on GitHub by Bryan-Cyf under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇