agentleFS
nacorganacorga/claude-code-metrics/skills/metrics-report/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Distinctive:

    Read-only on the JSONL files.

    line 39
  2. Very specific:

    Default output: ~/.claude/metrics/report.html (override with --output).

    line 40
  3. Very specific:

    If auto.jsonl is empty, the script exits non-zero with a friendly message — do not retry, do not fabricate data.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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

  1. 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:-}
  2. Print the renderer's stdout verbatim (it tells the user the resolved output path and an open command). 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 with view-source: or grep.
  • If auto.jsonl is 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.