/pds:exportfrom pds
Exports Claude Code session JSONL files to human-readable markdown with role markers and timestamps. Use to save, review, or share conversation transcripts.
Ships in pds. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Export Claude Code session JSONL files to human-readable markdown.
Output also feeds the dev-diary pipeline in
/pds:finish—scripts/assemble-diary.shcallsexport-session.shto produce the raw transcript block that lives inside the diary comment's<details>wrapper.
Run the export script:
# Export current/latest session to stdout
scripts/export-session.sh
# Export specific session
scripts/export-session.sh <session-id>
# Save to file
scripts/export-session.sh -o docs/conversations/session-name.md
# List available sessions
scripts/export-session.sh --list
| Var | Purpose |
|---|---|
TRANSCRIPT_PATH | Absolute path to the JSONL. Skips CWD-hash session discovery entirely — canonical source is the transcript_path field in hook payloads. |
FILTER_BRANCH | If set, JSONL entries are filtered to those whose gitBranch matches (entries without gitBranch, like early-session system messages, pass through). Produces a tighter, branch-scoped transcript. |
Or from the plugin root:
$CLAUDE_PLUGIN_ROOT/scripts/export-session.sh
The exported markdown uses role markers for readability:
| Marker | Role |
|---|---|
| 👤 Human | User messages |
| 🔵 Claude | Assistant text + tool calls |
| 🤖 Agent | Teammate/subagent messages |
| ⚙️ System | Slash commands |
| ⚙️ Shell | Terminal commands run by user |
Tool calls appear as compact 📎 lines showing the tool name and key parameters.
Timestamps are shown on every message. System reminders, XML tags, and internal metadata are stripped for readability.
Session JSONL files are stored at:
~/.claude/projects/<project-hash>/<session-id>.jsonl
Each project directory corresponds to a working directory. Use --list to see available sessions with their sizes and dates.
Save exported sessions to docs/conversations/ with descriptive names:
docs/conversations/2026-04-02-v4.8.0-session.md
docs/conversations/2026-03-31-source-analysis.md
scripts/efficiency-chart.sh — Value stream visualization from telemetryWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rmzi/portable-dev-system --plugin pds22 skills in this plugin
/bugfix/bugfix — Test-First Bug Fix ProtocolFixing bugs using a test-first disciplined loop. Use when a bug is reported or discovered and needs a verified fix with minimal blast radius./bump/bump — Version Bump WorkflowBumping project version and updating changelog atomically. Use when releasing a new version — patch, minor, or major./checkpoint/checkpoint — Save PointSave a checkpoint — bump version, commit, push. Use when work is complete and ready to ship without the full finish protocol.Other plugins' skills for the same job