npx skills add ...
npx skills add ruvnet/ruflo --skill cost-projection
Forward-looking spend extrapolation. Computes a USD-per-day rate from the recent measurement window, projects to 7d/30d/90d/365d horizons, and surfaces "days until budget exhausted" when a budget is configured. Predictive counterpart to `cost-budget-check` (reactive).
npx skills add ruvnet/ruflo --skill cost-projection
Forward-looking cost projection that pairs with cost-budget-check:
cost-budget-check answers "have we crossed the line?" — reactivecost-projection answers "when will we cross the line?" — predictivesession-* records from the cost-tracking namespace (same source cost-budget-check uses).capturedAt/startedAt).windowSpend / windowDays.budget-config key set by cost-budget set):
ALREADY REACHED markers for thresholds already exceeded.--window Measurement window. Nh|Nd|Nw|Nm. Default 7d.
--horizons Projection horizons. Default 7d,30d,90d,365d.
--format table|json Default table (markdown).
Env: PROJECTION_NAMESPACE override (default cost-tracking), PROJECTION_QUIET=1 (alias for --format json).
cost-projection --format json | jq '.budget.exhaustion[2].daysUntilReached < 7' → fail builds when 100% exhaustion is < 1 week away.Linear extrapolation assumes the current rate holds. The footer reminds operators to re-run after workload shifts. For drift detection over MULTIPLE windows, pair with cost-trend (which already covers benchmark-drift).