Model router
Skill Renga154/model-router
Difficulty-based model & reasoning-effort auto-routing skill for AI coding agents (Claude Code, Codex, Agent Skills standard). BYOK.
npx -y skills add Renga154/model-routerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 19 days oldThe repository was created 19 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Route AI development tasks to the optimal model and reasoning effort by difficulty. Use when starting any coding/implementation/debugging task to decide which model tier should execute it, when the user asks to optimize model usage or cost, or mentions model routing, モデル振り分け, 難易度判定, or コスト最適化. Works on Claude Code, Codex, and other Agent Skills-compatible platforms.
SKILL.md
3.0 KB, 618 tokens by cl100k_base, as published. Nobody here has run it
Model Router
Classify each task by difficulty and delegate it to the optimal model + reasoning effort, balancing cost and quality.
Procedure
- Classify — Assign the task a tier (T0–T3) using the rubric below. Classify multi-task requests item by item. When unsure, round up one tier.
- Pick the delegation target — Look up the current platform's target in references/routing.md. Platform-specific delegation mechanics are in references/platforms.md.
- Delegate — Write a self-contained prompt: background, target file paths, and completion criteria.
- Verify — Always check the result. If the delegate returned
ESCALATE:or verification failed, escalate one tier and retry exactly once. If it fails again, take the task over yourself (main loop). - Report — End with one line telling the user which tier/model executed the task.
Difficulty rubric
| Tier | Criteria | Examples |
|---|---|---|
| T0 Lite | Single file, mechanical, one correct answer | Typo fixes, renames, import cleanup, boilerplate, file lookups/summaries, formatting |
| T1 Standard | Clear scope, a few files, follows existing patterns | Reproducible bug fixes, small features, adding tests, in-module refactors, docs updates |
| T2 Deep | Cross-cutting, unknown cause, involves design decisions | Multi-module changes, hard debugging, performance work, concurrency, migrations |
| T3 Frontier | Ambiguous, high-risk, architecture-level | Tech selection, architecture design, clarifying vague requirements, large refactor planning |
Hard rules (override the rubric)
- Tasks touching security, auth, billing, or data deletion are at least T2.
- An explicit model/target choice from the user always wins (this skill's classification is the default behavior).
- Don't spend time on classification. If you can't decide instantly, go one tier up.
- Delegation prompts for T0/T1 must include: "If this turns out harder than expected, stop and reply only with
ESCALATE: <reason>."
Cross-model consultation (optional, T2/T3)
For design decisions or reviews where a second opinion from a third-party model (Kimi / Qwen / DeepSeek, etc.) helps, consult via OpenRouter:
echo "<question or code to review>" | node scripts/consult.mjs --model moonshotai/kimi-k2.7-code
node scripts/consult.mjs --models qwen # search available model IDs (no API key needed)
If OPENROUTER_API_KEY is not set, the script runs as a dry-run (prints the request without sending). Treat consultation results as input, not verdicts — make the final call yourself.
What ships with it: 14 files
36.3 KB alongside SKILL.md, 2 of them executable
install/
- agents/route-deep.md943 B
- agents/route-lite.md691 B
- agents/route-std.md813 B
- codex/deep.config.toml51 B
- codex/lite.config.toml54 B
- codex/std.config.toml52 B
- install.shruns4.5 KB
references/
- platforms.md2.5 KB
- routing.md2.1 KB
scripts/
- consult.mjsruns4.7 KB
- .gitignore42 B
- LICENSE1.0 KB
- README.ja.md10.6 KB
- README.md8.3 KB