本文へスキップ
Skillpedia
分析とスプレッドシート117k · #741

caveman-stats

できること

このスキルは、現在のClaude Codeセッションで記録されたトークン使用量を報告します。AIセッションがどれだけ使われたかを見たい人向けです。

使う場面

  • ✓現在のClaude Codeセッションのトークン使用量を見たいとき。
  • ✓一定期間の複数のセッションの合計がほしいとき。
  • ✓セッション中にどのモードが有効だったか知りたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/JuliusBrussee/caveman/blob/main/plugins/caveman/skills/caveman-stats/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このClaude Codeセッションのトークン使用量と、そのとき使っていたモードを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは統計レポートを実行し、記録された数値をそのまま表示します。独自の推定は加えず、測定された比較がなければ節約量は不明だと述べます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

よくある質問

節約したトークン数を推定しますか?

いいえ。説明では、モードなしの測定された比較がないため、節約量は不明とされています。

Claude Codeの外でも使えますか?

詳しくはClaude Codeのみ対象です。ほかのホストでは、それぞれの使用量レポートを使うよう案内されています。

複数のセッションを対象にできますか?

はい。すべてのセッション、または過去7日間などの期間を指定できます。

詳細

作者による元の説明

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

人気

GitHubのスター
117k
ランキング
#741
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル