AgentStack
SKILL verified MIT Self-run

Session Report

skill-thevibeworks-claude-code-docs-session-report · by thevibeworks

Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-thevibeworks-claude-code-docs-session-report

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Session Report? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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:

``sh node /analyze-sessions.mjs --json --since 7d > /tmp/session-report.json ` For all-time, omit --since`.

  1. Read /tmp/session-report.json. Skim overall, by_project, by_subagent_type, by_skill, cache_breaks, top_prompts.
  1. Copy the template (also bundled alongside this SKILL.md) to the output path in the current working directory:

``sh cp /template.html ./session-report-$(date +%Y%m%d-%H%M).html ``

  1. Edit the output file (use Edit, not Write — preserve the template's JS/CSS):
  • Replace the contents of `` with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically.
  • Fill the ` block with **3–5 one-line findings**. Express figures as a **% of total tokens** wherever possible (total = overall.inputtokens.total + overall.outputtokens`). One line per finding, exact markup:

``html 41.2%cc-monitor consumed 41% of the week across just 3 sessions ` Classes: .take bad for waste/anomalies (red), .take good for healthy signals (green), .take info for neutral facts (blue). The .fig is one short number (a %, a count, or a multiplier like 12×). The .txt is one plain-English sentence naming the project/skill/prompt; wrap the subject in `. Look for: a project or skill eating a disproportionate share, cache-hit 2% of total, subagent types averaging >1M tokens/call, cache breaks clustering.

  • Fill the ` block (at the **bottom** of the page) with 1–4 suggestions tied to specific rows (e.g. "/weekly-status` spawned 7 subagents for 8.1% of total — scope it to fewer parallel agents").
  • Do not restructure existing sections.
  1. Report the saved file path to the user. Do not open it or render it.

Notes

  • The template is the source of interactivity (sorting, expand/collapse, block-char bars). Your job is data + narrative, not markup.
  • Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.
  • top_prompts already includes subagent tokens and rolls task-notification continuations into the originating prompt.
  • If the JSON is >2MB, trim top_prompts to 100 entries and cache_breaks to 100 before embedding (they should already be capped).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.