PlugWiki

genshijin-stats Skill for Claude Code: Show Token Use and Savings

Shows this Claude Code session's real token use and the estimated saving from genshijin's short-reply mode. Needs the genshijin plugin's hooks.

Installs
11.9K
on skills.sh
Stars
331
on GitHub
Updated
Oct 2026
last repo commit

genshijin-stats prints a stats block for your current Claude Code session: real token use read from the session log, plus an estimated saving and a dollar figure. You type /genshijin-stats. The SKILL.md and the stats text are written in Japanese.

The skill is a thin wrapper. The genshijin plugin's prompt hook catches the command, runs a Node script, and shows its output, so the model does no arithmetic. That means the skill does nothing useful installed on its own. Add --share for a one-line summary, --all for lifetime totals, or --since 7d / --since 24h for a time window. The saving is an estimate: the script applies a fixed 0.65 ratio that a code comment marks as provisional.

Good for

  • People using the genshijin short-reply mode who want to see what it saves
  • Claude Code users who read token use from session logs
  • Anyone who wants a one-line summary to share

Install genshijin-stats

Claude Code

  1. 1

    Copy this prompt.

    Install the genshijin-stats skill in Claude Code. Run this command:
    
    /plugin install genshijin
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Install the whole plugin: /genshijin-stats only works through the plugin's prompt hook. To use the hooks without the plugin, the README also documents bash hooks/install.sh from a clone of the repo.

From the project README. Source.

What's in the skill

When it loads

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

Sections in SKILL.md

  1. 引数

Key facts

License
MIT
Installs on skills.sh
11,901 (Nov 2, 2026)
Files in the skill folder
1 file including SKILL.md

What it includes

  • Shows token use and estimated savings for the current session.

    You type the command. The plugin's hook finds the session log, runs the stats script and shows the result in a code block.

    Try: “/genshijin-stats”

    Runs code · /genshijin-stats

  • Prints a one-line summary you can post.

    Same numbers, shortened to a single tweet-sized line.

    Try: “/genshijin-stats --share”

    Runs code · --share

  • Totals across all recorded sessions.

    Reads the plugin's saved mode history and adds it up.

    Try: “/genshijin-stats --all”

    Runs code · --all

  • Limits the lifetime totals to the last N days or hours.

    Takes a number plus d or h.

    Try: “/genshijin-stats --since 7d”

    Runs code · --since 7d / --since 24h

From the official docs

Permissions

Low risk

The plugin that powers this command runs Node scripts through hooks on every prompt and reads your Claude Code session logs. Install it only if you are fine with those hooks.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Hooks run on every prompt

    plugin.json registers Node scripts for SessionStart and UserPromptSubmit, each with a 5 second timeout. The SessionStart script reads ~/.claude/settings.json to check the status line. Skim hooks/genshijin-mode-tracker.js before you install. github.com

  • It reads your session logs

    The stats script walks the projects folder under your Claude config directory to read transcripts. Run it only on a machine where that is fine. github.com

  • The plugin bundles more than this skill

    The plugin also adds slash commands, 3 subagents and the other genshijin skills, and its compress skill can overwrite memory files such as CLAUDE.md after making a backup. github.com

Technical details
Scopes
  • Reads session logs under ~/.claude/projects

  • Keeps a mode flag file at ~/.claude/.genshijin-active

Questions

What does genshijin-stats do?

It shows how many tokens your current Claude Code session used and how many genshijin mode probably saved, with a dollar estimate. The real usage comes from your session log. The saving is an estimate.

How do I install it?

Install the whole genshijin plugin from the box above. The command is run by hooks that ship with the plugin, so the skill folder alone does not produce stats.

Is the saving number exact?

No. The script applies a fixed 0.65 compression ratio that a code comment calls provisional, and a default of 1250 rule tokens per turn that you can change with an environment variable. Treat it as a rough guide.

Does it work in Claude.ai or Codex?

The README documents the Claude Code plugin. For Codex it names an AGENTS.md rules file, but not the stats hook, so the stats command is documented for Claude Code only.

Is it safe?

The plugin adds hooks that run Node scripts on session start and on every prompt you send, and the stats command reads your Claude Code session logs on your machine. See the permissions section for details. Read hooks/genshijin-stats.js and the mode tracker before installing if that matters to you.

How is it different from /cost or /usage?

The SKILL.md says it reads session logs directly instead of asking the model to estimate, and adds a saving estimate for genshijin mode. It does not document a comparison with built-in commands.

Information

updated Nov 2, 2026

Folder
skills/genshijin-stats

interfacex-co-jp/genshijinskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 6
  1. genshijin README · github.com
  2. genshijin plugin.json · github.com
  3. genshijin-stats SKILL.md · github.com
  4. genshijin-mode-tracker.js · github.com
  5. genshijin-stats.js · github.com
  6. genshijin-activate.js · github.com

Updated Nov 2, 2026.