intelligence-route
できること
このスキルは、以前にうまくいったことに基づいて、どのヘルパーとどのモデル階層がタスクを担当すべきかを選びます。割り当てを理解して確認できる、より良いものがほしい人向けです。
使う場面
- ✓大きめのタスクを始める前に、適切なヘルパーを選びたいとき。
- ✓どのモデル階層がタスクに合うか、またその理由を知りたいとき。
- ✓選択を確認できるように、ルーティングの理由を表示したいとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このリファクタリングは、どのエージェントとモデルが担当すべきですか? 理由も説明してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、推奨されるエージェントとモデル階層をルーティングツールに尋ね、似た過去のパターンを確認して予測を得ます。その後、選ばれたヘルパーを起動し、求められた場合は理由を示します。タスクの後には、結果を成功、失敗、エスカレーションのいずれかとして記録し、今後の選択を改善します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Intelligence Routing
Pick the optimal agent + model tier for a task using learned patterns + the 3-tier router. Emits a hooks_explain rationale so the choice is auditable.
When to use
Before starting any non-trivial task. Replaces manual agent selection with data-driven decisions.
Steps
- Get an agent recommendation —
mcp__plugin_ruflo-core_ruflo__hooks_routewith the task description. Returns{ recommended, confidence, reasoning }. - Get a model tier recommendation —
mcp__plugin_ruflo-core_ruflo__hooks_model-routefor Haiku/Sonnet/Opus selection. - Search for similar past patterns —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-searchto find prior successes. - Predict outcome —
mcp__plugin_ruflo-core_ruflo__neural_predictwith the task description for a confidence-scored prediction. - Spawn the recommended agent at the recommended model tier.
- (If
--whywas passed) — callmcp__plugin_ruflo-core_ruflo__hooks_explainto surface the routing rationale to the user. - After task completes — call
mcp__plugin_ruflo-core_ruflo__hooks_model-outcomewith{ task, model, outcome: "success"|"failure"|"escalated" }to train the router.
3-Tier Model Routing
| Tier | Handler | Latency | Cost | When |
|---|---|---|---|---|
| 1 | Deterministic codemod (TS compiler) | ~1ms | $0 | Structural transforms with no LLM: var-to-const, remove-console, add-logging |
| 2 | Haiku | ~500ms | ~$0.0002 | Low complexity (<30%), bug fixes, quick patches |
| 3 | Sonnet/Opus | 2–5s | $0.003–$0.015 | Complex reasoning, architecture, security, multi-file refactors |
When hooks_route returns [CODEMOD_AVAILABLE] for a deterministic intent (var-to-const, remove-console, add-logging), call mcp__plugin_ruflo-core_ruflo__hooks_codemod with the intent + file — it applies the transform via the TypeScript compiler at $0, no LLM. Note: add-types, add-error-handling, async-await require judgement and route to a model (Tier 2/3) per ADR-143; they are NOT $0 codemods. Agent Booster is a fast-apply merge engine for LLM-produced edits, not the Tier-1 path.
Recording outcomes
Closing the routing loop is mandatory:
# Success (task, model and outcome are all required; model is haiku|sonnet|opus)
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "success"}'
# The model was too small and the work moved up a tier: use "escalated"; use "failure" if it did not work out
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "escalated"}'
The router learns from these calls. Skipping them = no learning.
CLI alternative
npx @claude-flow/cli@latest hooks route --task "description"
npx @claude-flow/cli@latest hooks pre-task --description "description"
npx @claude-flow/cli@latest hooks explain --task "description" --verbose
よくある質問
理由は常に表示されますか?
whyのオプションを付けて求めた場合にのみ表示されます。それ以外の場合、選択は説明なしで行われます。
どのように改善されますか?
各タスクの後に結果が成功、失敗、エスカレーションとして記録され、ルーターが学習します。
どのモデル階層から選びますか?
タスクの複雑さに基づいて、Haiku、Sonnet、Opus の階層から選びます。
詳細
作者による元の説明
Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooks_explain
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1629
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。