cost-budget-check
하는 일
이 스킬은 기록된 AI 지출을 읽고 사용자가 정한 예산과 비교합니다. 한도를 넘기 전에 분명한 경고를 받고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓AI 예산이 얼마나 남았는지 알고 싶을 때.
- ✓많은 AI 작업을 시작하기 전에 안전 점검이 필요할 때.
- ✓일정에 따라 반복해서 확인하고 싶을 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-budget-check/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지금까지 AI 예산을 얼마나 썼는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 기록된 세션 비용을 합치고, 그 합계를 사용자가 정한 예산으로 나누어 경고 수준을 보여 줍니다. 100퍼센트에서는 오류 코드를 반환해 스크립트가 안전하게 멈출 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
예산은 어떻게 정하나요?
달러 금액을 넣어 예산 설정 명령을 실행합니다. 현재 예산도 보여 줄 수 있습니다.
경고 수준은 무엇을 뜻하나요?
50퍼센트는 정보, 75퍼센트는 경고, 90퍼센트는 위험, 100퍼센트는 중단으로 나뉘며, 각각 권장 조치가 붙습니다.
오늘 지출만 확인할 수 있나요?
네. 기간을 오늘로 설정하면 오늘 기록만 확인합니다.
상세 정보
작성자의 원본 설명
Read accumulated cost-tracking spend + budget config, compute utilization, emit 50/75/90/100% alert ladder
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1594
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.