Langsung ke konten
Skillpedia
Lain-lain81k Β· #1608

cost-report

Fungsinya

Skill ini membuat laporan jelas tentang pemakaian dan biaya AI per agent dan per model untuk periode yang Anda pilih. Skill ini untuk orang yang ingin memahami pengeluaran AI mereka.

Kapan dipakai

  • βœ“Saat Anda ingin tahu berapa biaya setiap agent AI.
  • βœ“Saat Anda perlu melihat model mana yang paling banyak memakai anggaran.
  • βœ“Saat Anda ingin memeriksa apakah pengeluaran Anda sesuai rencana.

Link skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-report/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-report/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan laporan yang menunjukkan biaya agent AI saya hari ini dan model apa saja yang mereka pakai.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill membaca pemakaian yang tercatat untuk periode yang Anda pilih, menghitung biaya dari harga model, lalu menambahkan hasil benchmark yang tersimpan jika ada. Totalnya ditampilkan per agent dan per model.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

  1. Retrieve usage -- call mcp__plugin_ruflo-core_ruflo__memory_search (or _list / _retrieve) on the cost-tracking namespace for the specified period (default: today). The memory_* tools route by namespace string; the agentdb_hierarchical-* tools do not (they route by tier working|episodic|semantic), so don't use them here. See ruflo-agentdb ADR-0001 Β§"Namespace convention" for the routing contract. 1a. Read measured booster data -- if docs/benchmarks/runs/latest.json exists, load it via Bash-shelled node -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.
  2. 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
  3. Aggregate by model -- sum costs per model, compute percentage share
  4. 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 the cost-booster-route skill in cost-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.
  5. Aggregate by agent -- sum costs per agent, include the model each agent used
  6. Check budget -- recall budget configuration via memory_retrieve and compute utilization percentage, check alert thresholds (50%/75%/90%/100%)
  7. 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
Pertanyaan umum

Periode apa yang dicakup laporan?

Secara default laporan mencakup hari ini, tetapi Anda bisa memilih periode lain.

Dari mana laporan mendapat datanya?

Dari pemakaian yang tercatat di memori pelacakan biaya, ditambah hasil benchmark tersimpan jika ada.

Apakah biayanya merupakan tagihan resmi?

Tidak. Biayanya adalah estimasi berdasarkan harga model yang tercantum, bukan faktur resmi Anda.

Detail

Deskripsi asli dari pembuat

Generate a cost report showing token usage and USD costs by agent and model

repo: ruvnet/ruflo

Popularitas

Bintang GitHub
81k
Peringkat
#1608
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa