This skill should be used when the user asks "cost estimate", "ROI", "how much code", "productivity report", "lines of code", "how much did Claude write", "developer cost comparison", "cost savings", "value of Claude", or "cost-estimate". Analyzes Claude Code productivity and compares against senior developer benchmarks. DO NOT trigger on: general pricing questions about Claude plans, API token cost calculations, questions about other AI tools' pricing.
Analyze Claude Code productivity and compare against senior developer benchmarks.
Run python3 ~/commander/projects/cost_estimate.py with the appropriate flags.
python3 ~/commander/projects/cost_estimate.py -v
python3 ~/commander/projects/cost_estimate.py --days 30 -v
python3 ~/commander/projects/cost_estimate.py --days 7 -v
python3 ~/commander/projects/cost_estimate.py --repo ~/Internal App -v
python3 ~/commander/projects/cost_estimate.py --json
python3 ~/commander/projects/cost_estimate.py --csv
python3 ~/commander/projects/cost_estimate.py --senior-rate 120 --senior-loc 40 --subscription 200 -v
python3 ~/commander/projects/cost_estimate.py --no-sessions -v
After running, present the output to the user. If they ask to share it, run with --json and save to a file.
Co-Authored-By tag)-v flag)| Benchmark | Default | Flag | Rationale |
|---|---|---|---|
| Senior dev LOC/hr | 50 | --senior-loc | Production-quality code (not prototype). Industry average for reviewed, tested code. |
| Senior dev rate | $100/hr | --senior-rate | US market average for senior software engineers (2026). |
| Subscription | $200/mo | --subscription | Claude Max plan cost. |
~/.claude/projects/*/*.jsonl~/.claude/stats-cache.json| Problem | Cause | Fix |
|---|---|---|
| No Claude-authored commits found | Missing Co-Authored-By: Claude in commit messages | Ensure git commits include the Co-Authored-By tag |
| Zero hours despite commits | Ran with --no-sessions | Re-run without --no-sessions to include time analysis |
| Files not found | Missing session data | Verify ~/.claude/projects/*.jsonl files exist |
| Stale results | Cached data | Delete ~/.claude/stats-cache.json and re-run |