360 Secure SkillHub
360 安全技能中心

chatpipe-export

通过 scripts/export_session.py 将 OpenClaw、Hermes、ChatGPT、Chatbox 等来源的会话记录导出为 Markdown、chatgpt-json、chatbox-json 或纯文本,保存到工作区,便于导入 Obsidian/Notion 或备份;声明可自动识别 7 种输入格式。lint 提示存在矛盾的动作约束与破坏性动作标记。

hanyuanchen08-netizen
hanyuanchen08-netizen
热度 13.70
最近更新 2026-07-26 21:50:00
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add chatpipe-export
Metadata
name
chatpipe-export
description
Export any AI chat session to Markdown, JSON, or plain text using ChatPipe v1.1. Supports 7 input formats including OpenClaw sessions, Hermes agent logs, ChatGPT exports, and Chatbox exports. Use when the user asks to export/backup their chat history, convert conversations to Obsidian/Notion, or migrate between AI platforms. Free skill wraps the open-source ChatPipe engine. Triggers: "导出聊天记录", "export chat", "save conversation", "backup my chats", "导出到Obsidian", "导出到Notion", "convert to markdown", "chat export".

ChatPipe Export — One-Click AI Chat Export

Export any AI chat session to clean Markdown, JSON, or plain text. No manual file handling. Just say "export this conversation".

Supported Formats

Input (auto-detected)

Format Source
openclaw-json Current / past OpenClaw sessions
hermes-json Hermes agent logs
chatgpt-json ChatGPT data export ZIP
chatbox-html Chatbox exported HTML
chatbox-json Chatbox conversations.json
markdown Role-labeled .md files
plain-text Role-labeled .txt files

Output

Format Use case
markdown Obsidian, Notion, GitHub, VS Code
chatgpt-json Import into ChatGPT tools, API processing
chatbox-json Import back into Chatbox
plain-text grep, shell scripts, minimal storage

Quick Export

To export the current session as Markdown:

python3 scripts/export_session.py --markdown

To export a past session by session key:

python3 scripts/export_session.py agent:main:main --format markdown

To export a Hermes session:

python3 scripts/export_session.py agent:hermes:main --format markdown

How It Works

  1. Fetch the session transcript via OpenClaw API or file system
  2. Pass it through ChatPipe (auto-detects format)
  3. Save the output to the workspace

The helper script scripts/export_session.py wraps both the data extraction and ChatPipe conversion into a single command.

When to Use

User says Do this
"导出这段聊天" Export current session as Markdown
"保存到Obsidian" Export to Markdown, tell user where the file is
"backup my AI chats" Export all recent sessions as Markdown batch
"convert to JSON" Export current session as chatgpt-json
"导出和Akira的对话" Find Hermes session, export as Markdown

Output Location

Exported files are saved to the workspace root with descriptive names: session-{key}-{date}.md

Never delete or move exported files unless the user explicitly asks.