scrooge-stats について
scrooge-stats は、セッション統計を表示するスキルです。測定された出力トークン数と、利用可能な場合はベンチマークに基づく節約量を、再計算せずスクリプトの出力どおりに示します。
主な機能
- 01セッション ID を指定して統計スクリプトを実行
- 02測定された出力トークン数をそのまま表示
- 03利用可能な場合にベンチマーク由来の節約量を表示
- 04指定時に一行の要約を追加
活用シーン
- 01セッションの出力トークン統計を確認
- 02共有向けの簡潔な統計要約を作成
インストール
コマンドをコピーしてターミナルで実行します。
npx skills add https:/ / github.com/ kir93/ scrooge-mode --skill scrooge-statsインストール後、Claude Code で/scrooge-statsを入力して読み込まれたか確認します。
同梱ファイルLICENSEREADME.md
README(原文)English
プロジェクトの README よりこの README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。
Run the stats script and show its output verbatim:
node "${CLAUDE_PLUGIN_ROOT}/hooks/scrooge-stats.js" --session-id "${CLAUDE_SESSION_ID}"
Append --share for a one-line summary. Report only what the script prints
(measured output tokens, plus a benchmark-based "(est)" savings figure when
available) — do not recompute or estimate tokens yourself. If the script is not
found (a host without the plugin files), say so rather than fabricating numbers.
On Codex installs the UserPromptSubmit hook (hooks/scrooge-activate.js)
intercepts the stats trigger and returns the figures directly, so this body
never runs there. It is the path for hosts (e.g. Claude in the editor) where the
hook's block payload is not surfaced to the user.