/observability:usage-reportfrom observability
Answers questions about project usage costs, tokens, models, and routing from a JSONL ledger. Runs a summary script to report cost per day, model, category, ticket, or routing.
Ships in observability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer one question at a time from the ledger. Run the summary script, read its small JSON, say what it shows. Never work out a number yourself and never fill a gap with a guess.
node "${CLAUDE_PLUGIN_ROOT}/scripts/summarize.mjs" <project path> --by <grouping> [--since <date>] [--top <n>]
<project path> is the project root (a subfolder works too). A ledger file ending in .jsonl works as well. The script reads every ledger of the project: the one file per session this version writes, and the one file per project the older version wrote, rolled-aside files included.
| Question | Arguments |
|---|---|
| Cost and tokens per day | --by day |
| Tokens per model | --by model |
| Cost per kind of work | --by category |
| Cost per ticket | --by ticket |
| Which turns cost the most | --top 10 (no --by) |
| Routed versus unrouted agents, and the model each ran on | --by routing |
--since takes a date like 2026-11-01. For "this week" or "yesterday", work out the date first. Output is capped at 20 rows unless --top says otherwise.
recorded: false means nothing is recorded: the ledger is empty, missing, or has no turns in the range. Say "not recorded", give the reason, and say plainly that history only starts once /track on is typed in this project, so there is nothing to look back at yet. Ask the one question: record this project from now on? Stop there.error means the arguments were wrong. Fix them and run again.turnsConsidered is how many turns the figures cover. Say it, so the reader knows the size of the sample.costUsd is the sum of the engine's own per-turn cost. turnsWithoutCost counts turns where the engine gave no cost. Those turns are not in the sum. Mention it when it is above zero.input, output, cacheRead, cacheWrite.(none or mixed). Say so when that row is large, since it means the split is partial.categories, requestedModels and resolvedModels as counts. requestedModels is what the routing table asked for, resolvedModels is what the agent really ran on, and they can differ. The report's ledgerFiles lists the files it read.Run --by category and --by routing, then compare cost per category with the models the agents resolved to. Report what the figures show: which categories cost most, which ran on a different model than requested. Do not call routing good or bad from cost alone, since the ledger holds no quality outcome. Say that if asked.
Plan limits and the current session's totals are in the built-in /usage. Point there for them. Prompt text beyond the first line of a session, code, tool inputs and results are never recorded. For charts across every recorded project, the person runs /usage-page.
/track on and /track off.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub eigenwise/eigenwise-toolshed --plugin observabilityOther plugins' skills for the same job