erfwn81/velora/cost-budget-check
Claude Code and agent skill by erfwn81/velora
- community
Checking that the SKILL.md file is still in the repository.
Read accumulated cost-tracking spend + budget config, compute utilization, emit 50/75/90/100% alert ladder
Install
npx vskill@latest install erfwn81/velora/cost-budget-checkSKILL.md
The same SKILL.md was published earlier as erfwn81/velora/cost-budget-check.
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:
``bash 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.
- 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:
``bash node plugins/ruflo-cost-tracker/scripts/budget.mjs set 50.00 node plugins/ruflo-cost-tracker/scripts/budget.mjs get ``
- HARD_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)
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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ruflo-cost-tracker/skills/cost-budget-check/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/erfwn81/velora/cost-budget-check)