itsssssjack/seven-skills/route
Claude Code and agent skill by itsssssjack/seven-skills
- community
Checking that the SKILL.md file is still in the repository.
Token-saving model router. Detects which AI providers and CLIs you have (ChatGPT/Codex, Gemini, Grok, OpenRouter, Hermes, local Ollama), then routes each task to the cheapest capable one — delegating grunt work to a cheaper CLI/local model, or switching the whole session's base model. Trigger on /route, "route this", "run this locally", "use the cheapest model", "save tokens", "which model should I use for X", or before any big batch/mechanical/long-context job that doesn't need frontier reasoning.
Install
npx vskill@latest install itsssssjack/seven-skills/routeSKILL.md
/route — Token-Saving Model Router
Route each task to the cheapest model that can actually do it, instead of burning frontier tokens on work a small/local/subscription model handles fine. Two mechanisms:
- Delegate (works live, no restart): keep Claude as the brain, shell out a sub-task to a cheaper CLI or local model, bring the result back.
- Base-switch (whole session, needs restart): repoint Claude Code's base model to a cheaper provider for an entire session — same mechanism as
/free-mode.
When to use
/routeor "route this", "do this on the cheapest model", "run it locally", "save tokens / save $", "which model for X?"- Before a batch / mechanical job (bulk refactors, find-replace-at-scale, boilerplate, test generation)
- Before a huge-context read (summarize a giant file / repo) that doesn't need deep reasoning
- When the work is private and shouldn't leave the machine
Don't route a single genuinely-hard reasoning task — just run it on the frontier model. Routing has overhead; only pay it when the task is cheap-able.
Step 1 — Detect what's available
Run this first and read the result (caches a profile to ~/.claude/skills/route/providers.json):
Step 2 — First run: confirm the stack
If providers.json is missing (or the user says "re-detect" / "I added a provider"), ask which of these they have and want to use, then save the answers:
- ChatGPT / OpenAI — Codex CLI (
codex) orOPENAI_API_KEY - Google Gemini —
geminiCLI orGEMINI_API_KEY - Grok / xAI —
XAI_API_KEY - OpenRouter —
OPENROUTER_API_KEY(gives free + cheap models; see/free-mode) - Hermes (Nous) —
hermesCLI - Local (Ollama) — and which models are pulled
Persist to ~/.claude/skills/route/providers.json so later runs skip the questions.
The routing table
| Task class | Route to | Why | |
|---|---|---|---|
| Private / sensitive data | Local Ollama only | Never leaves the machine | |
| Bulk / mechanical / boilerplate | Local Ollama → else cheapest API | Volume work, low reasoning | |
| Huge-context read / summarize | Gemini CLI | Big context window, cheap per token | |
| Agentic code grunt (refactor, scaffold) | Codex CLI (in a git repo) | Purpose-built, runs on your ChatGPT sub | |
| Multi-tool / autonomous run | Hermes | Native tool-calling + routing | |
| Cheap overflow when local is busy | OpenRouter free/cheap model | $0–pennies | |
| Hard reasoning / architecture / final synthesis | Stay on Claude (or frontier) | Worth the tokens |
Step 3 — Route the task (delegation, works live)
Pick the target, then shell out via Bash and bring the output back for Claude to review/assemble:
Then Claude reviews/finishes the cheap model's output. The frontier model stays the orchestrator; it just stops doing the cheap parts itself.
Whole-session cheap mode (base-switch, needs restart)
When the entire session is routine work, switch the base model for the whole session instead of delegating task-by-task — identical mechanism to /free-mode: set ANTHROPIC_BASE_URL + ANTHROPIC_MODEL in ~/.claude/settings.json to a cheaper provider, then restart Claude Code. Use /free-mode on for the OpenRouter/Qwen path. Always confirm with the user before a base-switch — it forces a restart.
Cost ladder (try cheapest first, escalate only on failure)
- Local Ollama — $0, private, offline
- A subscription you already pay for (ChatGPT via Codex, Gemini) — sunk cost, no marginal tokens
- OpenRouter free / cheap models
- Frontier (Claude / GPT / Grok premium) — reserve for the hard ~20%
Principles
- Default to the cheapest plausible model; escalate only when it fails or the output is weak.
- Private/sensitive → local only. Never route confidential code or client data off-machine.
- The frontier model is the brain; cheap models are the hands.
- One model is never strictly best — route by the specific task in front of you.
- Confirm before any base-switch (restart required).
Setup gaps (the detector flags these)
- No Ollama models →
ollama pull qwen2.5-coder:7b(great small coder; use:32bif you have ~24GB+ RAM). This is the #1 thing to fix — without it there's no local tier. - No OpenRouter key → run
/free-modeto get the free Qwen3-Coder path. - No Grok → add
XAI_API_KEY(or wire Grok via OpenRouter).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingroute/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itsssssjack/seven-skills/route)