Agent skill · Data & Analytics

stats

Use when user invokes /stats or asks about Claude Code usage, token consumption, session history, model distribution, or activity patterns. Generates an interactive HTML dashboard with charts and tables, auto-opens in browser. Also triggers on "how much have I used Claude", "show my usage", "token usage", "session stats", "usage report", "usage dashboard". Do NOT use for API billing or cost estimation — token counts are not costs.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill stats-harnessprotocol-harness-kit --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/analysis/stats-harnessprotocol-harness-kit/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 Exec

What's inside
Steps it walks through
  1. Overview
  2. Workflow (MANDATORY)
  3. Step 1: Parse Arguments
  4. Step 2: Run the Dashboard Generator
  5. Step 3: Summarize in Conversation
  6. Step 4: Offer Follow-Up
  7. Scope Controls
  8. Common Mistakes
Ships with 1 file
  • metadata.json
Commands it runs
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/generate_dashboard.py" <flags>
More from claude-skill-registry
All skills →
About this skill
What does the stats skill do?

Use when user invokes /stats or asks about Claude Code usage, token consumption, session history, model distribution, or activity patterns. Generates an interactive HTML dashboard with charts and tables, auto-opens in browser. Also triggers on "how much have I used Claude", "show my usage", "token usage", "session stats", "usage report", "usage dashboard". Do NOT use for API billing or cost estimation — token counts are not costs.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill stats-harnessprotocol-harness-kit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going