Аналитика сессий Claude Code в HTML-отчёте
★ 8.6 · documentation
session-report is a Claude Code skill that analyzes session transcripts from ~/.claude/projects and produces a self-contained interactive HTML report covering token usage, cache efficiency, subagents, skills, and expensive prompts. The bundled analyze-sessions.mjs script collects data for a configurable window — 24h, 7d, 30d, or all time — and outputs a JSON with sections for overall, by_project, by_subagent_type, by_skill, cache_breaks, and top_prompts. The skill copies a bundled template (with pre-built JS/CSS for sorting, bars, and drill-downs), injects the JSON blob, then fills an anomalies block with 3–5 findings expressed as percentages of total tokens and an optimizations block with 1–4 actionable suggestions tied to specific projects or prompts. It's built for developers and teams who need visibility into Claude Code spending, want to spot cache-hit rates below 85%, or identify subagent calls averaging over 1M tokens per invocation.
- #session-analytics
- #token-tracking
- #performance-metrics
- #html-reporting
- #usage-analysis