cost-report
Skill617 starsChanged 10 months agoMITView on GitHub
Query and report on API usage costs across LLM, embedding, and tool providers
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
When the user asks "how much have I spent" or "show me my usage"
- Distinctive: line 20
When evaluating whether to switch models or providers based on cost efficiency
- Distinctive: line 22
After a heavy ingestion or research session to assess the cost impact
- Distinctive: line 26
Determine the time window: Default to the current billing period (calendar month) unless the user specifies a range.
- Very specific: line 27
Query the ledger: Use query_usage with the appropriate date range.
- Distinctive: line 38
Compare to budget: If a budget threshold is configured, compare current spend and projection against it.
- Distinctive: line 43
Always show actual numbers, not vague descriptions.
- Distinctive: line 45
When projecting monthly cost, note that it is an extrapolation and actual spend may vary.
- Distinctive: line 46
If the usage ledger is empty or the query returns no data, say so plainly rather than reporting zeros that could be misleading.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- 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.
- Query the ledger: Use
query_usagewith the appropriate date range. The tool returns rows from theapi_usagetable with provider, model, token counts (input/output), and computed cost. - 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
- Compute key metrics: Calculate:
- Total spend for the period
- Average daily cost
- Cost per conversation (if trackable)
- Projected monthly cost at current burn rate
- Compare to budget: If a budget threshold is configured, compare current spend and projection against it. Flag if on track to exceed.
- 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.
Other versions5 projects use a version of this.
Word for word · 1
- QuixiAI/Hexis★ 617100% same
Edited · 0
None found.
Wrote their own version · 4
- Manavarya09/cost-guardian★ 35same name
- jpoindexter/theft-kit★ 1same name
- telerik/observability-skills★ 1same name
- YadavSanjay/ClaudeConfig-Public★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audio-analysisSkill
- calendarSkill
- code-executionSkill
- connector-action-authorizationSkill
- core-memorySkill
- councilSkill
- crm-lookupSkill
- daily-briefingSkill
- delegationSkill
- email-digestSkill
- expense-captureSkill
- github-issuesSkill
- gmail-actionsSkill
- gmail-connector-setupSkill
- home-assistantSkill
- host-nodeSkill
- humanizerSkill
- image-genSkill
- inbox-triageSkill
- integration-connector-setupSkill
- knowledge-ingestSkill
- meeting-follow-upSkill
- meeting-prepSkill
- memory-exchangeSkill
- notionSkill
- operationsSkill
- outreachSkill
- personal-notesSkill
- researchSkill
- self-inspectionSkill
- self-reflectionSkill
- skill-authoringSkill
- speechSkill
- spotifySkill
- travel-prepSkill
- trelloSkill
- twitter-x-actionsSkill
- twitter-x-connector-setupSkill
- weatherSkill
- weekly-reviewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

