model-routing

model-routing is a skill for Claude Code from alebgl77/tierdecay. It costs 73 tokens per session (1,073 once invoked), scanned A, original, MIT.

A task-routing guide that assigns coding work to one of four model levels based on complexity, risk, and the project's past results.

In plain words
What is it for?
It helps plan multi-step work, choose an executor, write task instructions, and retry work at a higher model level when needed.
Why use it?
It reduces guesswork when choosing between faster, cheaper models and models suited to difficult or risky work. It also defines when to escalate a failed task.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit It helps plan multi-step work, choose an executor, write task instructions, and retry work at a higher model level when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alebgl77/tierdecay/model-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 alebgl77/tierdecay --skill model-routing
Clone the repo
git clone --depth 1 https://github.com/alebgl77/tierdecay

Made for: Claude Code.

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 model-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/alebgl77/tierdecay/model-routing/github.svg)](https://agentmods.dev/skills/alebgl77/tierdecay/model-routing)
Your own site
<a href="https://agentmods.dev/skills/alebgl77/tierdecay/model-routing"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/model-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 model-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/alebgl77/tierdecay/model-routing"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/model-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,073 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.
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.00073 $0.01073
Opus 5.5 $0.00029 $0.00429
Sonnet 5.5 $0.00015 $0.00215
Haiku 4.5 $0.00007 $0.00107

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

Security

Grade A, and why

model-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 11d 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.

adapters/claude-code/.claude/skills/model-routing/SKILL.md · 91 lines

How it starts

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

Model Routing

0. Ledger pre-check — posterior beats prior

Before scoring anything, apply the safety gates, then read the state:

  • Critical work or risk 3 → T3, regardless of learned defaults.
  • Any QUARANTINE entry for the class → T3; revise before reuse.
  • Class has a live repo-playbook entry recorded under another binding epoch → RECERTIFY at the entry's provenance tier (tier-decay §3).
  • Class has a live repo-playbook entry (not quarantined, floor not reached) → dispatch one tier below the entry's provenance as a PROBE, entry quoted in the brief (tier-decay §3). A live entry outranks PRIORS — this is what keeps decay iterating.
  • Else task matches a class in PRIORS (≥3 logged rows) → use its empirical default tier, skip the rubric.
  • Otherwise → score below. The rubric is only the cold-start prior.

1. Scoring rubric

Score the task on four axes; sum the points.

Axis 0 1 2 3
Spec ambiguity fully specified minor gaps requires design decisions —
Reasoning depth mechanical standard logic multi-constraint / algorithmic novel algorithm, proof-like
Blast radius 1 file 2–5 files >5 files or shared/core module —
Risk surface cosmetic user-visible bug data / perf / concurrency security, money, irreversible

Route:

  • 0–3 → [T1] executor (fast tier)
  • 4–6 → [T2] heavy-executor (strong workhorse)
  • ≥7, or any axis scores 3 → [T3]: the frontier tier produces the spec (main thread, or oracle SOLVE) → heavy-executor implements it → oracle REVIEWs the diff.

Only reasoning and risk can score 3; ambiguity and blast radius stop at 2. Test coverage does not override the calculation. Mark critical work explicitly.

Read the full file on GitHub · 91 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. 11d ago Changed · +2 lines · +1 tokens per session ff916cd27ac3
  2. 1mo ago Changed · +2 lines 53603f4962fe
  3. 2mo ago First seen · 87 lines · 72 tokens per session scan A 9fe6585672da

Subscribe to this mod's changes

model-routing is a skill published in the GitHub repository alebgl77/tierdecay (1 stars, last pushed 11d ago), licensed MIT. It adds 73 tokens to every session and 1,073 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-31.

Related

model-routing compared with skills from other repositories

model-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-routingalebgl77/tierdecaySkill111d agoMITA73Claude Code
actuarial-scientistK-Dense-AI/scientific-agentsSkill2551mo agoMITA117Claude Code
cancer-biologistK-Dense-AI/scientific-agentsSkill2551mo agoMITA85Claude Code
accelerator-physicistK-Dense-AI/scientific-agentsSkill2551mo agoMITA59Claude Code
aeronomy-scientistK-Dense-AI/scientific-agentsSkill2551mo agoMITA64Claude Code
agricultural-entomologistK-Dense-AI/scientific-agentsSkill2551mo agoMITA103Claude Code
agronomistK-Dense-AI/scientific-agentsSkill2551mo agoMITA97Claude Code