stats

A read-only dashboard that turns Claude Code's local session records into an interactive HTML report. It shows activity over time, model use, projects, hourly patterns, and individual sessions.

In plain words
What is it for?
Use it to view token consumption and activity for a selected period, such as the last week, last month, a custom date range, or all available history.
Why use it?
It gathers usage information into charts and sortable tables instead of requiring manual inspection of raw session files. The generated report works locally without a server.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/harnessprotocol/harness-kit/stats
Any agent
npx skills add harnessprotocol/harness-kit --skill stats
Clone the repo
git clone --depth 1 https://github.com/harnessprotocol/harness-kit

Made for: Claude Code, Codex.

Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00092 $0.01085
Opus 5 $0.00046 $0.00543
Sonnet 5 $0.00018 $0.00217
Haiku 4.5 $0.00009 $0.00109

Measured 2d ago against content hash dc4c4817080c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/stats/skills/stats/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code Usage Dashboard

Overview

Generate an interactive HTML dashboard from Claude Code's local session data. The dashboard shows daily activity, model distribution, project breakdown, hourly patterns, and session details — with live filtering and sortable tables.

Core principles:

  1. Script-first. A Python script aggregates all data and produces the HTML. Claude never parses raw JSONL files.
  2. Browser-native. The output is a self-contained HTML file with Chart.js charts and client-side filtering. No server needed.
  3. Read-only. The script only reads from ~/.claude/. It writes one temp HTML file and opens the browser.

Workflow (MANDATORY)

Step 1: Parse Arguments

Map the user's request to CLI flags:

User says Flags
/stats (no args) --range 14d
"last week" --range week
"last month" --range month
"last 30 days" --range 30d
"all time" / "everything" --range all
"March 1 to March 10" --start 2026-03-01 --end 2026-03-10

Convert relative dates to absolute YYYY-MM-DD format. If the user gives a vague range, default to --range 14d.

Step 2: Run the Dashboard Generator

Execute via Bash:

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/generate_dashboard.py" <flags>

The script:

  • Reads ~/.claude/stats-cache.json for pre-computed daily data
  • Scans ~/.claude/projects/**/*.jsonl for recent session data
  • Merges both sources into a complete dataset
  • Injects the data into an HTML template
  • Writes to /tmp/claude-usage-YYYY-MM-DD.html
  • Opens it in the default browser

If the script exits with an error, show the stderr output and stop. Do not attempt manual data parsing.

If the user specifies --range all, warn them it may take 10-30 seconds for large histories before running.

Step 3: Summarize in Conversation

After the dashboard opens, provide a brief text summary (3-5 bullets) so the user gets immediate context without switching to the browser:

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 93 lines · 92 tokens per session scan A dc4c4817080c

Subscribe to this mod's changes

stats is a skill published in the GitHub repository harnessprotocol/harness-kit (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 92 tokens to every session and 1,085 once invoked, about $0.0005 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

zoning-envelope

Generate interactive 3D zoning envelope viewers from zoning analysis reports. Use when the user asks to "visualize the zoning envelope" or see buildable massing in 3D, typically after /as:zoning-analysis-nyc. Requires a zoning analysis report as input.

AlpacaLabsLLC/skills-for-architects · 60 tokens

mindmap

CRITICAL — if the user asks for a mind map, concept map, knowledge map, visual summary, or says "map this out", "map this", "mind map this", "visualize the structure", "break this down visually", or "turn this into a mind map", you MUST use this skill. Stop everything and read this SKILL.md immediately. The default…

0x-man/mindmap-skill · 155 tokens

anycrawl-instagram-scraper

Extract public Instagram data from a single URL through the AnyCrawl Scrape API. Use when a user provides an Instagram profile, reel, or post URL and wants as much structured data as possible from that one link, including normalized JSON plus the raw AnyCrawl markdown, HTML, links, and screenshot artifacts.

citedy/skills · 71 tokens

anycrawl-tiktok-scraper

Extract public TikTok data from a single URL through the AnyCrawl Scrape API. Use when a user provides a TikTok video, profile, or hashtag URL and wants as much structured data as possible from that one link, including normalized JSON plus the raw AnyCrawl markdown, HTML, links, and screenshot artifacts.

citedy/skills · 73 tokens

anycrawl-youtube-video-extractor

Extract public YouTube watch-page data from a single URL through the AnyCrawl Scrape API. Use when a user provides a YouTube watch link and wants as much structured data as possible from that one video, including normalized JSON plus the raw AnyCrawl markdown, HTML, links, transcript-bearing content, and screenshot…

citedy/skills · 74 tokens

reddit-intel

Scrape Reddit posts by keyword, classify intent and sentiment by industry, translate to Chinese, and export a bilingual Excel intelligence report. Trigger when user says: scrape reddit, reddit analysis, reddit insights, monitor reddit, 爬reddit, reddit舆情, reddit帖子分析, 分析reddit, reddit监控, 帮我看看reddit上, reddit上有什么人说.

carrielabs/reddit-intel · 81 tokens