skills/chatlab-analyze-cn/SKILL.md
通过 chatlab CLI 分析本地 ChatLab 聊天记录。当用户要求外部 Agent 检查对话、查找证据、总结话题、比较成员,或基于已导入的 ChatLab 数据分析指定人物或群组关系时使用。
npx skillsauth add hellodigua/chatlab chatlab-analyze-cnInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过只读 chatlab CLI 查询和分析已经导入 ChatLab 的聊天记录。
如果要导入新的聊天导出文件,请使用 chatlab-import-cn。
安装命令:
npx skills add ChatLab/ChatLab --skill chatlab-analyze-cn -g
检查 CLI、读取当前命令契约并列出会话:
chatlab --help
chatlab manifest
chatlab sessions list --format json
只有一个相关会话时直接使用;多个会话或成员都可能匹配时,让用户从返回的候选项中选择。
先使用能直接回答问题的最简单命令:
chatlab messages search "<keyword>" --session <session-id> --format agent
chatlab messages between --member me --member <member> --session <session-id> --last 90d --format agent
chatlab topics list --session <session-id> --last 30d --format agent
读取消息文本时使用 --format agent;侦察会话、成员、数量和 --no-content 搜索等结构时使用 --format json。
只有第一步结果不足时再深入:
chatlab messages context --id 1021 --session <session-id> --window 10 --format agent
chatlab stats keywords --session <session-id> --member <member> --last 90d --top 20 --format json
当 meta.hasMore 为 true 时,保持相同查询条件并使用 --cursor <meta.nextCursor> 继续。通过数量和 Token 参数只获取回答问题所需的上下文。
只有专用命令无法回答时,才使用只读 SQL:
chatlab schema --session <session-id> --format json
chatlab sql "SELECT COUNT(*) AS n FROM message" --session <session-id> --format json
--raw、修改 ChatLab 数据、导入文件、更改配置或启动长期运行的服务。[#1021]、[#1021*] 或 [#1021-1024] 等可用标记引用消息证据。error.hint。development
Convert unsupported local chat exports into validated ChatLab JSONL or JSON by inspecting their structure, writing and running a local Node.js or Python converter, and verifying record counts before import. Use when ChatLab cannot recognize a CSV, HTML, TXT, XML, SQLite/database, vendor-specific JSON/JSONL, archive, or other chat export format, or when a user asks an agent to adapt an unknown chat format for ChatLab.
development
将 ChatLab 暂不支持的本地聊天导出转换为经过验证的 ChatLab JSONL 或 JSON:分析源文件结构,编写并运行本地 Node.js 或 Python 转换脚本,并在导入前核对记录数量。当 ChatLab 无法识别 CSV、HTML、TXT、XML、SQLite/数据库、厂商自定义 JSON/JSONL、压缩包等聊天导出,或用户要求 Agent 适配未知聊天格式时使用。
tools
Safely preview and import local chat export files into ChatLab through the chatlab CLI. Use when a user asks an external agent to import, re-import, or incrementally update ChatLab from a local QQ, WeChat, Telegram, WhatsApp, LINE, Discord, Instagram, Google Chat, ChatLab JSON/JSONL, or other supported chat export.
tools
通过 chatlab CLI 安全预览并将本地聊天导出文件导入 ChatLab。当用户要求外部 Agent 从本地 QQ、微信、Telegram、WhatsApp、LINE、Discord、Instagram、Google Chat、ChatLab JSON/JSONL 或其他受支持的聊天导出文件执行首次导入、重新导入或增量更新时使用。