Export a task's session as a markdown transcript from a task directory or an exported task .zip. Use when asked to dump, export, or read a session/task as markdown, review an agent run offline, or inspect the transcript inside a shared task zip.
Scanned 8/31/2026
Install to Claude Code
npx -y skills add instrument-org/instrument --skill session-transcript --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Session Transcript?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/instrument-org-session-transcript)More formats (shields.io, HTML) on the badges page.
---
name: session-transcript
description: Export a task's session as a markdown transcript from a task directory or an exported task .zip. Use when asked to dump, export, or read a session/task as markdown, review an agent run offline, or inspect the transcript inside a shared task zip.
---
# Session Transcript
`script:dump-session-transcript` renders a task's `store.db` into a markdown transcript. It accepts either a task directory or an exported task `.zip` (the same artifact Studio's export/import flow produces), so you can read a session a teammate shared without importing it first.
Run from `packages/workspace`:
```bash
# From a task directory (the folder containing .instrument/store.db)
pnpm run script:dump-session-transcript /path/to/tasks/my-task
# From an exported task zip (extracted to a temp dir, then cleaned up)
pnpm run script:dump-session-transcript ~/Downloads/my-task.zip
# Write to a file instead of stdout
pnpm run script:dump-session-transcript my-task.zip --output transcript.md
```
## What it does
- Picks the root session (warns and uses the first if a task has more than one).
- Renders the selected session via `getSessionMarkdown`
(`src/lib/session-to-markdown.ts`).
- Includes the latest persisted system and agent-context snapshot. Long-running
sessions may have refreshed this snapshot, so it may differ from context used
by earlier responses.
- Emits YAML front matter with task/session identity, model/provider usage,
token totals, AI-generation and elapsed durations, message/tool counts, and
source details.
- Annotates each assistant response with its model, finish reason, token
breakdown, latency, throughput, and full persisted error metadata.
- Preserves user-turn/model-step boundaries, provider sources, file changes,
other persisted data, empty/aborted steps, and interrupted or invalid tool
diagnostics.
## Notes
- Zip handling is shared with the RPC import flow via `src/lib/extract-task-zip.ts`; a zip must contain task settings.
- Reads only; never mutates the task. Output is stdout unless `--output` is set.
- To explore raw session JSON interactively instead, use `script:dump-sessions` (prompts for a task, copies JSON to the clipboard).
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!