measuring-costlisted
Install: claude install-skill orobsonn/claude-harness
# Measuring-Cost — per-delivery cost + weekly consumption proxy
**Announce at the start (in pt-br):** "Usando measuring-cost para medir o custo da entrega."
This skill surfaces, in product-language for the operator, two numbers:
- **Session cost** — the API-equivalent dollar cost of the current run, with a per-model breakdown.
- **Weekly trend** — total Claude Code consumption this week vs. last week (spans **all** projects, since `ccusage` reads every transcript).
The weekly figure is a **real consumption proxy, not a subscription %** — Anthropic's subscription limits are opaque, model-weighted, and rolling-window, so no honest token→% mapping exists. Report the relative number; never invent a percentage.
## Prerequisite — ccusage
The script depends on **ccusage** (reads Claude Code's local transcript JSONL and prices it per model). Docs and install: **https://github.com/ryoppippi/ccusage** (npm: `ccusage`).
No manual install is required — the script calls `npx -y ccusage@latest`, which fetches it on demand. For faster repeated runs the operator may install it globally (`npm i -g ccusage`) or use `bunx ccusage`. If neither npx nor network is available (cloud headless), the script degrades to "indisponível" — by design.
## How to run
```bash
node .claude/skills/measuring-cost/references/cost-report.mjs
```
Optionally pin the session with `--session-id <id>` (the orchestrator's session id, from the gate state dir name under `.claude/plans/.state/`). Without it, the sc