360 Secure SkillHub
360 安全技能中心

Export

读取 ~/.codex/sessions 下的 Codex 会话 JSONL,按会话 ID(默认使用环境中的当前 Codex 线程 ID)转换为 Markdown 转录,保存到 ~/Documents/Exports/<session-id>.md,运行后打印保存路径。声明本地运行、无网络调用。

bestisblessed
bestisblessed
热度 56.92
最近更新 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.