smart-routing

smart-routing is a skill for Claude Code, Codex from wasintoh/toh-framework. It costs 65 tokens per session (2,941 once invoked), scanned A, original, MIT.

A request-routing system for the /toh command that interprets a user’s intent and sends the work to suitable agents.

In plain words
What is it for?
Use it to route natural-language tasks through the appropriate agent or agents, especially when the request is complex or unclear.
Why use it?
It helps ambiguous or varied requests reach the right workflow by considering the request, project memory, scope, and available runtime information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit Use it to route natural-language tasks through the appropriate agent or agents, especially when the request is complex or unclear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wasintoh/toh-framework/smart-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wasintoh/toh-framework --skill smart-routing
Clone the repo
git clone --depth 1 https://github.com/wasintoh/toh-framework

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/wasintoh/toh-framework/smart-routing/github.svg)](https://agentmods.dev/skills/wasintoh/toh-framework/smart-routing)
Your own site
<a href="https://agentmods.dev/skills/wasintoh/toh-framework/smart-routing"><img src="https://agentmods.dev/badge/skills/wasintoh/toh-framework/smart-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smart-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/wasintoh/toh-framework/smart-routing"><img src="https://agentmods.dev/badge/skills/wasintoh/toh-framework/smart-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 323
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02941
Opus 5.5 $0.00026 $0.01176
Sonnet 5.5 $0.00013 $0.00588
Haiku 4.5 $0.00006 $0.00294

Measured 3mo ago against content hash a28d6934b0ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smart-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/smart-routing/SKILL.md · 332 lines

How it starts

The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Smart Routing Skill

Intelligent routing engine for the /toh smart command. Routes any natural language request to the right agent(s).


🧠 Routing Pipeline

┌─────────────────────────────────────────────────────────────────┐
│                    USER REQUEST                                 │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  STEP 0: MEMORY CHECK (ALWAYS FIRST!)                          │
│  ├── Read .toh/memory/active.md                                │
│  ├── Read .toh/memory/summary.md                               │
│  ├── Read .toh/memory/decisions.md                             │
│  └── Build context understanding                               │
│                                                                 │
│  STEP 1: INTENT CLASSIFICATION                                 │
│  ├── Pattern matching (keywords, phrases)                      │
│  ├── Context inference (from memory)                           │
│  └── Scope detection (simple/complex)                          │
│                                                                 │
│  STEP 2: CONFIDENCE SCORING                                    │
│  ├── HIGH (80%+) → Direct execution                            │
│  ├── MEDIUM (50-80%) → Plan Agent first                        │
│  └── LOW (<50%) → Ask for clarification                        │
│                                                                 │
│  STEP 3: RUNTIME SURVEY (2-step — orchestration-protocol A)    │
│  ├── Identity: declared by loaded context file +               │
│  │   .toh/capabilities.json                                    │
│  └── Probe: teams env flag + version gates only                │
│                                                                 │
│  STEP 4: AGENT SELECTION & EXECUTION                           │
│  └── Route to appropriate agent(s)                             │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 332 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 332 lines · 65 tokens per session scan A a28d6934b0ae

Subscribe to this mod's changes

smart-routing is a skill published in the GitHub repository wasintoh/toh-framework (99 stars, last pushed 21d ago), licensed MIT. It adds 65 tokens to every session and 2,941 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

smart-routing compared with skills from other repositories

smart-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
smart-routingwasintoh/toh-frameworkSkill9921d agoMITA65Claude Code, Codex
image-generationbytedance/deer-flowSkill86ktodayMITA42Claude Code, Codex
podcast-generationbytedance/deer-flowSkill86ktodayMITA38Claude Code, Codex
skill-reviewerbytedance/deer-flowSkill86ktodayMITA38Claude Code
surprise-mebytedance/deer-flowSkill86ktodayMITA67Claude Code, Codex
find-leadseracle/OpenOutreachSkill3.9k2d agoApache-2.0A0Claude Code
skill-creatorCreminiAI/skillpackSkill1.2k2mo agoMITA64Claude Code, Codex