Skip to content

Generates an explorable HTML usage report from local Claude Code session transcripts, with anomaly callouts.

CCM score
80 of 100
skills.sh installs
5K
GitHub stars
48.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers token totals, cache hit rates, subagent and skill usage, and the most expensive prompts across projects
  • Runs a bundled analyze-sessions.mjs over ~/.claude/projects transcripts, defaulting to the last 7 days with 24h, 30d, or all windows
  • Embeds the results in a bundled self-contained template that renders sortable tables, bars, and drill-downs in the browser
  • Designed for developers who want to see where their Claude Code token spend is going

Install

$ npx -y skills add anthropics/claude-plugins-official --skill session-report -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Session Report

Produce a self-contained HTML report of Claude Code usage and save it to the current working directory.

Steps

  1. Get data. Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g. 24h, 30d, or all). The script analyze-sessions.mjs lives in the same directory as this SKILL.md — use its absolute path:

    node <skill-dir>/analyze-sessions.mjs --json --since 7d > /tmp/session-report.json
    

    For all-time, omit --since.

  2. Read /tmp/session-report.json. Skim overall, by_project, by_subagent_type, by_skill, cache_breaks, top_prompts.

  3. Copy the template (also bundled alongside this SKILL.md) to the output path in the current working directory:

    cp <skill-dir>/template.html ./session-report-$(date +%Y%m%d-%H%M).html
    

Details

Repository
github.com/anthropics/claude-plugins-official
Categories
Memory & Context, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the session-report skill do?

The session-report skill generates an explorable HTML report of Claude Code session usage, covering tokens, cache, subagents, skills and expensive prompts. It reads transcripts from ~/.claude/projects and saves the report to the current working directory. The default window is the last 7 days, and a different range can be requested.

How do I install the session-report skill?

Run npx -y skills add anthropics/claude-plugins-official --skill session-report -y in a project to install it. Once installed, the agent can produce a self-contained HTML usage report from your Claude Code transcripts.

Where does session-report sit among Memory & Context skills?

On the Memory & Context category page, session-report ranks in the top 50. Other skills in that category include handoff, caveman-compress, caveman-stats, caveman-learn and caveman-optimize. Session-report differs by focusing on usage analytics of past Claude Code sessions rather than carrying context forward.

What does the session-report skill need to run?

It needs a local Claude Code transcript history under ~/.claude/projects and Node.js, since the bundled analyze-sessions.mjs script runs it. The report is written as a file in your current working directory.

More from anthropics/claude-plugins-official

All 23

Similar to Session Report

More Memory & Context