cc-usage
Installation
SKILL.md
Claude Code Usage Analyzer
Analyze Claude Code session data to generate usage reports with token counts, cost estimates, billing block tracking, tool usage stats, and per-project breakdowns.
Inspired by paulrobello/par_cc_usage.
How it works
Claude Code stores session data as JSONL files in:
~/.config/claude/projects/(Linux/macOS primary)~/.claude/projects/(legacy Unix)%USERPROFILE%\.claude\projects\(Windows, default)- Custom path via
CLAUDE_CONFIG_DIRenv var (all platforms)
The script parses these files, extracts assistant message token usage, deduplicates by request ID, and computes:
- Total token usage (input, output, cache)
- Cost estimates using Anthropic pricing
- 5-hour billing block tracking with burn rate
- Per-model breakdown (Opus vs Sonnet)
Related skills
More from acaprino/alfio-claude-plugins
python-refactor
>
167file-organizer
>
76legal-advisor
Use PROACTIVELY for any legal question -- contracts, compliance, privacy, IP, employment law, terms of service, NDAs, corporate governance. Expert legal advisor specializing in technology law, compliance, and risk mitigation.
39python-comments
>
35deep-dive-analysis
>
35python-performance-optimization
>
31