session-export

session-export is a skill for Claude Code from AndrewDongminYoo/cc-agents-kit. It costs 64 tokens per session (479 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: reads .claude/ paths; mentions subagents; mentions Claude Code.

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

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.

agentmods
npx agentmods add skills/andrewdongminyoo/cc-agents-kit/session-export
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.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00064 $0.00479
Opus 5 $0.00032 $0.00239
Sonnet 5 $0.00013 $0.00096
Haiku 4.5 $0.00006 $0.00048

Measured 5d ago against content hash 1a7eea47de2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 45 lines

What it actually says

Session Export

Render a session .jsonl transcript from ~/.claude/projects/<munged-cwd>/ into a markdown document with ## 👤 User · time / ## 🤖 Claude · time sections, prose kept in full, and tool activity collapsed into <details> blocks.

Usage

session-to-md is on PATH whenever this plugin is enabled — it ships in the plugin's bin/, so there is no path to resolve.

# Export the current project's most recent session (this session) to ~/Downloads
session-to-md

# List this project's sessions (id, time, size, first-prompt preview)
session-to-md --list

# Export a specific session by id, or the Nth most recent
session-to-md <session-id>
session-to-md --last 2

# Options
#   --out <file|dir>   output path (default: ~/Downloads/<date>-<title>.md)
#   --tools none       prose only — drop tool calls and results
#   --tools full       keep full untruncated tool results (default truncates at 1200 chars)
#   --thinking         include thinking blocks as blockquotes

Workflow

  1. Run with no arguments for "export this session"; the newest .jsonl for the current cwd is the running session.
  2. If the user asks for an older or different session, run --list first and let them pick by id or preview line.
  3. Print the output path the script echoes, and offer --tools none when the user only wants the readable conversation.

Notes

  • Sidechain (subagent) entries, system reminders, and harness bookkeeping events are filtered out; slash-command invocations render as a single `/command args` line.
  • The exporter reads local transcripts only — nothing leaves the machine.
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. 5d 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 (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 64 tokens to every session and 479 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

atl-fetch-confluence

Skill "atl-fetch-confluence" from lc-semba-ryuichiro/semba-claude-plugins, covering confluence 情報取得ガイド, 目次, 概要, 事前準備チェックリスト and 実行方法.

lc-semba-ryuichiro/semba-claude-plugins · 85 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

x-nets

Enhanced netstat module with cached data and structured output. View network connections, routing tables, and interface statistics in interactive or TSV/CSV formats. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 69 tokens

sheet-music-publisher

Converts mastered audio to sheet music and creates printable songbooks. Use after mastering when the user wants sheet music or a songbook for their album.

bitwize-music-studio/claude-ai-music-skills · 36 tokens

better-auth

Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.

secondsky/claude-skills · 53 tokens

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

secondsky/claude-skills · 50 tokens