model-routing

model-routing is a skill for Claude Code, Codex from paruff/uFawkesAI. It costs 25 tokens per session (495 once invoked), scanned A, original, MIT.

A decision guide for choosing the work mode and model tier for a task. It considers the task’s size, complexity, cost, and need for architectural or security judgment.

In plain words
What is it for?
Choosing between asking a question, making a focused edit, or handling a multi-file task, then selecting an appropriate model level.
Why use it?
It helps avoid using an expensive or unsuitable model for simple work, while directing complex or sensitive work to a more capable setup. It also requires checking the scope before agent-driven changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Choosing between asking a question, making a focused edit, or handling a multi-file task, then selecting an appropriate model level.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/paruff/ufawkesai/model-routing/github.svg)](https://agentmods.dev/skills/paruff/ufawkesai/model-routing)
Your own site
<a href="https://agentmods.dev/skills/paruff/ufawkesai/model-routing"><img src="https://agentmods.dev/badge/skills/paruff/ufawkesai/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/paruff/ufawkesai/model-routing"><img src="https://agentmods.dev/badge/skills/paruff/ufawkesai/model-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 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.00025 $0.00495
Opus 5 $0.00013 $0.00247
Sonnet 5 $0.00005 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 5d ago against content hash 37c9386ada79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 5d 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.

.agents/skills/model-routing/SKILL.md · 64 lines

How it starts

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

Skill: Model Routing

Load trigger: "load model-routing skill" > DORA: Cap 3 (AI-Accessible Internal Data) Token cost: Low

Purpose

Route tasks to the optimal model and mode based on complexity, cost, and requirements.

Responsibilities

  • Determine optimal mode (Ask/Edit/Agent)
  • Select appropriate model tier (Low/Medium/High)
  • Validate scope before Agent Mode
  • Estimate complexity and cost
  • Provide local model alternatives

Decision: Mode First

Task type Mode Why
Question / explanation Ask Mode 60–90% cheaper than Agent
Single-file targeted edit Edit Mode 30–50% cheaper than Agent
Multi-file feature Agent Mode Correct choice
Architecture / security Agent Mode + frontier model Worth the cost

Decision: Model Second

Complexity Model tier Examples
Low Fast/cheap tier Q&A, docs, simple fixes
Medium Mid tier Feature implementation
High Frontier/premium tier Architecture, security, rework > 20%

Scope Check (Required Before Agent Mode)

Before proceeding with any Agent Mode task, state:

  1. Files I will READ: [list]
  2. Files I will WRITE: [list]
  3. My plan: [2 sentences]
  4. Estimated complexity: low / medium / high

Then wait for human confirmation.

Local Model Alternative (Zero Credit Cost)

For docs, changelogs, simple explanations — a small local model via Ollama is sufficient. Use hosted credits for tasks requiring frontier/premium tier quality.

Full Guide

See docs/MODEL_ROUTING_GUIDE.md for decision tree, cost table, and anti-patterns.

Read the full file on GitHub · 64 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. 5d ago First seen · 64 lines · 25 tokens per session scan A 37c9386ada79

Subscribe to this mod's changes

model-routing is a skill published in the GitHub repository paruff/uFawkesAI (2 stars, last pushed 16d ago), licensed MIT. It adds 25 tokens to every session and 495 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

planning-with-files

Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and…

mxyhi/ok-skills · 117 tokens

infrastructure-tools

Skill for the tools module — discovery, validation, scope, and private-sidecar symlink sync for the top-level tools/ directory (executable entry points such as scripts, skills, and agents stored as passive manifests with scripts/ directories). Use when discovering tools (discovertools), resolving a tool path…

docxology/template · 168 tokens

template-maintenance

On-demand maintenance helpers for the template repository. Includes workspace management, project info display, working-project rendering, PDF re-rendering, executive output organization, test supplement merging, batch source improvement, pre-commit setup, and CodeGraph index helpers. None run in the default pipeline…

docxology/template · 63 tokens

concierge

Use when a task needs the judgment of a Concierge — securing a reservation at a fully-booked restaurant or sold-out venue, coordinating a multi-vendor guest request (dinner, transportation, and a gift delivery) inside a tight window, deciding when to pivot from a failed Plan A to a same-caliber Plan B, or navigating a…

wonsukchoi/domain-experts · 83 tokens

correspondence-clerk

Use when a task needs the judgment of a Correspondence Clerk — selecting and customizing a template response to a standardized written inquiry, triaging a correspondence queue against SLA deadlines, deciding when a form letter suffices versus needs escalation, or auditing a response-template library for staleness.

wonsukchoi/domain-experts · 62 tokens

open-loops

A conversation-audit skill for finding unresolved points in a long chat. It checks whether questions, suggestions, decisions, or needed clarifications were left without a clear response.

haorantang97/LabKit · 231 tokens