cost-report
Query and report on API usage costs across LLM, embedding, and tool providers
Skill by rajacsp
Chalk Labs
Need help deploying cost-report?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rajacsp-cost-report
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
cost-report- Description
- Query and report on API usage costs across LLM, embedding, and tool providers
- License
- MIT
- Instructions
- 39 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Usage Cost Reporting Query the API usage ledger and produce clear, actionable cost reports broken down by provider, model, and time period. ## When to Use - When the user asks "how much have I spent" or "show me my usage" - During heartbeats to check if spending is approaching a configured budget threshold - When evaluating whether to switch models or providers based on cost efficiency - As part of a daily or weekly briefing that includes operational metrics - After a heavy ingestion or research session to assess the cost impact ## Step-by-Step Methodology 1. **Determine the time window**: Default to the current billing period (calendar month) unless the user specifies a range. Common windows: today, this week, this month, last 30 days, custom range. 2. **Query the ledger**: Use `query_usage` with the appropriate date range. The tool returns rows from the `api_usage` table with provider, model, token counts (input/output), and computed cost. 3. **Aggregate by dimension**: Break down the raw data into useful summaries: - **By provider**: Total cost per provider (OpenAI, Anthropic, local inference, etc.) - **By model**: Cost per model to identify which models consume the most budget - **By category**: Separate LLM inference costs from embedding costs from tool API costs - **By day**: Daily trend to spot spikes or patterns 4. **Compute key metrics**: Calculate: - Total spend for the period - Average daily cost - Cost per conversation (if trackable) - Projected monthly cost at current burn rate 5. **Compare to budget**: If a budget threshold is configured, compare current spend and projection against it. Flag if on track to exceed. 6. **Present the report**: Format as a clean table or summary. Lead with the headline number (total spend), then break down by the most useful dimension. ## Quality Guidelines - Always show actual numbers, not vague descriptions. "You have spent $4.32 this month" is useful; "you have moderate usage" is not. - Round costs to two decimal places for readability. - When projecting monthly cost, note that it is an extrapolation and actual spend may vary. - If the usage ledger is empty or the query returns no data, say so plainly rather than reporting zeros that could be misleading. - In heartbeat context, only generate a cost report if spend is approaching a threshold or if a goal explicitly asks for cost monitoring. Do not waste energy on routine cost checks every heartbeat. - Protect cost data as operational metadata. Do not expose it to external services.
From rajacsp/hexnostic, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 30, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rajacsp/hexnostic
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get cost-report running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
cost-report skill. Agent Mart. https://agentmart.dev/skills/rajacsp-cost-report (last updated 2026-10-24)