session-metrics SKILL.md skillA

session-metrics from centminmod/claude-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add centminmod/claude-plugins/session-metrics@git:20260725.befd9a7

Pins git:20260725.befd9a7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
centminmod/claude-plugins
Path
plugins/session-metrics/skills/session-metrics/SKILL.md
Versions recorded
5
Latest version
git:20260725.befd9a7, committed Jul 25, 2026
First version recorded
May 31, 2026
Size
32,010 bytes
Repository stars
18
License
a license file GitHub does not identify

Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log. Trigger when the user asks about session cost, token usage, API spend, cache hit rate, input/output tokens, or wants a breakdown of how much a Claude Code session has cost. Also trigger for "how much have we spent", "show me token usage", "session summary", "cost so far", or any request to analyse or display per-turn metrics from the current or a past session. Do NOT auto-dispatch compare mode…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Session Metrics

Runs `scripts/session-metrics.py` against the Claude Code JSONL log to produce
a timeline-ordered cost summary with per-turn and cumulative totals.

## Dispatch — how to route this invocation

**First positional argument received:** `$ARGUMENTS[0]`
**Full argument string:** `$ARGUMENTS`

Read `$ARGUMENTS[0]` above and match it by **literal equality** against the
table below. Claude Code already tokenized the arguments shell-style, so no
parsing is required — just compare strings.

| `$ARGUMENTS[0]`     | Route                                     | Then read |
|---------------------|-------------------------------------------|-----------|
| `all-projects`      | Instance-wide dashboard aggregating every project under `~/.claude/projects` | `## Instance dashboard (all projects)` below |
| `compare`           | Two-session compare on JSONLs that already exist | `## Model comparison` below, then [`references/model-compare.md`](references/model-compare.md) before running |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add centminmod/claude-plugins/session-metrics@sha256:554b182dd0b868f0

The line at the top of this page pins the label git:20260725.befd9a7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5tskqb5u3eztxa2o.svg)](https://markdownregistry.com/a/art_5tskqb5u3eztxa2o)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between May 31, 2026 and Jul 25, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
git:20260725.befd9a7 latest2026-07-25 befd9a7 32,010 BA view · diff
git:20260613.650b65e2026-06-13 650b65e 31,360 BA view · diff
git:20260609.cc98a1e2026-06-09 cc98a1e 29,433 BA view · diff
git:20260604.24d3bd52026-06-04 24d3bd5 28,931 BA view · diff
git:20260531.58740372026-05-31 5874037 36,958 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (32010 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

centminmod/claude-plugins · 18 stars · license a license file GitHub does not identify · pushed 2026-10-15 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_5tskqb5u3eztxa2o
GET https://markdownregistry.com/api/v1/resolve?ref=centminmod/claude-plugins/session-metrics
GET https://markdownregistry.com/api/v1/blob/554b182dd0b868f0b601bd0b55f0b45241e8a5afdb79f56880db6f7b8d4812e7

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from centminmod/claude-plugins

audit-session-metrics SKILL.md skill
centminmod/claude-plugins · plugins/session-metrics/skills/audit-session-metrics/SKILL.md · Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report. Trigger when the…
git:20261008.5239dd5 · audit A · 18 stars
task-breakdown SKILL.md skill
centminmod/claude-plugins · plugins/session-metrics/skills/task-breakdown/SKILL.md · Group a session-metrics session's turns into higher-level SEMANTIC TASKS ("what was I actually trying to do") and…
git:20260619.e5d6964 · audit A · 18 stars

Every file in centminmod/claude-plugins

Browse by kind, by grade A, or by owner.