AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Session Export

skill-crossoverjie-skills-session-export · by crossoverJie

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.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-crossoverjie-skills-session-export

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-crossoverjie-skills-session-export)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Session Export? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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  [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
  • --summarize: Request a summary to be generated after export
  • --no-subagents: Exclude subagent conversations
  • --max-tool-output: Max characters per tool output in export (default: 5000)
Examples

Export current session:

python3 skills/session-export/session_export.py --output-dir /tmp/sessions

Export a specific session:

python3 skills/session-export/session_export.py --session-id abc12345-... --output-dir ~/exports

Export without subagent conversations:

python3 skills/session-export/session_export.py --output-dir ./exports --no-subagents

Export with summary:

python3 skills/session-export/session_export.py --output-dir ./exports --summarize

Mode 2: AI Fallback Export

When the script exits with code 2 (Claude Code logs not found), the AI should fall back to writing the conversation directly from its current context:

  1. Create a markdown file in the specified output directory using the same format:
  • YAML frontmatter with session_id, project, exported_at, message_count, export_mode: ai-context
  • Each message as ## User / ## Assistant with timestamps if available
  • File named session-fallback-.md
  1. Write each message from the current conversation context verbatim
  2. Note: messages compressed from context earlier in the conversation may be lost in this mode

Summarize Mode

When --summarize is passed:

  • Claude Code mode: After the script exports the raw conversation, read the exported file and generate a concise summary saved as *-summary.md alongside the original
  • Fallback mode: After writing the raw conversation, generate the summary file

The summary should include:

  • Key topics discussed
  • Decisions made
  • Code changes performed
  • Outstanding issues or follow-ups

Output

Success (exit code 0):

Exported to: /tmp/sessions/session-1e2b749d-2026-02-06-210100.md
Session: 1e2b749d-f2c1-4a91-b248-6331e48abd6a
Messages: 42
Subagents: 3

Fallback needed (exit code 2):

Claude Code log directory not found (~/.claude/projects/).
FALLBACK_MODE: AI should write conversation from context directly.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.