Genshijin Stats

by interfacex-co-jp968d3c449499No license333 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 weeks ago

現セッションのリアルトークン使用量と推定削減量を表示。Claude Code セッションログから直接読込 — AI 推定なし。 `/genshijin-stats` で起動。出力は mode-tracker フックが注入し、モデル自身は数値計算しない。

Instructions onlyProductivity & Workflow
AI-generated overview

Displays real token usage and estimated savings for the current Claude Code session from session logs.

What it does
This skill surfaces token usage statistics for the current session, read directly from Claude Code session logs rather than estimated by a model. It is invoked as /genshijin-stats, and the output is injected by a mode-tracker hook that returns formatted stats as the reason for a blocking decision, so the user sees the numbers immediately. Options include a shareable one-line summary, lifetime totals, and lifetime totals for a specified period such as 7d or 24h.
When to use it
Use it when you want to see how many tokens the current session has actually consumed and how much was estimated to be saved. It also fits checking lifetime aggregates or producing a short shareable summary line.
Requirements
Requires Claude Code session logs and the hooks genshijin-stats.js and genshijin-mode-tracker.js; the skill itself ships no scripts and performs no model-side calculation.

このスキルは hooks/genshijin-stats.js が提供(hooks/genshijin-mode-tracker.js が /genshijin-stats 検出時に呼出)。フックが decision: "block" で整形済 stats を reason として返す → ユーザーは即座に数値を見る。モデル側で何もする必要なし。

引数

  • (なし) — 現セッション stats 表示
  • --share — ツイート可能な1行サマリ
  • --all — Lifetime 集計
  • --since 7d / --since 24h — 期間指定 Lifetime 集計

Source and attribution

Source:interfacex-co-jp/genshijininskills/genshijin-statsat commit968d3c4

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal