From daymade-claude-code
Analyzes local Claude Code token usage, cost, quota burn, model mix, and cache metrics using ccusage data. Answers why quota was exhausted or which model is expensive.
How this skill is triggered — by the user, by Claude, or both
Slash command
/daymade-claude-code:claude-usage-analystThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to produce evidence-based usage explanations from local `ccusage` data. Separate observed numbers from interpretation, and explain quota burn in human terms.
Use this skill to produce evidence-based usage explanations from local ccusage data. Separate observed numbers from interpretation, and explain quota burn in human terms.
Verify ccusage is available:
ccusage --version
If missing, install or update with npm install -g ccusage@latest or run with npx ccusage@latest.
Run the bundled analyzer for the requested window:
python3 /path/to/claude-usage-analyst/scripts/analyze_claude_usage.py \
--since YYYY-MM-DD --until YYYY-MM-DD --timezone Asia/Shanghai
Default --since/--until is today in the selected timezone.
For historical comparison, set --since to an earlier date such as the first day of the month; otherwise rank/median fields only describe the single target day.
If the user asks about a specific model comparison, pass aliases:
python3 scripts/analyze_claude_usage.py --model-a fable --model-b opus-4-8
Read references/explanation-guide.md when writing the final answer.
ccusage output or the bundled analyzer output.ccusage claude measures local Claude Code usage logs, including Claude Desktop's Claude Code sessions when those local logs exist. It is not a complete ordinary Claude.ai chat bill.Use this structure unless the user asks otherwise:
Keep the answer readable for non-technical users. Avoid unexplained terms like "cache read" without a one-sentence translation.
npx claudepluginhub daymade/claude-code-skills --plugin daymade-claude-codeParses Claude Code JSONL session logs into a local SQLite database and serves a browser dashboard with charts for token usage, cost estimates, and session history.
Displays real token usage and estimated savings for current Claude Code session from session logs—no AI estimation. Invoke via `/genshijin-stats` for session stats, `--all` lifetime totals, `--share` summaries, or `--since` periods.
Analyzes Claude Code token usage and cost trends over daily/weekly/monthly periods, computes metrics like averages, peak days, trend direction, and monthly projections, with per-project filtering.