Cost Tracking
Report Claude Code token spend by model, session, and date from the local ECC cost metrics log.
- What
- Report Claude Code token spend by model, session, and date from the local ECC cost metrics log.
- Cost
- Free
- Needs
- Use "Cost Tracking" with your Muse.
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor: a reporting skill that reads the JSONL metrics log written by ECC's stop:cost-tracker hook (~/.claude/metrics/costs.jsonl). Each row is a cumulative snapshot per session, so the skill reduces to the latest row per session_id before summing, then reports today's spend vs yesterday, the total across sessions, a by-model breakdown, and session counts, with copy-paste node one-liners for summaries and CSV export. Reporting guidance included (four-decimal formatting under a dollar, two above), plus anti-patterns: never sum every row (double counting), prefer the tracker's estimated_cost_usd over hand-computed pricing, never assume the log exists, never fabricate data. By @affaan-m, listed here with credit to its creator. From the affaan-m/ECC repository (MIT). Honest caveats: it reads LOCAL Claude Code/ECC logs on your machine; inside Muse, paste a log excerpt or describe what you need, it cannot reach your machine's files by itself. The log only exists if the ECC cost-tracker hook is enabled; with no log, it tells you so instead of inventing numbers. Skill Harbor never reviews the code, review it yourself before use.
Version:
Install
Copy the install package below, then paste it into MuseCommunity-built. Skill Harbor doesn't audit code — review the source before installing.
Use "Cost Tracking" with your Muse. Prerequisites: the Muse app (mobile or web). For live data: Claude Code with ECC's stop:cost-tracker hook enabled, which writes ~/.claude/metrics/costs.jsonl on your machine. 1. Open the skill: https://github.com/affaan-m/ECC/blob/main/skills/cost-tracking/SKILL.md and copy the full SKILL.md text. 2. Paste it into a chat with Muse and add: "Using the cost-tracking method, [summarize my spend for the last 7 days by model / export last month to CSV]. Here is my costs.jsonl excerpt: [paste]." 3. Ask Muse to reduce to the latest row per session_id first (the skill explains why), then produce the today-vs-yesterday, by-model, and total views. Tip: always check the log exists before trusting any number. No log, no data, no guessing. Safety: a skill is plain-text instructions; it runs nothing by itself. The log may contain project paths; share only what you are comfortable sharing, and review anything Muse proposes before it acts.
Saved to your recent installs. Find it anytime on /connect.
Questions
How do I install a build?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.