task-model-router

task-model-router is a skill for Claude Code, Codex from MerkyorLynn/Lynn. It costs 110 tokens per session (2,426 once invoked), scanned A, original, Apache-2.0.

A task-aware system that chooses different AI models for conversations, programming, images, and long documents. A model is the AI system that generates the response.

In plain words
What is it for?
It helps route mixed workloads to suitable models, such as coding, image analysis, long-document summaries, and everyday chat.
Why use it?
It avoids using a slow or expensive model for simple work, or a weaker model for tasks that need stronger reasoning, image understanding, or more document space.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; positional $N argument.

Good fit It helps route mixed workloads to suitable models, such as coding, image analysis, long-document summaries, and everyday chat.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/merkyorlynn/lynn/task-model-router
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 MerkyorLynn/Lynn --skill task-model-router
Clone the repo
git clone --depth 1 https://github.com/MerkyorLynn/Lynn

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 task-model-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/merkyorlynn/lynn/task-model-router.svg)](https://agentmods.dev/skills/merkyorlynn/lynn/task-model-router)
Your own site
<a href="https://agentmods.dev/skills/merkyorlynn/lynn/task-model-router"><img src="https://agentmods.dev/badge/skills/merkyorlynn/lynn/task-model-router.svg" alt="Measured on agentmods" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,426 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 pass 7 Sept 2026
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.00110 $0.02426
Opus 5 $0.00055 $0.01213
Sonnet 5 $0.00022 $0.00485
Haiku 4.5 $0.00011 $0.00243

Measured 8d ago against content hash 09c7376e4bc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

task-model-router 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 8d 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.

skills2set/task-model-router/SKILL.md · 247 lines

How it starts

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

Task-Aware Model Router — Right Model for Every Task

Stop using one model for everything. Route chat to fast models, code to reasoning models, images to vision models, long docs to large-context models — automatically.

Part of Lynn — a personal AI agent where this routing is built into the core engine. Install Lynn to get task-aware routing out of the box, plus memory, IM bridge, and file protection.

Why One Model Isn't Enough

Task What You Need What Happens With One Model
"Hey, what's up?" Fast, cheap, 0.5s reply Waste $0.03 on GPT-4 for a greeting
"Refactor this 500-line module" Strong reasoning, tool use Cheap model hallucinates, breaks code
"What's in this screenshot?" Vision encoder Text model ignores the image entirely
"Summarize this 80-page PDF" 128k+ context window Small model truncates, loses key info

One model = overpaying for simple tasks, underpowering hard tasks.

The Strategy: Task Classification → Model Selection

Incoming message
       ↓
  ┌─ Classify Task ─────────────────────────────┐
  │                                               │
  │  has images?          ──→  VISION model       │
  │  code keywords?       ──→  REASONING model    │
  │  long input (>8k)?    ──→  LARGE CONTEXT      │
  │  else                 ──→  FAST model         │
  └───────────────────────────────────────────────┘
       ↓
  Selected model handles the request
       ↓
  If selected model fails → fallback to next best

Task Detection Rules

Rule 1: Vision (Image Understanding)

Trigger: Message contains image content blocks, or user says "look at this", "what's in this photo", "describe this screenshot"

function needsVision(messages) {
  const last = messages[messages.length - 1];
  if (Array.isArray(last.content)) {
    return last.content.some(b => b.type === 'image');
  }
  return false;
}

Read the full file on GitHub · 247 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 247 lines · 110 tokens per session scan A 09c7376e4bc7

Subscribe to this mod's changes

task-model-router is a skill published in the GitHub repository MerkyorLynn/Lynn (42 stars, last pushed yesterday), licensed Apache-2.0. It adds 110 tokens to every session and 2,426 once invoked, about $0.0006 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-08-30.

Related

Other skills, from other repositories

ai-prompt-optimizer

Optimize prompts for better LLM responses. Use when users want to improve prompt clarity, add structure, enhance specificity, or need prompt templates for specific tasks. Uses CodeAgent for analysis and generation, and MemoryAgent for storing optimized prompts.

jnotsknab/mux-swarm · 53 tokens

cua-driver

Drive a native GUI app (macOS, Windows, Linux) via the Qwen Cua Driver CLI (default) or MCP server; snapshot its accessibility tree, act through snapshot-bound element tokens, native menu paths, exact window geometry, or pixel coordinates, and verify from fresh state. Use when the user asks you to operate, drive…

QwenLM/qwen-code · 88 tokens

codegraph

Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection…

QwenLM/qwen-code · 0 tokens

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens

structured-debugging

Hypothesis-driven debugging methodology for hard bugs. Use this skill whenever you're investigating non-trivial bugs, unexpected behavior, flaky tests, or tracing issues through complex systems. Activate proactively when debugging requires more than a quick glance — especially when the first attempt at a fix didn't…

QwenLM/qwen-code · 85 tokens