Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính117k · #741

caveman-stats

Skill này làm gì

Skill này báo cáo số token đã được ghi nhận cho phiên Claude Code hiện tại. Skill dành cho người muốn xem phiên AI của họ đã dùng bao nhiêu.

Khi nào nên dùng

  • ✓Khi bạn muốn xem lượng token đã dùng của phiên Claude Code hiện tại.
  • ✓Khi bạn muốn tổng số trên nhiều phiên trong một khoảng thời gian.
  • ✓Khi bạn muốn biết chế độ nào đang hoạt động trong một phiên.

Liên kết skill

https://github.com/JuliusBrussee/caveman/blob/main/plugins/caveman/skills/caveman-stats/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/JuliusBrussee/caveman/blob/main/plugins/caveman/skills/caveman-stats/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cho tôi xem lượng token đã dùng trong phiên Claude Code này và tôi đang ở chế độ nào.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chạy một báo cáo thống kê và in đúng các số đã ghi nhận như hiển thị. Skill không tự thêm ước tính, và lưu ý rằng mức tiết kiệm chưa biết nếu không có so sánh được đo lường.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

In Claude Code, src/hooks/caveman-mode-tracker.js runs src/hooks/caveman-stats.js on /caveman-stats and supplies its report through hookSpecificOutput.additionalContext. Print that report verbatim inside a fenced code block, as the hook instructs. Do not calculate or add numbers yourself.

In Gemini CLI, direct the user to /stats model for current session token usage or /stats session for session statistics. Gemini custom commands are prompts; they cannot invoke the built-in command or read its live session metrics. Never read Claude Code transcripts as Gemini usage. In other hosts, use a native usage report if one is available; otherwise say that current session usage is unavailable. The Claude reader and its lifetime history apply only to Claude Code. Savings remain unknown in every host without a measured comparison.

The report shows recorded output and cache-read tokens, response counts, and mode attribution where available. Savings are unknown: the transcript has no measured comparison without Caveman. Do not infer saved tokens, percentages, dollars, rule overhead, or a net result from output counts or the current mode.

--all and --since 7d aggregate the latest recorded output count per session. --share reports observed usage with savings unknown. Historical est_saved_* fields are ignored; their original history rows remain on disk. The statusline shows the active mode without the retired savings badge.

Original/current memory-file pairs are reported by their measured byte sizes. Those file-size differences do not establish provider token or billing savings. See docs/HONEST-NUMBERS.md.

Câu hỏi thường gặp

Skill có ước tính số token tôi đã tiết kiệm không?

Không. Mô tả nói mức tiết kiệm chưa được biết, vì không có so sánh đo lường nào nếu thiếu chế độ đó.

Skill có hoạt động ngoài Claude Code không?

Chỉ Claude Code được mô tả chi tiết. Các môi trường khác được hướng dẫn dùng báo cáo sử dụng riêng của họ.

Có thể xem nhiều phiên không?

Có. Có tùy chọn xem tất cả phiên hoặc theo một khoảng thời gian như bảy ngày gần nhất.

Chi tiết

Mô tả gốc của tác giả

Show recorded output and cache-read token usage and mode attribution for the current Claude Code session, or locate the host's native usage report. Trigger: /caveman-stats.

repo: JuliusBrussee/caveman

Độ phổ biến

Sao GitHub
117k
Vị trí xếp hạng
#741
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự