AI Chat Export to Markdown
БесплатноЗапускает вложенные скриптыНе проверенExport, backup, or archive AI chat conversations to markdown. Two inputs: public share links (ChatGPT, Claude, Gemini, Grok, Perplexity, DeepSeek, Kimi, Qwen…
от mapleleo-hub428 установок в других каталогахОб этом скилле
chat-share-reader
两个入口,解决同一件事的两半:别人发来的分享链接,和你自己机器上的会话记录。
只需要 Node 22.15 以上(用到内置 WebSocket、node:sqlite 和 zstd)。浏览器和 Python 都是可选的,只有部分站点用得上。
What it reads, what it never does
这一节把能力和边界写清楚,方便审阅时对着代码核。
Reads:
- public share pages, through the same data endpoints the page itself calls
- session files already on this machine:
~/.claude/projects,~/.codex/sessionsand 13 more stores - only when you run
bulk.mjsorbiji-notes.mjs: conversations and voice notes belonging to the account you are already signed in to, through that browser session orBIJI_TOKEN
Never:
- uploads anything. Every byte fetched is written to a local file; no telemetry, no analytics, no reporting endpoint
- sends conversation content to a model. The only network peers are the sites being read
- posts, deletes, or changes settings on any site
- opens the browser profile you use day to day; the DevTools channel has its own directory
- runs shell commands other than launching the browser and the pinned Convolvger CLI
The one deliberate exception: bulk.mjs goes through opencli to reuse the session you are already signed in to, which is the only way to read your own history without asking for a password. It writes files locally and stops there.
Browser channel: launches Chrome or Edge with its own profile directory (~/.chat-share-reader/chrome-profile, override with CSR_PROFILE) on its own debug port (default 9333, CSR_PORT). It reuses a running browser only when the port and the profile both match what it recorded itself in ~/.chat-share-reader/browser.json; a debug port owned by any other process is skipped, not borrowed.
Convolvger channel: pinned to convolvger==0.7.0 via uvx --from, so the code that runs is the code that was reviewed. Change it with CSR_CONVOLVGER_SPEC.
Redaction: API keys, JWTs, bearer tokens and cloud credentials are masked at every level except --redact off. Home paths are masked by default. Emails and private IPs need --redact strict.
输出语言跟随系统 locale,也可用 CSR_LANG=en 或 CSR_LANG=zh 强制。终端提示、导出文件的元信息标题、角色名都跟着变。
CSR_LANG=en node scripts/sessions.mjs list --limit 5
# 分享链接(十个站点)
node scripts/read.mjs <url> [更多 url...] [--out DIR] [--stdout] [--json] [--redact off|home|strict]
# 本地会话(16 个源)
node scripts/sessions.mjs list [--source claude|codex|workbuddy|all] [--limit 20] [--cwd 子串]
node scripts/sessions.mjs search <关键词> [--limit 20] [--cwd 子串]
node scripts/sessions.mjs export [<id 前缀或路径>] [--current] [--stdout] [--full] [--json]
node scripts/sessions.mjs export --redact off # 要完整原文时
node scripts/sessions.mjs export --redact strict # 额外遮邮箱、令牌、内网 IP
# 得到笔记账号内录音笔记批量导出(要 opencli 取登录态)
node scripts/biji-notes.mjs list --since 2026-11-01 [--type class_audio]
node scripts/biji-notes.mjs export --since 2026-11-11 --until 2026-11-12 --out DIR --transcript
典型用法:sessions.mjs export <id> --stdout 接管道,把上一轮会话的上下文喂给当前的 agent。
用户说「把这个对话存下来」时,直接 node scripts/sessions.mjs export --stdout,不给 id 也不给路径。它会先读宿主 agent 传进环境的会话标识(CODEBUDDY_SESSION_ID、CLAUDE_SESSION_ID、CODEX_THREAD_ID 等),读不到再按工作目录 + 最近 60 分钟活跃时间挑一个,并在 stderr 打印挑中的是哪个。这条兜底是启发式的:同目录同时开着两个会话时可能挑错,看到打印出来的 id 不对就改用显式 id。
脱敏
导出默认脱敏(home 档):家目录换成 ~,同机其他用户的家目录换成 ~user,目录结构保留,读起来不影响理解。文件头会写一行 脱敏:home (N 处)。
三档:off 原文、home 默认、strict 再加遮邮箱、令牌(sk-、ghp_、JWT、Bearer)、内网 IP。公网 IP 和 commit hash 不动,这些通常是有意义的信息。read.mjs、sessions.mjs、bulk.mjs、biji-notes.mjs 都走同一条路径(lib/redact.mjs),vendor 通道产出的是别人拼好的 markdown,落盘后就地再过一遍。
脱敏是幂等的,对已脱敏的文件再跑一次不会有二次变化。--json 输出里 segments 保持原样,那是给下游继续读文件的句柄;title、body 这些会被展示或分享的字段才脱敏。
分享链接
默认写到 ./chat-shares/<标题>.md。--stdout 直接打印,--json 给结构化结果,--no-vendor 强制跳过 Convolvger(调试用)。多个链接一次跑完,单条失败不影响其他条。
三个通道,按站点分流
| 通道 | 站点 | 依赖 |
|---|---|---|
| HTTP(直连接口) | ChatGPT、WorkBuddy、得到大脑(biji.com) | 只要 Node 22.15+ |
| Convolvger(第三方 CLI) | Gemini、DeepSeek、Kimi、Qwen | Python 3.12+ 或 uv,uv tool install convolvger |
| 浏览器 | Claude、Perplexity、Grok | Chrome/Edge,或 opencli |
scripts/lib/backend/ 下有两个浏览器实现,自动选:
- opencli:本机装了就用(
OPENCLI_BIN或~/bin/opencli),复用已有登录态。 - cdp:没有 opencli 时,用 Node 内置 WebSocket 直连 Chrome/Edge 的 DevTools 协议,零 npm 依赖,跨平台。
cdp 后端首次访问有 Cloudflare 挑战的站点时会打印提示,等你在弹出的窗口里手动过一次验证,之后 cookie 存在持久 profile 里。
得到大脑(biji.com)分享笔记
www.biji.com/note/share_note/<id>。不要开浏览器,页面是 Vue SPA,桌面视口渲染出来整屏空白,只有移动端视口出内容,而且正文懒加载,DOM 抓取会整段丢(实测漏掉「课堂金句」小节)。
免认证接口直接给全量,不需要 cookie、Referer,也不校验 UA:
| 接口 | 内容 |
|---|---|
/voicenotes/web/share/notes/<id> |
c.note.content 是笔记 markdown 原文,含智能总结、课堂实录、金句、待办 |
/voicenotes/web/share/notes/<id>/original |
c.content 是字符串化的 JSON,解析后取 sentence_list,每句带 start_time / end_time(毫秒) |
/voicenotes/web/share/notes/<id>/sprouts |
子笔记,多数为空,默认不取 |
两处口径:
- 正文里的回听深链
[00:54:00](https://getnotes.seek:3240)只在 App 里能跳,导出前还原成 `**00:54:00
Установить AI Chat Export to Markdown в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл AI Chat Export to Markdown?
Export, backup, or archive AI chat conversations to markdown. Two inputs: public share links (ChatGPT, Claude, Gemini, Grok, Perplexity, DeepSeek, Kimi, Qwen, WorkBuddy, biji.com) and 15 local agent session stores (Claude Code, Codex, Cursor, opencode, Cline, Gemini CLI and more). Use when the user asks to save a shared conversation, export the chat they are in now (no args), search past sessions, filter by directory, batch export a site, read a compressed .jsonl.zst archive, or feed a session into another agent. Bulk mode exports your own accounts' history through the browser session you are already signed in to. Tokens are always masked, home paths by default, emails with --redact strict. Also exports biji.com voice notes and transcripts. 导出、备份、归档 AI 对话为 markdown,支持分享链接与本机 15 种 agent 会话记录;不传参数导当前会话,可搜索、筛选、批量导出、读压缩归档、喂给另一个 agent;令牌一律遮,家目录默认遮;另可导出得到笔记录音与逐字稿。
Как установить скилл AI Chat Export to Markdown?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл AI Chat Export to Markdown запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic