Discovers and lists Claude Code session transcripts from .claude/logs/ for analysis...
Discovers and analyzes Claude Code session transcripts from .claude/logs/ directory to help users understand their development workflow and identify optimization opportunities.
Claude should invoke this skill when the user:
Implemented Features:
.claude/logs/Planned Features (not yet implemented):
.claude/logs/ directory for session transcriptsFor each session, displays:
# Shows all dates with available sessions
node .claude/skills/session-analyzer/analyze-session.js
Output:
Available Claude Code session logs:
1. October 17, 2025 (20251017)
2. October 12, 2025 (20251012)
3. October 7, 2025 (20251007)
Run with date to analyze:
node analyze-session.js 20251017
# Shows all sessions from October 17, 2025
node .claude/skills/session-analyzer/analyze-session.js 20251017
Output:
Sessions for October 17, 2025:
1. Session abc123de
Time: 14:32:15
Main: transcript_abc123de_20251017_143215.json
Subagents: 8
2. Session def456gh
Time: 09:15:42
Main: transcript_def456gh_20251017_091542.json
Subagents: 3
Run with session ID to analyze:
node analyze-session.js 20251017 abc123de
# Analyzes session abc123de from October 17, 2025
node .claude/skills/session-analyzer/analyze-session.js 20251017 abc123de
Output (current implementation shows basic info, detailed analysis coming):
Analyzing session: abc123de
Date: October 17, 2025
Main transcript: transcript_abc123de_20251017_143215.json
Subagent transcripts: 8
Subagent transcripts:
- transcript_subagent_backend_abc123de_20251017_143220.json
- transcript_subagent_frontend_abc123de_20251017_143245.json
...
Analysis complete! (Implementation pending)
Next steps:
- Add transcript parsing logic
- Implement workflow analysis
- Generate metrics and recommendations
The script recognizes these filename patterns:
transcript_<sessionId>_<YYYYMMDD>_<HHMMSS>.jsontranscript_subagent_<sessionId>_<YYYYMMDD>_<HHMMSS>.jsonSession grouping is based on the session ID portion of the filename.
Session Discovery: "What sessions do I have from this week?"
Recent Activity Review: "Show me today's Claude sessions"
Workflow Analysis Prep: "Find the session where I built the API"
Subagent Usage Tracking: "How many subagents did I use yesterday?"
.claude/logs/ in the current projectnode .claude/skills/session-analyzer/analyze-session.js [date] [sessionId]
Arguments:
date (optional) Session date in YYYYMMDD format (e.g., 20251017)
sessionId (optional) Short session ID to analyze (requires date)
Options:
--help, -h Show help message
Examples:
node analyze-session.js # List all available session dates
node analyze-session.js 20251017 # List sessions from Oct 17, 2025
node analyze-session.js 20251017 abc123 # Analyze specific session
Workflow recommendation: After discovering sessions with this skill, use the transcript-condenser skill to generate detailed reports:
# 1. Find sessions
node .claude/skills/session-analyzer/analyze-session.js 20251017
# 2. Condense specific session
node .claude/skills/transcript-condenser/condense-transcript.js \
.claude/logs/20251017/transcript_abc123de_20251017_143215.json \
--output=session-report.md
Future enhancements will add:
.claude/logs/ directory with session transcripts