
Cost Budget Check
This is the gatekeeper that actually enforces the four-tier budget alert ladder (50/75/90/100%) that was documented but never checked until now. It reads your cost tracking data, calculates spend against your configured budget limit, and tells you whether you're at INFO, WARNING, CRITICAL, or HARD_STOP. Run it after every cost-track session or before spawning expensive agent swarms. The HARD_STOP level exits with code 1, so you can gate critical operations with a simple check && spawn pattern. Honestly, if you're running any kind of autonomous agent workload with real budget constraints, this should be in your monitoring loop.
- skills.sh installs
- 693
- GitHub stars
- 81.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ruvnet/ruflo --skill cost-budget-check --agent claude-codeInstalls into .claude/skills of the current project.
Files
Cost Budget Check
Reads cost-tracking:budget-config for the project's budget limit, sums total_cost_usd across session-* records produced by cost-track, computes utilization, and emits the measured 4-tier alert ladder (50% INFO / 75% WARNING / 90% CRITICAL / 100% HARD_STOP).
Until P2 (this skill) landed, the README documented the alert ladder but no code checked it. Now this skill is the gate.
When to use
- After every cost-track run, to surface the alert level.
- Before spawning a swarm — if utilization ≥ 90%, escalate to
/cost-optimizefirst. - Cron-friendly via
/loop 30mfor continuous monitoring.
Steps
-
Run the check:
node plugins/ruflo-cost-tracker/scripts/budget.mjs checkFilter by period:
BUDGET_PERIOD=today(defaultall). UseBUDGET_QUIET=1for machine-readable JSON. -
Inspect the markdown summary — budget, spent, remaining, utilization percentage, alert level (🟢 OK · 🟡 INFO · 🟠WARNING · 🔴 CRITICAL · 🛑 HARD_STOP), and the recommended action.
-
Set / inspect the budget:
Sponsors
Details
- Repository
- github.com/ruvnet/ruflo
- First seen
- Jun 3, 2026
More from ruvnet/ruflo
All 236- Browser Auth Flow690
- Adr Verify688
- Cost Track685
- Cost Booster Route684
- Cost Federation684
- Cost Summary684
- Intelligence Transfer684
- Vector Setup684
- Cost Trend683
- Cost Conversation682
- Cost Export681
- Cost Benchmark679
- Cost Booster Edit679
- Browser674
- Witness656
- AgentDB Advanced Features
- AgentDB Learning Plugins
- AgentDB Memory Patterns
- AgentDB Performance Optimization
- AgentDB Vector Search
- Hooks Automation
- Pair Programming
- ReasoningBank Intelligence
- ReasoningBank With AgentDB