jpskill.com
💼 ビジネス コミュニティ

router-stats

Claude Routerの利用状況に関する統計情報やコスト削減効果を分かりやすく表示し、利用状況の把握や費用対効果の検証に役立てることができるSkill。

📜 元の英語説明(参考)

Display Claude Router usage statistics and cost savings

🇯🇵 日本人クリエイター向け解説

一言でいうと

Claude Routerの利用状況に関する統計情報やコスト削減効果を分かりやすく表示し、利用状況の把握や費用対効果の検証に役立てることができるSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o router-stats.zip https://jpskill.com/download/16654.zip && unzip -o router-stats.zip && rm router-stats.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16654.zip -OutFile "$d\router-stats.zip"; Expand-Archive "$d\router-stats.zip" -DestinationPath $d -Force; ri "$d\router-stats.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して router-stats.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → router-stats フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Router Stats

Claude Router からの使用統計と推定コスト削減額を表示します。

手順

~/.claude/router-stats.json にある統計ファイルを読み込み、データを明確で整形された方法で表示します。

データ形式

統計ファイルには以下が含まれます (v1.2 スキーマ):

{
  "version": "1.2",
  "total_queries": 100,
  "routes": {"fast": 30, "standard": 50, "deep": 10, "orchestrated": 10},
  "exceptions": {"router_meta": 15, "slash_commands": 0},
  "tool_intensive_queries": 25,
  "orchestrated_queries": 10,
  "estimated_savings": 12.50,
  "delegation_savings": 2.50,
  "sessions": [
    {
      "date": "2026-01-03",
      "queries": 25,
      "routes": {"fast": 8, "standard": 12, "deep": 2, "orchestrated": 3},
      "savings": 3.20
    }
  ],
  "last_updated": "2026-01-03T15:30:00"
}

出力形式

統計を以下のように表示します。

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

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

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

🔧 Tool-Aware Routing
───────────────────────────────────────────────────
Tool-Intensive Queries: 25 (25%)
Orchestrated Queries:   10 (10%)

⚡ Exceptions (handled by Opus despite classification)
───────────────────────────────────────────────────
Router Meta-Queries:  15  (queries about the router itself)
Total Exceptions:     15

💰 Cost Savings
───────────────────────────────────────────────────
Estimated Savings:   $12.50  (compared to always using Opus)
Delegation Savings:  $2.50   (from hybrid delegation)
Total Savings:       $15.00

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

Route Distribution:
  Fast: 8 | Standard: 12 | Deep: 2 | Orchestrated: 3

手順

  1. Read ツールを使用して ~/.claude/router-stats.json を読み込みます。
  2. ファイルが存在しない場合は、まだ統計が利用可能でないことをユーザーに通知します。
  3. ルート分布のパーセンテージを計算します。
  4. 例外カウントが存在する場合は表示します (router_meta クエリは分類に関係なく Opus によって処理されます)。
  5. 統計を整形して表示します。
  6. 削減額の比較に関する説明を含めます。

注記

  • 削減額は、すべてのクエリに Opus が使用されたと仮定して計算されます。
  • コスト見積もりには、Haiku 4.5 $1/$5、Sonnet 4.5 $3/$15、Opus 4.5 $5/$25 (1M トークンあたり) を使用します。
  • 平均クエリは、1K 入力 + 2K 出力トークンと推定されます。
  • Exceptions: ルーター自体に関するクエリは分類されますが、(CLAUDE.md のルールに従って) Opus によって処理されます。 これは意図的なものです。ルーターについて議論するユーザーは、分類器が決定した内容を確認しながら、最も有能なモデルを利用できます。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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 (v1.2 schema):

{
  "version": "1.2",
  "total_queries": 100,
  "routes": {"fast": 30, "standard": 50, "deep": 10, "orchestrated": 10},
  "exceptions": {"router_meta": 15, "slash_commands": 0},
  "tool_intensive_queries": 25,
  "orchestrated_queries": 10,
  "estimated_savings": 12.50,
  "delegation_savings": 2.50,
  "sessions": [
    {
      "date": "2026-01-03",
      "queries": 25,
      "routes": {"fast": 8, "standard": 12, "deep": 2, "orchestrated": 3},
      "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):  50 (50%)  ██████████████░░░░░░
  Deep (Opus):        10 (10%)  ████░░░░░░░░░░░░░░░░
  Orchestrated:       10 (10%)  ████░░░░░░░░░░░░░░░░

🔧 Tool-Aware Routing
───────────────────────────────────────────────────
Tool-Intensive Queries: 25 (25%)
Orchestrated Queries:   10 (10%)

⚡ Exceptions (handled by Opus despite classification)
───────────────────────────────────────────────────
Router Meta-Queries:  15  (queries about the router itself)
Total Exceptions:     15

💰 Cost Savings
───────────────────────────────────────────────────
Estimated Savings:   $12.50  (compared to always using Opus)
Delegation Savings:  $2.50   (from hybrid delegation)
Total Savings:       $15.00

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

Route Distribution:
  Fast: 8 | Standard: 12 | Deep: 2 | Orchestrated: 3

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. Display exception counts if present (router_meta queries are handled by Opus despite classification)
  5. Format and display the statistics
  6. Include the savings comparison explanation

Notes

  • Savings are calculated assuming Opus would have been used for all queries
  • Cost estimates use: Haiku 4.5 $1/$5, Sonnet 4.5 $3/$15, Opus 4.5 $5/$25 per 1M tokens
  • Average query estimated at 1K input + 2K output tokens
  • Exceptions: Queries about the router itself are classified but handled by Opus (per CLAUDE.md rules). This is intentional - users discussing the router get the most capable model while still seeing what the classifier decided.