genshijin-stats
interfacex-co-jp/genshijin
Display real token usage and estimated savings from Claude Code session logs.
What is genshijin-stats?
Shows current session token consumption and estimated reduction amounts by reading directly from Claude Code session logs without AI estimation. Activate with `/genshijin-stats` command to view real usage metrics injected via mode-tracker hook.
- Display current session real token usage and estimated savings
- Read directly from Claude Code session logs without AI estimation
- Support shareable one-line summary with --share flag
- Show lifetime token aggregation with --all flag
- Filter statistics by time period using --since parameter (7d, 24h, etc.)
How to install genshijin-stats
npx skills add https://github.com/interfacex-co-jp/genshijin --skill genshijin-statsHow to use genshijin-stats
- 1.Run `/genshijin-stats` to display current session statistics
- 2.Add `--share` flag to generate a shareable one-line summary
- 3.Use `--all` flag to view lifetime token aggregation
- 4.Specify time period with `--since 7d` or `--since 24h` for filtered lifetime stats
Use cases
- Monitor token consumption during active Claude Code sessions
- Track estimated token savings across development work
- Share session statistics in a tweet-friendly format
- Review lifetime token usage patterns and trends
- Analyze token efficiency over specific time periods
- Claude Code users tracking token usage
- Developers monitoring API consumption costs
- Teams analyzing token efficiency metrics
genshijin-stats FAQ
No. It reads directly from Claude Code session logs and displays real token usage without any AI estimation.
It generates a tweet-friendly one-line summary of your session statistics.
Yes. Use the --all flag for lifetime aggregation, or --since with a time period (7d, 24h) for filtered historical stats.
The mode-tracker hook injects formatted stats via a 'block' decision, so you see the numbers immediately without the model performing calculations.
Full instructions (SKILL.md)
Source of truth, from interfacex-co-jp/genshijin.
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 集計
Related skills
More from interfacex-co-jp/genshijin and the wider catalog.

genshijin
Ultra-compressed communication mode: speak like a caveman, cut token usage ~75%, keep technical accuracy.

genshijin-commit
Ultra-concise commit messages in Conventional Commits format, emphasizing why over what.

genshijin-compress
Compress natural-language files (CLAUDE.md, todos, configs) to reduce input tokens while preserving code, URLs, and structure.

genshijin-crew
Delegate code investigation, editing, and review to compressed subagents to reduce context consumption by ~60%.

forge-idiomatic-engineer
Forge-focused engineering workflow for Rust applications with generated frontend bindings. Activate this skill for repositories containing a `forge.toml` file, Forge macros, or code generated by the Forge CLI.

eloquent-best-practices
Master Laravel Eloquent ORM with query optimization, relationship management, and N+1 query prevention.