Condenses Claude Code session transcripts into readable summaries by filtering metadata, system notifications, and command artifacts. Use when the user wants to review, analyze, or understand what happened in a Claude Code session, view tool usage patterns, or export session data. Triggers when user mentions "analyze session", "review transcript", "condense logs", "what tools did I use", or similar workflow analysis requests.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
condense-transcript.jsCondenses verbose Claude Code session transcripts from .claude/logs/ into human-readable summaries.
Claude should invoke this skill when the user:
# Condense a single transcript to markdown (stdout)
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file>
# Save condensed version to file
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --output=summary.md
# Output as JSON for automated analysis
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --format=json --output=session.json
# Minimal output (quick overview)
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --verbosity=minimal
# Detailed output (full content)
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --verbosity=detailed
# Show only tool usage
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --only-tools
# Show only subagent interactions
node .claude/skills/transcript-condenser/condense-transcript.js <transcript-file> --only-subagents
# Process all transcripts in a directory
node .claude/skills/transcript-condenser/condense-transcript.js logs/20251017/ --output-dir=condensed/
# Batch process with specific format
node .claude/skills/transcript-condenser/condense-transcript.js logs/20251017/ --output-dir=condensed/ --format=json
The markdown output includes:
The JSON output provides structured data:
{
"session": {
"id": "abc123",
"date": "2025-10-17",
"branch": "main",
"duration": "5m 23s",
...
},
"timeline": [
{
"time": "00:00:15",
"type": "user",
"content": "...",
...
}
],
"summary": {
"toolsUsed": { "Read": 3, "Write": 2 },
"filesModified": 3,
...
}
}
The script automatically removes noise:
isMeta: true)--no-system)Quick Session Review: "What did I do in my last session?"
Tool Usage Analysis: "Which tools did I use most?"
--only-tools flagSubagent Tracking: "How many times did I call the backend-architect?"
--only-subagents flagBatch Reporting: "Generate reports for all sessions this week"
Data Export: "Export session data for analysis"
.claude/logs/YYYYMMDD/ directoriestranscript_[subagent_]<sessionId>_<date>_<time>.jsonnode .claude/skills/transcript-condenser/condense-transcript.js <input> [options]
Arguments:
input Path to transcript file or directory
Options:
--format=<type> Output format: "markdown" (default) or "json"
--output=<file> Output file (default: stdout)
--output-dir=<dir> Output directory for batch processing
--verbosity=<level> Level: "minimal", "standard" (default), "detailed"
--only-tools Show only tool usage
--only-subagents Show only subagent interactions
--no-system Strip all system messages
--include-usage Include token usage statistics
--help, -h Show help message