360 Secure SkillHub
360 安全技能中心

Export

核心功能:运行脚本将本地~/.codex/sessions下的Codex会话JSONL转为Markdown,默认导出当前会话,也可指定会话ID,自动创建导出目录并输出保存路径。典型场景:用户需导出、保存或转换Codex对话时使用。输入可选会话ID,默认读取环境线程ID;输出为存于~/Documents/Exports的Markdown文件,无外部网络操作。

bestisblessed
bestisblessed
热度 56.75
最近更新 2026-05-11 17:45:58
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add export
Metadata
name
export
description
Export a Codex session JSONL from ~/.codex/sessions into a clean Markdown transcript in ~/Documents/Exports. Use when the user wants to export, save, or convert the current Codex conversation or another conversation by session id.

Export Conversation

Run scripts/export_conversation.py.

This exports the current chat by default using the Codex thread id from the environment.

To export a different conversation, pass a raw session id, for example:

scripts/export_conversation.py 019dc927-dac9-7f23-b313-917d776d189e

The script reads from ~/.codex/sessions and writes:

~/Documents/Exports/<session-id>.md

The script creates ~/Documents/Exports when needed.

Print the saved path after running it.

Local Scope

This skill only reads local Codex session JSONL files under:

~/.codex/sessions

This skill only writes Markdown exports under:

~/Documents/Exports

It makes no network calls, reads no credentials, installs no packages, and downloads no external files.