skills/chatlab-import/SKILL.md
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.
npx skillsauth add hellodigua/chatlab chatlab-importInstall 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.
Import local chat exports through the chatlab CLI. Always preview the exact write. Treat an explicit request to import as authorization to continue after a successful preview; do not ask for a second confirmation.
For read-only analysis of records already in ChatLab, use chatlab-analyze instead.
Install this skill with:
npx skills add ChatLab/ChatLab --skill chatlab-import -g
chatlab --help
If the CLI is missing, tell the user to install it with npm install -g chatlab-cli. Do not install software without approval. Do not guess between multiple files, and quote the path in every command.
chatlab import "/absolute/path/to/chat-export.json" --dry-run --json
If the user selected an existing session, include --session-id <session-id> in both preview and import.
Summarize only the plan: create or update mode, target session ID, scanned messages, new messages, duplicates, and match method or create reason. Never quote message bodies.
Decide from the preview:
importMode is incremental and newMessageCount is 0, report that the session is already up to date and stop.importMode is incremental and there are new messages, continue automatically without another confirmation.importMode is created, continue automatically. When createReason is ambiguous, preserve existing sessions by creating a new one and explain this choice in the final result.--dry-run, keeping the file, target, and format unchanged:chatlab import "/absolute/path/to/chat-export.json" --json
Report the resulting session ID, import mode, new-message count, and duplicate count from the final JSON envelope.
error.hint only when the correction is unambiguous.FILE_NOT_FOUND, request the correct path. For UNRECOGNIZED_FORMAT, inspect chatlab formats. For IMPORT_IN_PROGRESS, retry later. For INVALID_SESSION_ID, request a valid ID.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
通过 chatlab CLI 安全预览并将本地聊天导出文件导入 ChatLab。当用户要求外部 Agent 从本地 QQ、微信、Telegram、WhatsApp、LINE、Discord、Instagram、Google Chat、ChatLab JSON/JSONL 或其他受支持的聊天导出文件执行首次导入、重新导入或增量更新时使用。
tools
通过 chatlab CLI 分析本地 ChatLab 聊天记录。当用户要求外部 Agent 检查对话、查找证据、总结话题、比较成员,或基于已导入的 ChatLab 数据分析指定人物或群组关系时使用。