persona-stats

persona-stats is a skill for Claude Code from atman-33/workhub. It costs 42 tokens per session (422 once invoked), scanned A, original, MIT.

A statistics display for persona-mode usage in Claude sessions. It reports measured token and turn counts, along with estimated savings and the cost of injected rules and reminders.

In plain words
What is it for?
Use it to view statistics for the current session, all sessions, or a selected period, with optional one-line sharing output.
Why use it?
It separates measured usage from estimated savings, so you can see whether the persona instructions reduce or add to the session's token cost.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Part of the persona plugin — 8 skills, 8 commands, 3 agents shipped together

Good fit Use it to view statistics for the current session, all sessions, or a selected period, with optional one-line sharing output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atman-33/workhub/persona-stats
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atman-33/workhub --skill persona-stats
Clone the repo
git clone --depth 1 https://github.com/atman-33/workhub

Made for: Claude Code.

Or install persona, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for persona-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/atman-33/workhub/persona-stats/github.svg)](https://agentmods.dev/skills/atman-33/workhub/persona-stats)
Your own site
<a href="https://agentmods.dev/skills/atman-33/workhub/persona-stats"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/persona-stats/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for persona-stats

Your own site · 80×15
<a href="https://agentmods.dev/skills/atman-33/workhub/persona-stats"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/persona-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 422 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00422
Opus 5 $0.00021 $0.00211
Sonnet 5 $0.00008 $0.00084
Haiku 4.5 $0.00004 $0.00042

Measured 9d ago against content hash 89edf2d2d612, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

persona-stats scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/persona/skills/persona-stats/SKILL.md · 31 lines

What it actually says

Derived from genshijin (MIT, InterfaceX-co-jp) — https://github.com/InterfaceX-co-jp/genshijin

このスキルの実体は hooks/persona-stats.mjs/persona-stats を検出した hooks/persona-mode-tracker.mjs がフック内で実行し、整形済みの結果を注入する。

モデル側で計算することは何もない。 注入されたブロックをコードフェンスに入れて そのまま表示するだけ。数値を自分で見積もったり、要約したりしない。

引数

  • 引数なし — 現セッションの統計
  • --share — 1行サマリ
  • --all — 全セッションの集計
  • --since 7d / --since 24h — 期間を区切った集計

数値の意味

  • 出力トークン / 入力トークン / ターン数 — セッションログからの実測値
  • 削減見込 — レベルごとの平均削減率からの推定値。実測ではない
  • オーバーヘッド — SessionStart のルール注入と毎ターンのリマインダの実コスト。 削減見込から差し引かれる
  • 正味 — 削減見込 − オーバーヘッド。負の値になることもあり、その場合は 短いセッションでルール注入のほうが高くついたことを意味する
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 31 lines · 42 tokens per session scan A 89edf2d2d612

Subscribe to this mod's changes

persona-stats is a skill published in the GitHub repository atman-33/workhub (2 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 422 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gonavi-cli

Operate databases through the GoNavi headless CLI — the gonavi executable shipped in verified GitHub Release archives. Covers listing/adding/importing saved connections, running SQL queries against saved connections or ad-hoc connection files, exporting result sets to csv/json/md/html/xlsx, batch-executing SQL files…

Syngnat/GoNavi · 144 tokens

xiaohongshu-image-creator

An image-making assistant for Xiaohongshu, a Chinese social platform for lifestyle, product, and educational posts. It creates vertical covers and supporting images matched to the post’s topic, audience, and visual style.

huangrichao2020/pretty-skills · 121 tokens

x-cr

A software-correctness investigation skill for finding why code behaves differently from what was expected. It uses evidence from code paths, specifications, tests, logs, and changes to assess possible causes.

KtKID/x-dev-pipeline · 183 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

recall

Retrieve session memory across 4 modes — TEMPORAL (date browsing), KEYWORD (FTS lookup), DEEP (cross-session synthesis), LOAD (specific file). Trigger on "what did I do yesterday/last week", "why did we...", "remind me...", "find the memo about...", "last time we...", "patterns across projects", "load the X topic". Do…

linxule/memex-plugin · 112 tokens

shipyard-handoff

Captures session context into .shipyard/HANDOFF.md so the next session can resume without losing progress.

lgbarn/shipyard · 27 tokens