session-export

session-export is a skill for Claude Code from AndrewDongminYoo/cc-agents-kit. It costs 45 tokens per session (1,564 once invoked), scanned A, original, Apache-2.0.

A tool for exporting a Claude Code session transcript into readable chat-style Markdown. It keeps the conversation text and can hide tool activity inside collapsible sections.

In plain words
What is it for?
Use it to export the current or an older session, list available sessions, choose an output path, and create prose-only or detailed Markdown records.
Why use it?
It turns a raw session log into a document that is easier to save, archive, or reread. Options can include or omit tool calls and thinking blocks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the context-handoff plugin — 6 skills, 2 hooks shipped together

Good fit Use it to export the current or an older session, list available sessions, choose an output path, and create prose-only or detailed Markdown records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewdongminyoo/cc-agents-kit/session-export
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AndrewDongminYoo/cc-agents-kit --skill session-export
Clone the repo
git clone --depth 1 https://github.com/AndrewDongminYoo/cc-agents-kit

Made for: Claude Code.

Or install context-handoff, the plugin that ships this one along with the rest of its 6 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/session-export/github.svg)](https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/session-export)
Your own site
<a href="https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/session-export"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/session-export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/session-export"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/session-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,564 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01564
Opus 5.5 $0.00018 $0.00626
Sonnet 5.5 $0.00009 $0.00313
Haiku 4.5 $0.00005 $0.00156

Measured 10d ago against content hash a7732360972d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/context-handoff/skills/session-export/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Export

Export a local Claude Code JSONL transcript as Markdown, standalone HTML, or structured JSON. Markdown is the default format. Tool details and thinking are excluded unless the user requests them.

Usage

session-to-md ships in the plugin's bin/ and is on PATH when the plugin is enabled. Use the same command for all formats.

session-to-md "${CLAUDE_SESSION_ID}"
session-to-md "${CLAUDE_SESSION_ID}" --format html
session-to-md "${CLAUDE_SESSION_ID}" --format json

Claude substitutes the current session ID into this skill before execution. This does not depend on a shell environment variable. If the substitution is unavailable, use --list and select an exact ID. Do not describe the newest transcript as the active session without that evidence.

Formats

Format Output
md Conversation sections and expandable tool blocks when requested.
html A standalone report with export counts, tool expansion controls, and a responsive layout.
json Filtered records, metadata, and export diagnostics under schema_version: 1.

HTML displays message text literally, including Markdown syntax. It escapes transcript markup and does not load external resources. Use Markdown output in a Markdown viewer when rendered headings, lists, and links matter. The light report theme uses a single reading column and distinct tool cards, with compact navigation when --toc is set. The font stack uses Inter when available locally, with system fonts as a fallback. Summary counts describe included records, not all activity in the source session. Markdown folding requires a viewer that supports HTML details.

All formats use the same record filter and tool limits. An explicit .md, .html, or .json output extension must match --format.

Read the full file on GitHub · 177 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed a7732360972d
  2. 1mo ago Changed 1ccde0ccb4fd
  3. 2mo ago Changed · +10 lines 2cc59ee92954
  4. 2mo ago Changed · +122 lines · -19 tokens per session 8316572bf848
  5. 3mo ago First seen · 45 lines · 64 tokens per session scan A 1a7eea47de2c

Subscribe to this mod's changes

session-export is a skill published in the GitHub repository AndrewDongminYoo/cc-agents-kit (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 1,564 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

session-export compared with skills from other repositories

session-export next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-exportAndrewDongminYoo/cc-agents-kitSkill3yesterdayApache-2.0A45Claude Code
atl-fetch-confluencelc-semba-ryuichiro/semba-claude-pluginsSkill17mo agoMITA85Claude Code
processme2resh/apexyardSkill555todayMITA32Claude Code
sheet-music-publisherbitwize-music-studio/claude-ai-music-skillsSkill7296d agoCC0-1.0A36Claude Code
remote-fleet-opsAI-Shell-Team/aishSkill591yesterdayApache-2.0A88Claude Code
publishingdanjdewhurst/story-skillsSkill481yesterdayMITA204Claude Code
github-project-automationsecondsky/claude-skillsSkill2572d agoMITA45Claude Code