SkillsReviewed · daymade

Claude Usage Analyst

Claude Usage Analyst is an assistant skill for Claude Code users investigating token use and estimated costs, with coverage limited to available local usage logs. It combines a Python analyzer with explanations of model mix, cached context and five-hour usage blocks; its estimates cannot establish official charges or exact subscription quotas.

Researched 15 Nov 2026

In short.

Claude Usage Analyst is a skill for Claude Code users investigating high token use and estimated costs, but it cannot establish official charges or exact subscription quotas. Its Python helper summarizes ccusage data into a target-day report with model comparisons, cached-context usage and five-hour blocks. Explicit dates matter because its default date is calculated in Asia/Shanghai even when another reporting timezone is requested. Nothing was executed, so runtime behavior and compatibility remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete daymade-claude-code/claude-usage-analyst folder at revision 04b2626e36e0ef2cfd798b800378b162aeaba21f: SKILL.md, agents/openai.yaml, references/explanation-guide.md and scripts/analyze_claude_usage.py, plus the repository-level LICENSE. Other repository skills, ccusage dependency source, actual local usage logs and Claude account records are outside this evidence. No code was executed. Runtime correctness, host integration, dependency compatibility, log completeness and correspondence with official charges or quota accounting remain unassessed.

The overview

Identity

Claude Usage Analyst is the claude-usage-analyst skill in daymade/claude-code-skills. Its original folder is [https://github.com/daymade/claude-code-skills/tree/main/daymade-claude-code/claude-usage-analyst]. It contains assistant instructions, an explanation guide, a Python analyzer and interface metadata.

SKILL.md sets disable-model-invocation to true. The agents/openai.yaml file supplies the display name, a short description and a suggested prompt for explaining today's Claude Code usage.

Assessment

The skill is useful when someone wants to understand why a coding session consumed substantial tokens, whether model choice increased estimated costs, or how repeated context reuse contributed to usage. Its main contribution is combining local usage totals with explanations that a non-specialist can follow.

Its usefulness depends on complete local logs and compatible ccusage output. The supplied material contains no execution results or measured accuracy, and the helper has date-handling and comparison edge cases that matter for unattended reporting.

Users

The intended users are people investigating their Claude Code CLI usage, including Claude Desktop Code sessions when those sessions produce local Claude Code logs. Beginners receive explanations of token categories; developers can inspect structured totals and model ratios.

The scope can include multiple projects and sessions present in the logs. Ordinary Claude.ai conversations may be absent, so this resource does not establish complete usage across every Claude interface.

Capabilities

The analyzer reports total tokens, estimated cost, input, output, cache creation and cache reads for a target day. Cache creation means storing context for reuse; cache reads mean using that stored context again. It also calculates cache-read shares and lists models ordered by estimated cost.

With historical daily records, it calculates cost and token ranks plus earlier-day averages and medians. It can compare two model-name matches using token and cost ratios, and report non-gap five-hour blocks with times, models, entry counts and usage totals. Output is Markdown by default or JSON with --json.

Using it

Requirements

The helper requires Python 3 with zoneinfo support, usable timezone data, a ccusage executable available on PATH, and local usage records that ccusage can read. Its Python imports are from the standard library. Exact supported Python, operating-system and ccusage versions are unspecified.

The documented installation route for ccusage uses npm, which requires an appropriate Node.js/npm environment. Loading the skill into an assistant additionally requires support for its skill format; host installation paths and compatible host versions are not established by these files.

Mechanism

The Python helper starts ccusage claude daily and ccusage claude blocks as subprocesses, passing date, timezone and JSON-output arguments. It parses their output and writes its own summary. It stops when ccusage is missing, a command fails, JSON cannot be parsed, or no daily usage is returned.

The report focuses on the daily record matching --until, falling back to the last returned record when that date is absent. The requested range supplies comparison history; it is not combined into a single range-wide total. Model totals add input, output, cache-creation and cache-read tokens, while estimated costs come from ccusage.

Setup

The documented dependency check is ccusage --version, and the suggested installation command is npm install -g ccusage@latest. Although the instructions also mention npx ccusage@latest, the Python helper specifically requires an executable named ccusage on PATH; it does not invoke npx itself.

The documented analyzer command uses python3 followed by scripts/analyze_claude_usage.py and optional --since, --until and --timezone arguments. Supplying both dates explicitly avoids the default-date timezone issue. The supplied files do not document installation of the complete skill into a particular assistant.

Example

For an illustrative investigation of November 14 using earlier November records as context, the command is python3 /path/to/claude-usage-analyst/scripts/analyze_claude_usage.py --since 2026-11-01 --until 2026-11-14 --timezone Europe/London --json. Replace the placeholder path with the actual folder location.

The source defines JSON fields named scope, targetDay, models, comparison and blocks. Optional --model-a and --model-b arguments select model-name fragments to compare; the defaults are fable and opus-4-8. These are matching strings in the script, not evidence that those models appear in any user's logs. This example was not executed and supplies no measured results.

Assessment & evidence

Limitations

The default date is calculated in Asia/Shanghai before command-line arguments are parsed. Changing --timezone alone therefore does not calculate today's date in that timezone. Blocks are filtered by their local start date, so a block starting on the previous day and continuing into the target day is excluded.

Model comparison uses the first case-insensitive substring match, without aggregating all matching variants. If the comparison denominator has zero tokens or zero estimated cost, the ratio becomes undefined; the Markdown formatter can then fail when formatting that value as a decimal. JSON represents undefined ratios as null.

Many missing numeric fields become zero without schema validation, which could hide incompatible dependency output. Ranks and historical statistics use only the daily records returned by ccusage. Five-hour blocks approximate usage windows and do not establish exact plan accounting.

Reasoning

The explanation guide separates measured totals from interpretations. A large cache-read share means much of the counted context was reused; it does not mean the user typed that volume of text. Comparing both token volume and estimated cost helps explain why similarly sized days can have different estimated costs.

Those patterns support diagnosis, but they do not prove a unique cause. For example, a block's entry count cannot by itself establish how many questions the user asked. The source appropriately cautions that plan details are needed before drawing conclusions about exact quota rules.

Alternatives

The directly supported alternative is using ccusage claude daily and ccusage claude blocks with --json and examining their output yourself. This provides the underlying records without the helper's target-day selection and comparison formatting.

The skill adds derived statistics and a guide for explaining those records. No comparative results against other analytics tools are supplied, so relative accuracy, coverage and usability are unknown.

Evidence

The source consists of SKILL.md, agents/openai.yaml, references/explanation-guide.md and scripts/analyze_claude_usage.py, accompanied by the repository-level LICENSE. The revision-specific folder is [https://github.com/daymade/claude-code-skills/tree/04b2626e36e0ef2cfd798b800378b162aeaba21f/daymade-claude-code/claude-usage-analyst].

The instructions establish intended behavior, while the Python source establishes calculations and error paths. No sample usage logs, generated reports, automated test results or execution receipts are supplied. Nothing was executed; actual output correctness, dependency compatibility and assistant integration remain unassessed.

Access & freshness

Costs

The helper reads estimated dollar costs from ccusage output; it contains no model-pricing table or model API call. The explanation guide explicitly distinguishes these estimates from an official invoice and warns against deriving exact subscription quotas from token totals.

No acquisition fee, current dependency pricing, assistant pricing or Claude plan pricing is supplied. No actual usage or cost measurements are provided, so total operating cost is unknown.

Rights

The supplied repository LICENSE is the MIT License, with copyright attributed to daymade in 2025. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The software is provided without warranty. This notice does not establish the licensing or service terms of ccusage or Claude.

Freshness

The supplied snapshot was captured on 2026-11-15 at 23:47:19.776 UTC from revision 04b2626e36e0ef2cfd798b800378b162aeaba21f. This identifies the source analyzed; it does not establish the commit's publication date.

No release version or dated maintenance history is supplied. The setup instructions request ccusage@latest without pinning a compatible version, so reproducibility across dependency updates is unknown. Changes to the repository after this snapshot are also unknown.

Actions

Before relying on a report, provide explicit dates and timezone, confirm the returned target date, and inspect the exact model names matched. Include earlier dates when historical ranks or medians matter; a single-day window provides no meaningful earlier-day baseline.

Keep official billing and quota conclusions separate from local estimates. For unattended use, address the zero-denominator Markdown failure and decide how overlapping midnight blocks should be handled. Confirm compatibility with the chosen ccusage version and retain MIT notices when redistributing the source.

Evidence for this report

LICENSEnotice · checked 2026-11-15