cost-burn

Installation
SKILL.md

Burn-rate trend observability. The fourth leg of the cost-tracker forward-cost stack:

Question Skill
"Have we crossed a threshold?" (reactive) cost-budget-check
"When will we cross a threshold?" (predictive) cost-projection
"Could we have spent less?" (comparative) cost-counterfactual
"Is daily burn ACCELERATING?" (trend) cost-burn ← this

Algorithm

Implementation: scripts/burn.mjs.

  1. Read all session-* records from cost-tracking namespace.
  2. Bin into --bucket duration windows (default 1d) over --lookback (default 14d).
  3. For each bucket: {n: sessions, spendUsd: sum(total_cost_usd)}.
  4. Compute delta = latest.spendUsd - mean(prior non-empty buckets).
  5. If --alert-on-acceleration-pct N is set: exit 1 when deltaPct > N.
Installs
4
GitHub Stars
61.6K
First Seen
10 days ago
cost-burn — ruvnet/claude-flow