cost-budget-check
What it does
This skill reads your recorded AI spending and compares it with a budget you set. It is for people who want clear warnings before going over their limit.
When to use it
- βWhen you want to know how much of your AI budget is left.
- βWhen you are about to start a large set of AI tasks and want a safety check first.
- βWhen you want a repeated check that runs on a schedule.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-budget-check/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow much of my AI budget have I used so far?β
5 new skills a week. 1 minute to read.
How it works
The skill adds up recorded session costs, divides the total by the budget you set and shows an alert level. At 100 percent it returns an error code, so scripts can stop safely.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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:
node plugins/ruflo-cost-tracker/scripts/budget.mjs set 50.00 node plugins/ruflo-cost-tracker/scripts/budget.mjs getHARD_STOP path β
budget.mjs checkexits with code1when utilization β₯ 100%. Wrap critical agent spawns in abudget.mjs check && spawn β¦guard to fail closed.
Storage shape (cost-tracking:budget-config)
{
"budget_usd": 50.00,
"setAt": "2026-05-05T...",
"thresholds": { "info": 0.50, "warning": 0.75, "critical": 0.90, "hard_stop": 1.00 }
}
Alert ladder (from REFERENCE.md, now enforced)
| Threshold | Level | Action |
|---|---|---|
| 50% | INFO π‘ | log notification, no UX disruption |
| 75% | WARNING π | display warning, suggest /cost-optimize |
| 90% | CRITICAL π΄ | urgent alert, recommend model downgrades |
| 100% | HARD_STOP π | halt non-essential spawns; exit code 1 |
Cross-references
cost-track(producer) β populatescost-tracking:session-*cost-reportβ same data source, narrative formatcost-optimizeβ recommended action when WARNING/CRITICAL- REFERENCE.md "Budget alert thresholds" β the documented ladder this enforces
FAQ
How do I set the budget?
You run the budget setting command with an amount in dollars. The skill can also show the current budget.
What do the alert levels mean?
The levels are info at 50 percent, warning at 75, critical at 90 and hard stop at 100, each with a suggested action.
Can I check only today's spending?
Yes. Setting the period to today limits the check to today's records.
Details
Original description by the author
Read accumulated cost-tracking spend + budget config, compute utilization, emit 50/75/90/100% alert ladder
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1594
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.