Перейти к содержанию
Skillpedia
Агенты81k · #1629

intelligence-route

Что он делает

Этот скилл выбирает, какой помощник и какой уровень модели должны взяться за задачу, исходя из того, что работало раньше. Он нужен тем, кто хочет более точное распределение задач, которое можно понять и проверить.

Когда использовать

  • ✓Когда вы собираетесь начать крупную задачу и хотите, чтобы подобрали нужного помощника.
  • ✓Когда вы хотите знать, какой уровень модели подходит задаче и почему.
  • ✓Когда вы хотите видеть причину маршрутизации, чтобы проверить выбор.

Ссылка на скилл

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Какой агент и какая модель должны заняться этим рефакторингом, и можешь объяснить почему?”

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

  1. Get an agent recommendation — mcp__plugin_ruflo-core_ruflo__hooks_route with the task description. Returns { recommended, confidence, reasoning }.
  2. Get a model tier recommendation — mcp__plugin_ruflo-core_ruflo__hooks_model-route for Haiku/Sonnet/Opus selection.
  3. Search for similar past patterns — mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search to find prior successes.
  4. Predict outcome — mcp__plugin_ruflo-core_ruflo__neural_predict with the task description for a confidence-scored prediction.
  5. Spawn the recommended agent at the recommended model tier.
  6. (If --why was passed) — call mcp__plugin_ruflo-core_ruflo__hooks_explain to surface the routing rationale to the user.
  7. After task completes — call mcp__plugin_ruflo-core_ruflo__hooks_model-outcome with { 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
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы