Agent skill

Intelligence Route

by ruvnet in ruvnet/ruflo

Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooksexplain

MITAuto-check: notesDevelopment

Install Intelligence Route

skills CLI
$ npx skills add ruvnet/ruflo --skill intelligence-route -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo intelligence-route --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-intelligence/skills/intelligence-route .claude/skills/intelligence-route && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
intelligence-route
GitHub stars
74k
Token cost
~874 tokens
SKILL.md length
254 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooksexplain

  • Works in 7 steps: Get an agent recommendation —… → Get a model tier recommendation —… → Search for similar past patterns —… → …
  • Development work in your project
  • SKILL.md covers When to use, Steps, 3-Tier Model Routing and Recording outcomes, plus 1 more section
  • Calls npx

What it does

Intelligence Route is an agent skill from ruvnet/ruflo. Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooksexplain

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/intelligence-route”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__hooks_route, mcp__plugin_ruflo-core_ruflo__hooks_explain, mcp__plugin_ruflo-core_ruflo__hooks_model-route, mcp__plugin_ruflo-core_ruflo__hooks_model-stats, mcp__plugin_ruflo-core_ruflo__hooks_model-outcome, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_attention, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_stats, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, Bash

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Get an agent recommendation — mcpplugin_ruflo-core_ruflohooks_route with the task description. Returns { recommended, confidence…
  2. Get a model tier recommendation — mcpplugin_ruflo-core_ruflohooks_model-route for Haiku/Sonnet/Opus selection.
  3. Search for similar past patterns — mcpplugin_ruflo-core_ruflohooks_intelligence_pattern-search to find prior successes.
  4. Predict outcome — mcpplugin_ruflo-core_rufloneural_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 mcpplugin_ruflo-core_ruflohooks_explain to surface the routing rationale to the user.
  7. After task completes — call mcpplugin_ruflo-core_ruflohooks_model-outcome with success: true|false to train the router.

What it can do on your machine

Read from SKILL.md and the folder at commit de590e1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__hooks_route
    • mcp__plugin_ruflo-core_ruflo__hooks_explain
    • mcp__plugin_ruflo-core_ruflo__hooks_model-route
    • mcp__plugin_ruflo-core_ruflo__hooks_model-stats
    • mcp__plugin_ruflo-core_ruflo__hooks_model-outcome
    • mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search
    • mcp__plugin_ruflo-core_ruflo__hooks_intelligence_attention
    • mcp__plugin_ruflo-core_ruflo__hooks_intelligence_stats
    • mcp__plugin_ruflo-core_ruflo__neural_predict
    • mcp__plugin_ruflo-core_ruflo__hooks_pre-task

    …and 1 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Intelligence Route loads about 874 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 254 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~874

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__hooks_route, mcp__plugin_ruflo-core_ruflo__hooks_explain, mcp__plugin_

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit de590e1, republished under its MIT licence (© ruvnet). 254 words, ~874 tokens.

Download SKILL.mdSave it as .claude/skills/intelligence-route/SKILL.md (or your agent's skills folder).
name
intelligence-route
description
Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooks_explain
allowed-tools
mcp__plugin_ruflo-core_ruflo__hooks_route, mcp__plugin_ruflo-core_ruflo__hooks_explain, mcp__plugin_ruflo-core_ruflo__hooks_model-route, mcp__plugin_ruflo-core_ruflo__hooks_model-stats, mcp__plugin_ruflo-core_ruflo__hooks_model-outcome, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_attention, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_stats, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, Bash
argument-hint
<task-description> [--why]

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 success: true|false to train the router.

3-Tier Model Routing

TierHandlerLatencyCostWhen
1Deterministic codemod (TS compiler)~1ms$0Structural transforms with no LLM: var-to-const, remove-console, add-logging
2Haiku~500ms~$0.0002Low complexity (<30%), bug fixes, quick patches
3Sonnet/Opus2–5s$0.003–$0.015Complex 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:

bash
# Success
mcp tool call hooks_model-outcome --json -- '{"taskId": "T123", "success": true, "model": "haiku"}'

# Failure with reason
mcp tool call hooks_model-outcome --json -- '{"taskId": "T123", "success": false, "model": "haiku", "reason": "complexity-misjudged"}'

The router learns from these calls. Skipping them = no learning.

CLI alternative

bash
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 --topic "routing decision"

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-intelligence/skills/intelligence-route of ruvnet/ruflo.

Open the folder on GitHubat commit de590e1

Compare with similar skills

Intelligence Route next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Intelligence Route compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Intelligence Route this skillruvnet/ruflo74k—~874Automated safety check: NotesMIT
Grepaiyoanbernabeu/grepai1.9k—~1.1kAutomated safety check: PassMIT
E2b Sandboxagent-sandbox/agent-sandbox218—~2.6kAutomated safety check: PassApache-2.0
Cursor Agents Workflowlangfuse/langfuse35k—~1.7kAutomated safety check: PassCustom licence
Symdex Code Searchhusnainpk/SymDex208—~2.3kAutomated safety check: PassMIT
RAG Code Reviewlyonzin/knowledge-rag290—~1.8kAutomated safety check: PassMIT

Similar skills

  • Grepai

    yoanbernabeu/grepai

    Semantic code search and call-graph tracing. An agent skill from yoanbernabeu/grepai.

    1.9k GitHub stars~1.1k tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • E2b Sandbox

    agent-sandbox/agent-sandbox

    Create, manage, and use E2B sandboxes — run commands, manage files, use git, persist state, and configure networking.

    218 GitHub stars~2.6k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Cursor Agents Workflow

    langfuse/langfuse

    Human handoff, Linear branch names, reviewable (non-draft) PRs, the cursor GitHub label, Claude, Greptile, and Codex review comments, preview test steps, proof of work posted on the GitHub PR, and…

    35k GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Symdex Code Search

    husnainpk/SymDex

    This skill should be used when finding, tracing, or understanding code in a repository with SymDex available.

    208 GitHub stars~2.3k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • RAG Code Review

    lyonzin/knowledge-rag

    When performing code review on a PR, diff, snippet, or "look at this change" request, first consult the corpus for related ADRs, coding standards, prior patterns, and similar files.

    290 GitHub stars~1.8k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • GitHub Commenting

    juspay/neurolink

    How to post clean, rich, deduplicated GitHub PR review comments — suggestion blocks, multi-line anchors, markers, formatting rules.

    143 GitHub stars~698 tokensUpdated today
    DevelopmentAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Questions about Intelligence Route

What does Intelligence Route do?

Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooksexplain. Intelligence Route is an agent skill from ruvnet/ruflo.

When should I use Intelligence Route?

Intelligence Route fits situations like: development work in your project.

How do I install Intelligence Route in Claude Code?

Run `npx skills add ruvnet/ruflo --skill intelligence-route -a claude-code`. Or copy the skill folder (plugins/ruflo-intelligence/skills/intelligence-route in ruvnet/ruflo) into .claude/skills/intelligence-route in your project. Claude Code loads it when a task matches its description.

How do I install Intelligence Route in Codex?

Run `npx skills add ruvnet/ruflo --skill intelligence-route -a codex`. Or copy the skill folder (plugins/ruflo-intelligence/skills/intelligence-route in ruvnet/ruflo) into .agents/skills/intelligence-route in your project. Codex loads it when a task matches its description.

Can I use Intelligence Route in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill intelligence-route -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/intelligence-route, .gemini/skills/intelligence-route, .github/skills/intelligence-route and .opencode/skills/intelligence-route in your project.

What does Intelligence Route need to run?

Going by SKILL.md and its folder, Intelligence Route needs the command-line tools its instructions call (npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__hooks_route, mcp__plugin_ruflo-core_ruflo__hooks_explain, mcp__plugin_ruflo-core_ruflo__hooks_model-route, mcp__plugin_ruflo-core_ruflo__hooks_model-stats, mcp__plugin_ruflo-core_ruflo__hooks_model-outcome, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_attention, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_stats, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__hooks_pre-task, Bash.

Does Intelligence Route access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Intelligence Route safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Intelligence Route use?

Intelligence Route is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Intelligence Route use?

About 874 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Intelligence Route?

Skills that share tags, products or a category with Intelligence Route: Grepai (yoanbernabeu/grepai, 1.9k stars), E2b Sandbox (agent-sandbox/agent-sandbox, 218 stars), Cursor Agents Workflow (langfuse/langfuse, 35k stars) and Symdex Code Search (husnainpk/SymDex, 208 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Intelligence Route?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,012 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 7, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.