agentleFS
bmersereaubmersereau/claude-router/skills/router-stats/SKILL.md

router-stats

Skill0 starsChanged 11 months agoMITView on GitHub

Display Claude Router usage statistics and cost savings

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. ThomasLangbroek/frugal★ 36same 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 repository2 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. Very specific:

    Read the stats file at ~/.claude/router-stats.json and present the data in a clear, formatted way.

    line 13
  2. Very specific:

    Use the Read tool to read ~/.claude/router-stats.json

    line 68
  3. Distinctive:

    If the file doesn't exist, inform the user that no stats are available yet

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Router Stats

Display usage statistics and estimated cost savings from Claude Router.

Instructions

Read the stats file at ~/.claude/router-stats.json and present the data in a clear, formatted way.

Data Format

The stats file contains:

{
  "version": "1.0",
  "total_queries": 100,
  "routes": {"fast": 30, "standard": 60, "deep": 10},
  "estimated_savings": 12.50,
  "sessions": [
    {
      "date": "2026-01-03",
      "queries": 25,
      "routes": {"fast": 8, "standard": 15, "deep": 2},
      "savings": 3.20
    }
  ],
  "last_updated": "2026-01-03T15:30:00"
}

Output Format

Present the stats like this:

╔═══════════════════════════════════════════════════╗
║           Claude Router Statistics                 ║
╚═══════════════════════════════════════════════════╝

📊 All Time
───────────────────────────────────────────────────
Total Queries Routed: 100

Route Distribution:
  Fast (Haiku):     30 (30%)  ████████░░░░░░░░░░░░
  Standard (Sonnet): 60 (60%)  ████████████████░░░░
  Deep (Opus):      10 (10%)  ████░░░░░░░░░░░░░░░░

💰 Estimated Savings: $12.50
   (compared to always using Opus)

📅 Today (2026-01-03)
───────────────────────────────────────────────────
Queries: 25
Savings: $3.20

Route Distribution:
  Fast: 8 | Standard: 15 | Deep: 2

Steps

  1. Use the Read tool to read ~/.claude/router-stats.json
  2. If the file doesn't exist, inform the user that no stats are available yet
  3. Calculate percentages for route distribution
  4. Format and display the statistics
  5. Include the savings comparison explanation

Notes

  • Savings are calculated assuming Opus would have been used for all queries
  • Cost estimates use: Haiku $0.25/$1.25, Sonnet $3/$15, Opus $15/$75 per 1M tokens
  • Average query estimated at 1K input + 2K output tokens

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.