Skip to content
Back to skills

Skill

ASecurity

读取、搜索、总结本机企业微信(WeCom / 企业微信)的本地聊天记录,包括单聊、客户群、外部客户答疑群、系统/应用消息。当用户说“企业微信/企微/客户群/客户答疑群/某客户聊了啥/企微里搜…”等时使用。数据来自已解密并定时刷新的本地导出;只读,不发送外部。仅限用户本人授权的本机企业微信数据,不用于他人或未授权账号。

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
ai-agentspythonbashsqlgit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add wenchester8-droid/wecom-chatlog-skill --skill skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenchester8-droid-skill/badge)](https://www.skillsdirectory.com/skills/wenchester8-droid-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wecom-chatlog
description: 读取、搜索、总结本机企业微信(WeCom / 企业微信)的本地聊天记录,包括单聊、客户群、外部客户答疑群、系统/应用消息。当用户说“企业微信/企微/客户群/客户答疑群/某客户聊了啥/企微里搜…”等时使用。数据来自已解密并定时刷新的本地导出;只读,不发送外部。仅限用户本人授权的本机企业微信数据,不用于他人或未授权账号。
---

# 企业微信聊天记录(只读查询)

本机企业微信记录由后端项目 [tcsn-xy/wechat-chatlog](https://github.com/tcsn-xy/wechat-chatlog)(wxSQLite3 AES-128)解密并导出为纯文本,`sync.py` 由 launchd 定时刷新。本技能**只读**这些导出目录。

**红线**:不要在回复或日志中打印数据库密钥;不要大段输出与问题无关的聊天正文;只呈现用户需要的内容。

## 运行方式

用系统 `python3` 运行查询脚本(纯标准库,无需 venv)。`SKILL_DIR` 为本文件所在目录:

```bash
python3 "$SKILL_DIR/query.py" status
```

先跑 `status` 确认导出存在、最后同步时间;若同步时间过旧或用户要求“刷新一下”,见下文「刷新」。

## 路由

| 意图 | 命令 |
|---|---|
| 列出会话 / 找群名 | `query.py list [--kind 群聊\|单聊\|系统] [--contains 关键字]` |
| 读某个会话 | `query.py read <会话关键字> [-d 天数] [-n 条数]` |
| 全局搜消息 | `query.py search <关键字> [--kind ..] [--in 会话关键字] [-d 天数] [-n 条数]` |
| 看最近动态 | `query.py recent [-d 天数] [-n 条数] [--kind ..]` |
| 取全部命中供总结 | `query.py dump <会话关键字> [-d 天数]`(再由你归纳) |
| 状态 / 同步时间 | `query.py status` |

所有命令都支持 `--json`,便于进一步处理。

## 使用要点

- **会话匹配**:会话关键字对会话名做模糊匹配;命中多个时会把候选列表打到 stderr 并以退出码 3 返回——**请让用户在候选里挑一个**,不要擅自猜。
- **总结**:用 `read` / `dump` 取原文,自己归纳成「重点问题 + 待回复/待办 + 结论」。时间范围和条数按需给,不要无故 dump 全量历史。
- **发送者**:他人消息的 `sender` 是对方姓名;系统类消息(面聊总结、类型编号等)照实标注。

## 刷新

数据按 launchd 设定的间隔自动刷新。需要立即刷新时手动跑一次(企业微信须在运行且已登录;失败不会覆盖旧导出):

```bash
"<config.sync.python>" "$SKILL_DIR/sync.py"
```

路径见 `config.json`。**不要**擅自新建/修改后台服务,也不要改动密钥或客户端签名——这些由用户自行配置。

Files in this skill

  • SKILL.md2.7 KB
  • config.example.json806 B
  • launchd/com.example.wecom-local-sync.plist726 B
  • query.py8.6 KB
  • sync.py4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.