sderosiaux/claude-warehouse/costs
Claude Code and agent skill by sderosiaux/claude-warehouse
- community
Checking that the SKILL.md file is still in the repository.
Show token usage and estimated costs in dollars for Claude Code sessions. Use when the user asks about spending, costs, token usage, budget, or wants to know how much their AI-assisted development costs. Breaks down by project, model, and time period.
Install
npx vskill@latest install sderosiaux/claude-warehouse/costsSKILL.md
Costs — Token Economics Dashboard
Show token usage mapped to actual dollar amounts.
Run ALL of the following queries and present a clear cost breakdown.
Schema reference (for adapting queries)
When the user specifies a date range, add WHERE clauses. Use these join paths:
Key column differences between tables:
- sessions:
created_at(TIMESTAMP),modified_at - messages:
timestamp(TIMESTAMP) — NO created_at column - tool_calls:
timestamp(TIMESTAMP) — NO created_at column - Ambiguous columns:
tool_nameexists in BOTH messages and tool_calls — always qualify with table alias
To filter tool_calls or messages by date, JOIN through sessions:
Pricing reference (as of 2025)
Use these rates for estimation:
- Claude Sonnet: $3/MTok input, $15/MTok output
- Claude Opus: $15/MTok input, $75/MTok output
- Claude Haiku: $0.25/MTok input, $1.25/MTok output
- Cache reads are ~90% cheaper than input tokens
Note: actual costs depend on the user's plan (Pro/Max/API). Present as estimates.
1. Total spend by period
2. Cost per project (last 30 days)
3. Cost per session (most expensive)
4. Token waste: abandoned high-cost sessions
5. Cache efficiency (money saved)
Presentation
Present as a dashboard with:
- Headline number: estimated total spend this month
- Weekly trend: is spending going up or down?
- Cost by project: ranked table with cache efficiency
- Expensive sessions: the outliers — what happened?
- Wasted tokens: abandoned sessions that cost real money
- Savings from caching: how much CLAUDE.md / project context saves
- Tip: one actionable suggestion to reduce costs (e.g., "Project X has 0% cache hits — adding a CLAUDE.md could save ~$Y/month")
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/costs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sderosiaux/claude-warehouse/costs)