cost-summary
하는 일
이 스킬은 기록된 AI 비용 데이터를 모아 사람이나 다른 도구가 읽을 수 있는 하나의 요약으로 만듭니다. 빠른 개요가 필요하거나 대시보드에 데이터를 넣으려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓AI 총지출과 예산 상태를 한눈에 보고 싶을 때.
- ✓다른 도구나 스크립트가 읽을 안정적인 비용 요약이 필요할 때.
- ✓상위 세션과 페더레이션 합계를 한곳에서 보고 싶을 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-summary/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 AI 지출과 예산 상태를 한 페이지로 요약해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 비용 추적 기록과 페더레이션 기록의 데이터를 하나의 출력으로 합칩니다. 기본적으로 고정된 JSON 형식을 출력하며, 요청하면 마크다운 표를 출력합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Cost Summary
A stable single-call interface that other plugins / scripts / dashboards can shell out to and parse. ADR-0002 considered exposing cost_report / cost_summary as proper MCP tools but deferred that — adding MCP tools requires modifying @claude-flow/cli source, out of scope for plugin-local work. This script is the equivalent: same data, exposed via a stdout JSON contract.
When to use
- Another plugin needs a snapshot of cost state — it shells out to
summary.mjs --format jsonand parses. - A dashboard / Slackbot fetches a one-line cost rollup.
- Quick "where am I right now?" view that pulls from every cost-tracker source (cost-tracking + federation-spend).
Output contract (JSON, stable)
{
"exportedAt": "<ISO>",
"total_cost_usd": 1546.36,
"sessionCount": 1,
"conversationCount": 1,
"byTier": { "haiku": 0, "sonnet": 0, "opus": 1546.36, "unknown": 0 },
"byModel": {
"claude-opus-4-7": {
"tier": "opus",
"cost_usd": 1546.36,
"messages": 1597,
"input_tokens": 3090,
"output_tokens": 3295940,
"cache_creation_input_tokens": 10659599,
"cache_read_input_tokens": 732833690
}
},
"topSession": {
"sessionId": "1dba3b8c-...",
"total_cost_usd": 1546.36,
"messageCount": 1597
},
"budget": {
"budget_usd": 2500.00,
"setAt": "<ISO>",
"spent_usd": 1546.36,
"utilization": 0.6185,
"level": "INFO"
},
"federation": {
"eventCount": 0,
"peerCount": 0,
"totalUsd24h": 0
}
}
Steps
# Markdown (default)
node plugins/ruflo-cost-tracker/scripts/summary.mjs
# JSON for programmatic consumption
node plugins/ruflo-cost-tracker/scripts/summary.mjs --format json
Optional env: SUMMARY_NAMESPACE=cost-tracking, SUMMARY_FED_NAMESPACE=federation-spend, SUMMARY_FORMAT=json.
Cross-references
cost-report— narrative report (per-agent / per-model lens; uses same data)cost-export— pushes to Prometheus / webhook (this skill is pull-style; export is push-style)- ADR-0002 §"Decision" — explicitly defers proper MCP-tool registration to a future ADR
자주 묻는 질문
출력 형식은 안정적인가요?
네. 소스는 JSON 구조를 안정된 계약으로 설명하므로, 다른 도구도 같은 필드에 의존할 수 있습니다.
어떤 데이터가 포함되나요?
총지출, 등급별과 모델별 지출, 상위 세션, 예산 상태, 페더레이션 합계가 포함됩니다.
스크립트에서 쓸 수 있나요?
네. 스크립트가 이 스킬을 실행하고 JSON 출력을 직접 읽을 수 있습니다.
상세 정보
작성자의 원본 설명
Single-shot programmatic dump of all cost data — total spend, per-tier, top session, budget status, federation aggregate. JSON or markdown.
repo: ruvnet/ruflo
인기도
- GitHub 스타
- 81k
- 순위
- #1610
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.