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

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

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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-summary/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분.

작동 방식

스킬은 비용 추적 기록과 페더레이션 기록의 데이터를 하나의 출력으로 합칩니다. 기본적으로 고정된 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 json and 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬