skills/chatlab-analyze/SKILL.md
Analyze local ChatLab chat records through the chatlab CLI. Use when the user asks an external agent to inspect conversations, find evidence, summarize topics, compare members, or analyze a named relationship from imported ChatLab data.
npx skillsauth add hellodigua/chatlab chatlab-analyzeInstall 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.
Query and analyze records already imported into ChatLab through the read-only chatlab CLI.
For importing a new chat export, use chatlab-import instead.
Install this skill with:
npx skills add ChatLab/ChatLab --skill chatlab-analyze -g
Check the CLI, load its current command contract, and list sessions:
chatlab --help
chatlab manifest
chatlab sessions list --format json
Use the only relevant session. If multiple sessions or members match the request, ask the user to choose from the returned candidates.
Use the simplest command that directly answers the question:
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
Use --format agent for message text and --format json for structural scouting such as sessions, members, counts, and --no-content searches.
Only deepen the query when the first result is insufficient:
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
When meta.hasMore is true, continue with --cursor <meta.nextCursor> and the same query conditions. Use limits and token controls to retrieve only the context needed.
Use read-only SQL only when no dedicated command can answer the question:
chatlab schema --session <session-id> --format json
chatlab sql "SELECT COUNT(*) AS n FROM message" --session <session-id> --format json
--raw, modify ChatLab data, import files, change config, or start long-running services.[#1021], [#1021*], or [#1021-1024].error.hint only when the correction is clear.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 或其他受支持的聊天导出文件执行首次导入、重新导入或增量更新时使用。