cost-report
하는 일
이 스킬은 선택한 기간의 AI 사용량과 비용을 에이전트별, 모델별로 정리한 보고서를 만듭니다. AI 지출을 이해하고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓각 AI 에이전트가 얼마의 비용을 썼는지 알고 싶을 때.
- ✓어떤 모델이 예산을 가장 많이 쓰는지 확인해야 할 때.
- ✓지출이 계획대로 가고 있는지 점검하고 싶을 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-report/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“오늘 AI 에이전트들이 얼마를 썼고 어떤 모델을 썼는지 보여 주는 보고서를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 선택한 기간의 기록된 사용량을 읽고, 모델 가격으로 비용을 계산한 뒤 저장된 벤치마크 결과가 있으면 함께 반영합니다. 이후 에이전트별, 모델별 합계를 보여 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Cost Report
Generate a comprehensive cost report showing token usage, USD costs, and budget utilization for the specified period.
When to use
When you need to understand current spending -- how much each agent costs, which models consume the most budget, and whether you're on track to stay within budget.
Steps
- Retrieve usage -- call
mcp__plugin_ruflo-core_ruflo__memory_search(or_list/_retrieve) on thecost-trackingnamespace for the specified period (default: today). Thememory_*tools route by namespace string; theagentdb_hierarchical-*tools do not (they route by tierworking|episodic|semantic), so don't use them here. See ruflo-agentdb ADR-0001 §"Namespace convention" for the routing contract. 1a. Read measured booster data -- ifdocs/benchmarks/runs/latest.jsonexists, load it viaBash-shellednode -e 'console.log(JSON.stringify(JSON.parse(require("fs").readFileSync("docs/benchmarks/runs/latest.json")).summary))'. This provides Tier 1 measured values — booster cost/edit ($0), avg latency, win rate, plus any LLM baseline that was run (Gemini, Sonnet 4.6, Opus 4.7 latencies and per-edit costs). Use these in step 4 for the measured Tier breakdown rather than estimated. - Compute costs -- for each record, calculate cost using model pricing:
- Haiku: $0.25/M input, $1.25/M output
- Sonnet: $3.00/M input, $15.00/M output
- Opus: $15.00/M input, $75.00/M output
- Include cache write/read costs where applicable
- Aggregate by model -- sum costs per model, compute percentage share
- Aggregate by tier -- classify each record as Tier 1 / Tier 2 / Tier 3 using three signals (in priority order): (a) bench data from step 1a — for any record that maps to a measured booster intent, use $0 / measured-latency directly; (b) the
[AGENT_BOOSTER_AVAILABLE]flag stored by thecost-booster-routeskill incost-tracking; (c) the model name as fallback (haiku→ Tier 2;sonnet/opus→ Tier 3). Sum costs per tier, compute share, and count Tier 1 bypasses. The tier breakdown is the most actionable single line — it tells the user what fraction of Sonnet/Opus spend was Tier 1-eligible. - Aggregate by agent -- sum costs per agent, include the model each agent used
- Check budget -- recall budget configuration via
memory_retrieveand compute utilization percentage, check alert thresholds (50%/75%/90%/100%) - Report -- display: total cost, budget remaining, tier breakdown (Tier 1 / Tier 2 / Tier 3), model breakdown, agent breakdown, active alerts. See REFERENCE.md §"Cost report shape" for the canonical layout.
CLI alternative
npx @claude-flow/cli@latest memory search --query "cost report for today" --namespace cost-tracking
npx @claude-flow/cli@latest memory list --namespace cost-tracking
자주 묻는 질문
보고서는 어떤 기간을 다루나요?
기본은 오늘이지만 다른 기간을 고를 수 있습니다.
보고서는 데이터를 어디서 가져오나요?
비용 추적 메모리에 기록된 사용량과, 있다면 저장된 벤치마크 결과를 읽습니다.
비용이 정확한 청구 금액인가요?
아닙니다. 공개된 모델 가격을 바탕으로 한 추정치이며, 공식 청구서가 아닙니다.
상세 정보
작성자의 원본 설명
Generate a cost report showing token usage and USD costs by agent and model
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1608
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.