Data & Analysis ✓ Anthropic · Official session-analyticstoken-usagecache-analysishtml-report

Claude Session Usage Report

Turn local Claude Code session data into an explorable HTML usage report.

FollowSkills review · FSRS-2.0
Not recommended
41/ 100 5-point scale 2.1 / 5
Trust8 / 25 · 1.6/5

The skill explicitly reads session transcripts under ~/.claude/projects and produces HTML containing project, prompt, skill, and subagent information, but it does not specify user confirmation, sensitive-data redaction, access isolation, temporary-file cleanup, or rollback. It uses bundled local code and shows no evidence of malicious exfiltration, so some credit is warranted, but substantial points are deducted for data exposure and weak recovery controls.

Reliability7 / 20 · 1.8/5

The steps, script arguments, deduplication logic, and malformed-input handling are described in relatively concrete source code, making the happy path understandable. However, there are no tests for the key paths, and execution depends on Node.js, the expected home-directory layout, and an editing-capable environment; missing files, corrupt transcripts, permissions, and failure feedback are insufficiently covered. Static calibration and uncertainty require deductions.

Adaptability8 / 15 · 2.7/5

The skill has a clear use case: analyzing Claude Code session usage, with stated inputs, time windows, and output format. It does not clearly define non-fit cases, prerequisites, permission boundaries, semantic trigger conditions, or Chinese-language report support. Its core function is local and does not entirely depend on overseas network services, so no mainland-China reachability deduction is applied.

Convention8 / 15 · 2.7/5

The SKILL.md is readable and layered, with steps, parameter examples, output naming, template constraints, and guidance for large JSON. The repository supplies Apache-2.0 licensing, official maintenance context, and CI signals, but the skill itself lacks installation prerequisites, versioning policy, changelog, known limitations, troubleshooting, and an explicit maintenance path, preventing a near-perfect score.

Effectiveness6 / 15 · 2.0/5

The skill is designed to produce a self-contained HTML report and specifies anomaly and optimization sections, so the intended output is directly usable. No representative output or statically verifiable result is included, and report quality depends on transcript shape, template availability, and manual narrative judgment; review and correction may still be needed. The static cap and limited completeness evidence justify the deductions.

Verifiability4 / 10 · 2.0/5

The analyzer source, parameters, and output fields are auditable, and comments explain the intended deduplication and accounting behavior. However, there is no committed test suite covering this skill's key paths, no real CI execution evidence for it, and no independent corroboration. Static review therefore supports only limited verifiability.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision b0b9f02b0581
Before you use it
  • The skill embeds local Claude session prompts, project names, skills, and subagent statistics into the report; confirm that the working directory and report audience are appropriate for sensitive data.把
  • Missing transcript directories, permission failures, corrupt JSON, and absent scripts or templates do not have clearly specified user-facing recovery behavior.
  • The fixed /tmp/session-report.json intermediary may create collision or residue risks under concurrent or interrupted runs.
  • Source inspection alone cannot confirm statistical accuracy, HTML rendering, or execution of all key paths.
Review evidence [1][2][3][4][5][6][7]
See the full review method →

What it does & when to use it

Session Report analyzes Claude Code project transcripts to summarize usage. It covers tokens, cache behavior, subagents, skills, and expensive prompts, then produces a self-contained HTML report. The default reporting window is the last seven days, with support for custom ranges and all-time analysis. It is a fit for Claude Code users who need to inspect usage patterns, cache performance, and cost concentration.

It runs the bundled analyze-sessions.mjs script against Claude Code transcripts in ~/.claude/projects and writes the analysis as JSON. It then reads fields including overall, by_project, by_subagent_type, by_skill, cache_breaks, and top_prompts, embedding the results into the bundled template.html. The skill creates a timestamped session-report-YYYYMMDD-HHMM.html file in the current working directory and fills in findings and optimization suggestions.

  1. A Claude Code user wants a weekly view of token usage, cache performance, and project distribution.
  2. A developer wants to identify unusually expensive prompts or calls.
  3. A team member wants to compare usage across subagent types or skills.
  4. A user wants to see where cache breaks cluster across sessions or time periods.
  5. A Claude Code user needs a locally generated, browsable HTML usage report.

Pros & cons

Pros
  • Produces a self-contained HTML report with tables, bars, and expandable details.
  • Covers projects, subagents, skills, cache breaks, and expensive prompts.
  • Supports the default seven-day window, custom ranges, and all-time analysis.
Limitations
  • Requires readable Claude Code transcripts under ~/.claude/projects.
  • Requires Node.js, but the source does not specify a minimum version.
  • Generates a report but does not provide automatic alerting, remote sync, or data cleanup.
  • The supplied source provides no test suite or cross-platform validation evidence.

How to install

The skill is located at plugins/session-report/skills/session-report/ in anthropics/claude-plugins-official. The repository README says plugins can be installed through Claude Code's plugin system using /plugin install {plugin-name}@claude-plugins-official; the supplied source does not identify the published plugin name for this skill, so the exact installation name is undocumented here.

How to use

In a Claude Code environment with the skill installed, ask it to generate a session usage report. You may provide a range such as 24h, 30d, or all. It analyzes the last seven days by default and saves the HTML report in the current working directory. The source does not define a fixed trigger phrase.

FAQ

Does it require network access or an MCP server?
The source shows only a local analysis script and local file reads, with no network or MCP requirement.
What data does it read?
It reads Claude Code session transcripts from ~/.claude/projects and analyzes tokens, cache data, subagents, skills, and prompts.
Can it analyze all historical sessions?
Yes. For an all-time report, omit the --since argument; the default window is seven days.
Where is the report saved?
It is saved in the current working directory with a date-and-time-stamped filename.

More skills from this repository

All from anthropics/claude-plugins-official

Productivity & Collaboration ✓ Anthropic · Official

Project Status Artifact

Turn complex, multi-stream work into a living project status page.

Design & Frontend ✓ Anthropic · Official

Distinctive Frontend Design

Build an intentional visual identity for interfaces that should not feel templated.

Dev & Engineering ✓ Anthropic · Official

MCP Interactive App Builder

Add chat-embedded forms, pickers, dashboards, and confirmation widgets to MCP servers.

Dev & Engineering ✓ Anthropic · Official

Claude Skill Template Example

A reference for understanding and creating Claude Code plugin skill templates.

Dev & Engineering ✓ Anthropic · Official

MCPB Local Server Packager

Bundle a local MCP server with its runtime into one installable file.

Dev & Engineering ✓ Anthropic · Official

Claude Code Receipts

Turn local Claude Code sessions and Git history into a shareable impact report.

Design & Frontend ✓ Anthropic · Official

Playground Builder

Turn complex visual or structural choices into a live, self-contained HTML explorer.

Dev & Engineering ✓ Anthropic · Official

MCP Server Builder

Helps developers choose the right MCP deployment, tool pattern, framework, and authentication before writing code.

Dev & Engineering ✓ Anthropic · Official

Claude Code Agent Development Guide

Design, write, and validate autonomous agents for Claude Code plugins.

Automation & Ops ✓ Anthropic · Official

Discord Channel Access

Manage Discord pairings, allowlists, and DM or group policies through a local JSON configuration.

Dev & Engineering ✓ Anthropic · Official

CLAUDE.md Improver

Audit and precisely improve CLAUDE.md files across a repository.

Dev & Engineering ✓ Anthropic · Official

Claude Code Hook Development

Design, configure, validate, and debug event-driven hooks for Claude Code plugins.

Dev & Engineering ✓ Anthropic · Official

Skill Creator

Create, evaluate, and iteratively improve Agent Skills.

Dev & Engineering ✓ Anthropic · Official

MCP Integration for Claude Plugins

Configure MCP servers in Claude Code plugins to connect external services and expose their tools.

Dev & Engineering ✓ Anthropic · Official

Claude Code Plugin Skill Development

A practical guide to designing, writing, organizing, validating, and testing skills for Claude Code plugins.

Dev & Engineering ✓ Anthropic · Official

Claude Automation Advisor

Analyze a codebase and identify the most useful Claude Code automations for the project.

Dev & Engineering ✓ Anthropic · Official

Math Olympiad Adversarial Solver

Solve and stress-test IMO, Putnam, USAMO, and AIME problems with adversarial proof verification.

Dev & Engineering ✓ Anthropic · Official

Claude Code Plugin Blueprint

A practical guide to structuring plugins, configuring manifests, and organizing Claude Code components.

Dev & Engineering ✓ Anthropic · Official

Project Plugin Settings Pattern

Store and read configurable Claude Code plugin settings in project-local Markdown files.

Automation & Ops ✓ Anthropic · Official

M5Stack Onboarding

Detect, flash, and provision M5Stack ESP32 boards with UIFlow firmware and MicroPython apps.

Related skills