Skip to content
ruvnet avatar

Cost Budget Check

Reads a stored budget, sums tracked session spend, and reports utilization against a 50/75/90/100% alert ladder.

CCM score
71 of 100
skills.sh installs
693
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers checking accumulated session spend against a configured budget, with output filterable by --period (today, week, month, or all)
  • Includes budget.mjs subcommands check, set, and get, plus a BUDGET_QUIET=1 mode that emits machine-readable JSON
  • Enforces a HARD_STOP at 100% utilization, with check exiting code 1 so spawns can be guarded fail-closed
  • Designed for pre-spawn gating and cron-style monitoring via /loop 30m, escalating to /cost-optimize at high utilization

Install

$ npx -y skills add ruvnet/ruflo --skill cost-budget-check -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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-optimize first.
  • Cron-friendly via /loop 30m for continuous monitoring.

Steps

  1. Run the check:

    node plugins/ruflo-cost-tracker/scripts/budget.mjs check
    

    Filter by period: BUDGET_PERIOD=today (default all). Use BUDGET_QUIET=1 for machine-readable JSON.

  2. Inspect the markdown summary — budget, spent, remaining, utilization percentage, alert level (🟢 OK · 🟡 INFO · 🟠 WARNING · 🔴 CRITICAL · 🛑 HARD_STOP), and the recommended action.

  3. Set / inspect the budget:

Details

Repository
github.com/ruvnet/ruflo
Categories
Agent Workflow & Planning, Finance & Trading
First seen
Jun 3, 2026

Questions

What does the cost-budget-check skill do?

It reads the project's budget config and accumulated spend from cost-track records, computes utilization, and emits a 50, 75, 90 and 100 percent alert ladder. The skill reports whether spend is at INFO, WARNING, CRITICAL or HARD_STOP level and recommends the next action.

How do I install the cost-budget-check skill?

Run npx -y skills add ruvnet/ruflo --skill cost-budget-check -y in your project. This adds the skill so your agent can check spend against the budget before spawning more work.

What does the skill need to run?

It needs the cost-tracking records produced by the cost-track skill and a budget set with the budget script. It runs shell commands and reads and writes memory through the Ruflo MCP tools.

Where does cost-budget-check sit in its category?

It belongs to the Agent Workflow & Planning category on Claude Marketplaces, alongside grill-me, grill-with-docs and prototype. Its distinct role is enforcing the alert thresholds that the Ruflo README documents but earlier code did not check.

When should I run cost-budget-check?

Run it after each cost-track run to see the alert level, and before spawning a swarm when utilization is at or above 90 percent. It can also run on a 30 minute loop for continuous monitoring.

More from ruvnet/ruflo

All 236

Similar to Cost Budget Check

More Agent Workflow & Planning