Tldr Stats

parcadei/continuous-claude-v3/.claude/skills/tldr-stats

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Show full session token usage, costs, TLDR savings, and hook activity

僅含說明Data & Analytics
AI 產生的概覽

顯示工作階段 token 用量、API 費用、TLDR 壓縮節省金額與 hook 活動的儀表板。

功能
此技能指示代理執行統計指令碼,並把完整輸出貼進回覆中,讓使用者直接看到儀表板。儀表板呈現本次工作階段的花費、送出與接收的 token 數、提示快取重用情形、TLDR 相對於未壓縮檔案讀取的節省金額、快取命中率、hook 呼叫次數,以及歷史趨勢迷你圖。文件中另附指標說明表與用於估算的各模型單價。
適用情境
適合用來查看 TLDR 在金額上省下多少、核對本次工作階段的 token 用量與費用、比較使用 TLDR 前後的效果,或排查 TLDR 與 hook 是否真的生效。也可用來確認目前使用的是哪個模型。
執行需求
需要 Python 3 執行環境,以及位於 $CLAUDE_PROJECT_DIR/.claude/scripts/tldr_stats.py 的指令碼,該指令碼並未包含在此技能資料夾中。技能本身不含指令碼,只有說明文件。

TLDR Stats Skill

Show a beautiful dashboard with token usage, actual API costs, TLDR savings, and hook activity.

When to Use

  • See how much TLDR is saving you in real $ terms
  • Check total session token usage and costs
  • Before/after comparisons of TLDR effectiveness
  • Debug whether TLDR/hooks are being used
  • See which model is being used

Instructions

IMPORTANT: Run the script AND display the output to the user.

  1. Run the stats script:
bash
python3 $CLAUDE_PROJECT_DIR/.claude/scripts/tldr_stats.py
  1. Copy the full output into your response so the user sees the dashboard directly in the chat. Do not just run the command silently - the user wants to see the stats.

Sample Output

╔══════════════════════════════════════════════════════════════╗║  📊 Session Stats                                            ║╚══════════════════════════════════════════════════════════════╝
  You've spent  $96.52  this session
  Tokens Used        1.2M sent to Claude      416.3K received back       97.8K from prompt cache (8% reused)
  TLDR Savings
    You sent:               1.2M    Without TLDR:           2.5M
    💰 TLDR saved you ~$18.83    (Without TLDR: $115.35 → With TLDR: $96.52)
    File reads: 1.3M → 20.9K █████████░ 98% smaller
  TLDR Cache    Re-reading the same file? TLDR remembers it.    █████░░░░░░░░░░ 37% cache hits    (35 reused / 60 parsed fresh)
  Hooks: 553 calls (✓ all ok)  History: █▃▄ ▇▃▇▆ avg 84% compression  Daemon: 24m up │ 3 sessions

Understanding the Numbers

MetricWhat it means
You've spentActual $ spent on Claude API this session
You sent / Without TLDRActual tokens vs what it would have been
TLDR saved youMoney saved by compressing file reads
File reads X → YRaw file tokens compressed to TLDR summary
Cache hitsHow often TLDR reuses parsed file results
History sparklineCompression % over recent sessions (█ = high)

Visual Elements

  • Progress bars show savings and cache efficiency at a glance
  • Sparklines show historical trends (█ = high savings, ▁ = low)
  • Colors indicate status (green = good, yellow = moderate, red = concern)
  • Emojis distinguish model types (🎭 Opus, 🎵 Sonnet, 🍃 Haiku)

Notes

  • Token savings vary by file size (big files = more savings)
  • Cache hit rate starts low, increases as you re-read files
  • Cost estimates use: Opus $15/1M, Sonnet $3/1M, Haiku $0.25/1M
  • Stats update in real-time as you work

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/tldr-stats提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架