metrics-report
Skill0 starsChanged 8 months agoMITView on GitHub
Render a self-contained HTML report from ~/.claude/metrics/{auto,retro}.jsonl and write it to ~/.claude/metrics/report.html. Same window/project filters as /analyze-metrics. Read-only — appends nothing to the metrics files. Manual invocation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- DanderlionJer/skillstheir own version, first seen May 6, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- DanderlionJer/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-metricsSkill
- retrospectiveSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Read-only on the JSONL files.
- Very specific: line 40
Default output: ~/.claude/metrics/report.html (override with --output).
- Very specific: line 42
If auto.jsonl is empty, the script exits non-zero with a friendly message — do not retry, do not fabricate data.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/metrics-report
Generate a single static HTML file with the same insights as /analyze-metrics, organized for at-a-glance reading: hero KPIs, weekly cost chart (inline SVG), tables with proportional bars, callouts for the high-signal findings (cache savings, marathon spend share, cheap subagent calls). Zero JavaScript, zero CDN, zero network calls — opens directly via file://.
Arguments
/metrics-report # default: last 30 days, all projects
/metrics-report --since 7d # last 7 days
/metrics-report --since 90d # last 90 days
/metrics-report --since all # full history
/metrics-report --since 2026-01-01 # explicit ISO date (UTC)
/metrics-report --project foo/bar # only sessions in that repo
/metrics-report --project github.com/foo/bar # match by full normalized origin
/metrics-report --output ~/Desktop/report.html # custom output path
/metrics-report --since 90d --project foo/bar # combined--since and --project follow the exact same rules as /analyze-metrics (shared helpers): substring matches on --project are intentionally rejected, garbage --since falls back to the default 30-day window.
Steps
Run the renderer. It loads
auto.jsonl+retro.jsonl, applies filters, aggregates, and writes a single self-contained HTML file:python3 ~/.claude/skills/metrics-report/_render.py ${ARGUMENTS:-}- Print the renderer's stdout verbatim (it tells the user the resolved output path and an
opencommand). Add no commentary.
Rules
- Read-only on the JSONL files. Writes only the HTML output.
- Default output:
~/.claude/metrics/report.html(override with--output). - The HTML file is fully self-contained: CSS inline, SVG inline, no
<script>, no remote URLs. Safe to inspect withview-source:orgrep. - If
auto.jsonlis empty, the script exits non-zero with a friendly message — do not retry, do not fabricate data. - The header always shows the active window + project filter so the file is self-describing; re-run with different flags to get a different slice.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

