name: codex-session-to-md description: "Convert a Codex CLI session transcript to Claude-readable markdown. Use when user says 'codex session', 'convert codex', 'codex转md', provides a Codex session UUID, or wants to review a past Codex conversation. Searches ~/.codex/sessions/ by ID fragment." argument-hint: [session-id-or-fragment] allowed-tools: Bash(*), Read, Write
Codex Session to Markdown
Convert a Codex CLI session JSONL transcript to a readable markdown file.
Session ID
User provided: $ARGUMENTS
Steps
-
If no session ID provided, list recent sessions:
python ./codex_session_to_md.py --list -n 20Show the list and ask the user which session to convert.
-
Find and convert the session:
python ./codex_session_to_md.py "$ARGUMENTS"- If multiple matches, show them and ask user to be more specific.
- If no matches, suggest
--listto browse available sessions.
-
Read and summarize the output markdown file. Show:
- Session metadata (cwd, timestamp, model)
- Number of messages
- A brief summary of what the conversation covered (first few user messages)
-
Offer to show the full transcript if the user wants to read it.
Notes
- Session files are stored at
~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl - The UUID in the filename is the session ID
- Partial UUIDs work (e.g.
019e6829matches019e6829-4f2b-7de1-b9f7-ee507b5e5e59) - Output defaults to
./<session-uuid>.mdin the current directory - Use
-o <path>to specify a custom output path
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,180
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,083
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
943