SKILL DETAIL
genshijin-stats
interfacex-co-jp/genshijin/genshijin-stats
The genshijin-stats skill displays real token usage and estimated savings for the current session. It reads data directly from Claude Code session logs, without AI estimation. Invoke it with `/genshijin-stats`. The output is injected by the mode-tracker hook; the model itself does not perform numerical calculations. This skill is provided by `hooks/genshijin-stats.js`, which is called by `hooks/genshijin-mode-tracker.js` when `/genshijin-stats` is detected. The hook returns formatted stats as the reason with `decision: "block"`, allowing the user to see the numbers immediately. No action is needed from the model. Arguments: no arguments show current session stats; `--share` generates a tweetable one-line summary; `--all` shows lifetime totals; `--since 7d` or `--since 24h` shows lifetime totals for a specified period.
Installation
npx skills add https://github.com/interfacex-co-jp/genshijin --skill genshijin-stats
Fichiers du skill
SKILL.md
Dernière synchronisation · 28 août 2026
SKILL.md›
---
name: genshijin-stats
description: >
現セッションのリアルトークン使用量と推定削減量を表示。Claude Code セッションログから直接読込 — AI 推定なし。
`/genshijin-stats` で起動。出力は mode-tracker フックが注入し、モデル自身は数値計算しない。
---
このスキルは `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 集計