Claude Model Routerのロゴ

Claude Model Router

コミュニティ
Rajvardhman05
claude-model-router

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

概要

公開者Rajvardhman05
リポジトリclaude-model-router
スキル名claude-model-router
スター
31
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Rajvardhman05がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Claude Model Router」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Rajvardhman05/claude-model-router/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rajvardhman05/claude-model-router.git \
  .claude/skills/claude-model-router
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでClaude Model Routerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にClaude Model Routerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Claude Model Routerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Claude model router

One model for everything is either too expensive or too weak. This skill routes each piece of work to the cheapest model that will finish it properly.

Rules are condensed from Anthropic's guide "Which Claude model should you build with?" (claude.dev/blog, November 2026). They are written by tier (Haiku / Sonnet / Opus / Fable), so they survive version bumps. If the tiers themselves change, re-read the guide.

The one rule that shapes everything

Route by delegation. Never switch the main session's model mid-task.

The main session keeps its model. Routing happens when you hand work to a subagent, by setting that subagent's model. Switching the main model mid-session throws away the prompt cache (the next turn pays full price for the whole context) and, when moving down a tier, the earlier reasoning too.

Routing table for delegated work

Set the model on the subagent call (model: haiku | sonnet | opus | fable) or in the subagent's definition file. If a tier is not available on this account, use the next tier down (no fable means opus) and say so in one line.

The subagent's jobModel
Find files, grep, read logs, run tests and report, summarize long outputhaiku
Classify, tag, route, extract fields, high-volume checkable workhaiku
Well-scoped edits against a clear spec; a contained bug fixsonnet
Repeated agent tasks: investigation, review, draftingsonnet
Everyday documents, slides, spreadsheetssonnet
Multi-file features, tricky debugging, computer use, vision-heavy workopus
Major refactor or migration, architecture planning, deep research, scientific or quantitative analysisfable
Unsureopus

Two guards on the table:

  • A clear spec does not guarantee Sonnet is enough. Migrations and performance work can need Opus even when fully specified.
  • Small models get work where mistakes are cheap to spot. If a wrong answer would pass unnoticed (a judgment call, a subtle edit), keep it on the main model.

For a one-off subagent, leave effort at the model's default. Set it explicitly in only two cases, both below: climbing the escalation ladder, and a cheap-first retry over a checkable batch.

When not to delegate at all

Delegation has a coordination cost. Skip it when:

  • the work is one dependent chain (each step needs the previous step's result), or
  • it all fits comfortably in the current context, or
  • it is a handful of tool calls.

Delegate when the work is verbose reading (logs, wide file sweeps) or genuinely parallel. The point is to keep the expensive model's context lean: every turn resends the whole context, so bulk reading belongs in a cheap subagent that returns a short summary.

Escalation ladder

When a result is not good enough, climb in this order and stop at the first rung that works:

  1. Let it verify. Give the model a test, build, or script to check its own work.
  2. Raise effort one level. Effort buys more thinking and checking. It does not add skill the model lacks.
  3. Move up one model, starting at a lower effort than the smaller model was using.

Past high effort, one more effort level can cost as much as the next model up. On hard tasks try the bigger model before going beyond high.

Cheap-first retry. When the outcome can be checked automatically, run the batch at low effort and re-run only the failures at high. This usually beats running everything at high on both cost and pass rate.

Advising on the main session's model

You cannot change the session's model yourself; the user does. Speak up in one line only when there is a clear mismatch, then carry on as asked:

  • Too small: a major migration, architecture work, or a long unattended run on Sonnet or Haiku. Suggest moving up.
  • Too big: a long stretch of simple, well-scoped edits on the top tier. Suggest moving down.

Sensible starting points when the user asks:

WorkModelEffort
Most coding and knowledge workopusmedium, then high
Well-scoped everyday codingsonnetmedium, then high
Chat a person is waiting onsonnetlow or medium
Hardest technical work, long unattended runs, leading many subagentsfablemedium, then high

If the user does switch, tell them to compact first or start a fresh session with a short written plan, so the new model does not pay to re-read the whole history.

Do not oversell it

Mixed-model setups do not always win. Judge by cost per finished task, not price per token: a pricier model that finishes in half the tokens can be cheaper. If the user wants proof, the test is simple: run a few real tasks with automatic pass/fail checks on each candidate, and keep the mixed setup only if it beats every single-model run.

よくある質問

AIスキル「Claude Model Router」では何ができますか?

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

TypingMindでClaude Model Routerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Claude Model Routerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにClaude Model Routerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Rajvardhman05/claude-model-router/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Claude Model Routerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Claude Model Routerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもClaude Model Routerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Claude Model Router」は無料ですか?

はい。Rajvardhman05がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇