Cross-tool model routing skill for Codex, Cursor, and Antigravity
SaferSkills independently audited model-router (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Route a Codex task to the most appropriate available model before work starts, and re-check the choice at major task boundaries. Default to Chinese outputs and references/zh-CN/ unless the user asks for English.
This skill must first choose from exact available model names when the host exposes them. If exact names are not available, it must choose a model class and use slash-command discovery, tool metadata, or user-provided lists to resolve the exact model. It must never claim a model was switched unless a real tool, slash-command result, or UI confirmation proves it.
Make the routing decision before expensive work.
Do not:
/model as ordinary prose and treat it as executed when the host only accepts slash commands from the user.Allowed:
/model or equivalent host-native model controls to list and select models when the host permits agent-issued slash commands.Before deciding that switching is impossible, check for model controls in this order:
/model, if the environment allows the agent to execute them.If /model exists but opens a user-only picker, output the exact recommended selection or command and pause only when the current model is materially wrong for the task.
In Codex, install this folder as a skill and invoke $model-router. See integrations/codex/install.md from the repository root for install steps.
In Cursor, use integrations/cursor/model-router.mdc as a Project Rule. In Antigravity, use integrations/antigravity/rules/model-router.md or package the plugin described by integrations/antigravity/plugin/plugin.json.
In Claude, ChatGPT, Windsurf, Roo Code, Cline, or other AI tools, provide this SKILL.md as the routing workflow. Use references/zh-CN/routing-guide.md by default, or references/en/routing-guide.md for English projects.
Classify the request as planning, architecture, implementation, debugging, review, UI/frontend, data, high-risk reasoning, or simple operation.
Build the candidate list from available exact model names whenever possible. If the host supports /model, use it to list or open available models before choosing. If candidate names are unavailable, continue with model classes and ask for a model list only when exact automatic switching is required.
Score each candidate for reasoning strength, coding strength, long-context reliability, tool/vision support, speed, cost, and risk fit. Use the strongest reasoning model for planning, architecture, ambiguous product decisions, high-risk analysis, or model-routing itself. Use the coding-optimized model for multi-file implementation, debugging, refactors, tests, and repo navigation. Use a faster or cheaper model only for simple edits, formatting, summaries, or low-risk local operations.
Prefer the best exact available model. If multiple candidates tie, keep the current model when it is adequate; otherwise prefer the model with better task-specific fit over generic strength.
If a model-switching tool or executable slash-command interface exists, switch at a safe checkpoint and report the result. If no such interface exists, recommend the exact target model and ask the user to switch only when the mismatch matters. Otherwise, proceed and note the routing decision.
Re-run routing when moving from architecture to coding, coding to review, debugging to implementation, or when the task becomes higher-risk than originally assumed.
Read references/zh-CN/routing-guide.md by default for the full routing matrix. Use references/en/routing-guide.md only when English output is requested.
/model, select the best exact model and switch before continuing./model is available but user-only, output the exact model choice or command for the user and wait only when the current model is materially mismatched.At each routing checkpoint, report briefly:
For routine low-risk tasks, keep this to one or two sentences.
Treat model switching as an operational boundary. Changing models can affect context handling, code style, and risk tolerance. Before switching during an active task, summarize current state, unresolved assumptions, touched files, and the next intended action so the next model can continue cleanly.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.