← 返回 Skills 市场
jinghan23

codex-export

作者 jinghan23 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
240
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install codex-export
功能描述
Export a Codex CLI or Codex Desktop (App) session to a Markdown transcript. Use when the user asks to export, save, share, or review a past chat, session, or...
使用说明 (SKILL.md)

codex-export

Export any Codex session (~/.codex/sessions/**/*.jsonl) to a clean Markdown file.

Usage

# List recent sessions (pick by number or copy the ID)
python3 scripts/export.py --list

# Export by session ID
python3 scripts/export.py \x3Csession-id> output.md

# Brief mode: user + assistant only, no tool calls
python3 scripts/export.py \x3Csession-id> output.md --brief

Notes

  • Works with Codex Desktop (source=vscode) and Codex CLI (source=cli/exec)
  • Session IDs come from ~/.codex/state_5.sqlite or the rollout filename
  • System/developer messages and \x3Cenvironment_context> blocks are filtered automatically
  • Tool call outputs are included by default; use --brief to strip them
安全使用建议
This script reads files in ~/.codex (sessions and the state_5.sqlite index) and writes a Markdown file you specify. Before installing or running it: (1) review the small Python file (it’s included) to confirm it only reads local session files and the sqlite DB; (2) be aware exported transcripts may contain sensitive data (API keys, paths, tool outputs) — use --brief to omit tool calls and inspect the output before sharing; (3) run it locally (not as a privileged user) and control the output file location and permissions. The skill’s source is unknown, but the code is short and consistent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: codex-export Version: 0.1.0 The codex-export skill is a utility designed to export local Codex session histories from ~/.codex/ to Markdown format. The script (scripts/export.py) reads session logs and a local SQLite database (~/.codex/state_5.sqlite) to list and format chat transcripts as requested by the user. The code is straightforward, lacks network connectivity, and contains no evidence of malicious intent, data exfiltration, or obfuscation.
能力评估
Purpose & Capability
Name/description match required behavior: the code and instructions only access Codex session JSONL files and the local state_5.sqlite index to list and export sessions, which is exactly what an export tool needs.
Instruction Scope
SKILL.md directs the agent/user to run the included Python script to list or export sessions. The runtime instructions and script operate on local paths (~/.codex/sessions, ~/.codex/archived_sessions, ~/.codex/state_5.sqlite) and do not attempt to read other system-wide configs or send data externally.
Install Mechanism
No install spec or remote downloads; this is an instruction-only skill with a small local Python script — minimal install risk.
Credentials
The skill requires no environment variables, credentials, or network access. It only reads local Codex session files and the local sqlite index, which is proportionate to its stated purpose.
Persistence & Privilege
Skill is user-invocable and not always-enabled; it does not modify other skills or system settings and does not request permanent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codex-export
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codex-export 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of codex-export. - Export Codex CLI or Codex Desktop sessions to Markdown transcripts. - Supports listing recent sessions, brief mode (user + assistant only), and exporting by session ID. - Automatically filters system messages and environment context blocks. - Handles both Codex CLI and Desktop app sessions. - Includes or omits tool call outputs based on `--brief` flag.
元数据
Slug codex-export
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

codex-export 是什么?

Export a Codex CLI or Codex Desktop (App) session to a Markdown transcript. Use when the user asks to export, save, share, or review a past chat, session, or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 240 次。

如何安装 codex-export?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-export」即可一键安装,无需额外配置。

codex-export 是免费的吗?

是的,codex-export 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

codex-export 支持哪些平台?

codex-export 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 codex-export?

由 jinghan23(@jinghan23)开发并维护,当前版本 v0.1.0。

💬 留言讨论