본문으로 건너뛰기
Skillpedia
기타81k · #1594

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-budget-check/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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-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:

    node plugins/ruflo-cost-tracker/scripts/budget.mjs set 50.00
    node plugins/ruflo-cost-tracker/scripts/budget.mjs get
    
  4. HARD_STOP path — budget.mjs check exits with code 1 when utilization ≥ 100%. Wrap critical agent spawns in a budget.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) — populates cost-tracking:session-*
  • cost-report — same data source, narrative format
  • cost-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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬