← ClaudeAtlas

session-metricslisted

Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log. Trigger when the user asks about session cost, token usage, API spend, cache hit rate, input/output tokens, or wants a breakdown of how much a Claude Code session has cost. Also trigger for "how much have we spent", "show me token usage", "session summary", "cost so far", or any request to analyse or display per-turn metrics from the current or a past session. Do NOT auto-dispatch compare mode (--compare / --compare-prep / --compare-run / --count-tokens-only) from natural-language phrases. The skill body uses $ARGUMENTS[0] as the dispatch key — if the first positional argument is not literally "compare", "compare-prep", "compare-run", or "count-tokens", route to the default single-session report.
centminmod/claude-plugins · ★ 6 · Data & Documents · score 71
Install: claude install-skill centminmod/claude-plugins
# Session Metrics Runs `scripts/session-metrics.py` against the Claude Code JSONL log to produce a timeline-ordered cost summary with per-turn and cumulative totals. ## Dispatch — how to route this invocation **First positional argument received:** `$ARGUMENTS[0]` **Full argument string:** `$ARGUMENTS` Read `$ARGUMENTS[0]` above and match it by **literal equality** against the table below. Claude Code already tokenized the arguments shell-style, so no parsing is required — just compare strings. | `$ARGUMENTS[0]` | Route | Then read | |---------------------|-------------------------------------------|-----------| | `all-projects` | Instance-wide dashboard aggregating every project under `~/.claude/projects` | `## Instance dashboard (all projects)` below | | `compare` | Two-session compare on JSONLs that already exist | `## Model comparison` below, then [`references/model-compare.md`](references/model-compare.md) before running | | `compare-run` | Fully automated capture: spawns two `claude -p` sessions, feeds the suite, then runs `--compare` | `## Model comparison` below, then [`references/model-compare.md`](references/model-compare.md) "Workflow A — automated" | | `compare-prep` | Print manual capture protocol + 10-prompt suite (fallback when headless is unavailable) | `## Model comparison` below | | `count-tokens` | API-key-only tokenizer check | `## Model comparison` below | | `export`