cost-projection
Installation
SKILL.md
Forward-looking cost projection that pairs with cost-budget-check:
cost-budget-checkanswers "have we crossed the line?" — reactivecost-projectionanswers "when will we cross the line?" — predictive
Algorithm
- Read all
session-*records from thecost-trackingnamespace (same sourcecost-budget-checkuses). - Filter to a measurement window (default last 7 days on
capturedAt/startedAt). - Compute the per-day burn rate:
windowSpend / windowDays. - Linear-extrapolate to each requested horizon (default 7d/30d/90d/365d).
- If a budget is configured (
budget-configkey set bycost-budget set):- Compute "days until 75% / 90% / 100% consumed" at the current rate.
- Surface as a separate table block with
ALREADY REACHEDmarkers for thresholds already exceeded.