| name | session-export |
| description | Exports the current AI chat session to a Markdown file. Use this skill when the user wants to export, save, sync, or backup their conversation/chat/session content. Supports both raw export and optional summarization. |
| license | Apache-2.0 |
| metadata | {"author":"crossoverJie","version":"1.0"} |
Session Export Skill
Exports AI chat session conversations to readable Markdown files. Supports two modes for cross-agent compatibility.
Prerequisites
- Python 3 (standard library only, no external dependencies)
Usage
Mode 1: Claude Code Log Export (Preferred)
When running inside Claude Code, the script reads the full JSONL session logs for complete, accurate export (including messages that may have been compressed from context).
python3 skills/session-export/session_export.py --output-dir <directory> [options]
Options
--output-dir: Directory to save the exported markdown (env: SESSION_EXPORT_OUTPUT_DIR, default: current directory)
--cwd: Project working directory to locate session logs (default: current directory)
--session-id: Export a specific session ID (default: most recent)
--name: Custom filename for the exported markdown (without .md extension). AI should summarize the session topic as the name