Agent skill · AI & Agents

model-switch

Switch the agent's model at runtime and restart. Use when the user asks to change models (e.g., "switch to kimi", "use opus", "go cheaper"), or when the agent decides a different model is better for the current workload.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill model-switch --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/ai-llm/model-switch/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Model Switch ## Overview This skill switches the agent's primary model by patching the gateway config and letting the gateway auto-restart. Use it when a user explicitly requests a model change or when you determine a different model is better suited for the task (cost, speed, quality). ## Workflow ### 1) Trigger - User asks to change models ("switch to X", "use opus", "go cheaper") - Or you decide a different model is better for the current workload ### 2) Map alias → full model ID Use the reference table below to resolve common aliases. If the alias is unknown, ask for clarification or the exact model ID. ### 3) Patch gateway config Update the primary model: - `gateway config.patch` → `agents.defaults.model.primary = <full_model_id>` ### 4) Gateway restarts automatically No manual restart needed. ### 5) Confirm to the user Confirm the model switch in plain language. ## Reference: Known Model Aliases | Alias | Full model ID | | --- | --- | | opus | anthropic/claude-opus-4-5 | | sonnet | anthropic/claude-sonnet-4-5 | | kimi | nvidia-build/moonshotai/kimi-k2.5 | | codex | github-copilot/gpt-5.2-codex | ## Notes - **Context resets after restart.** Warn the user if the switch happen

What's inside
Steps it walks through
  1. Overview
  2. Workflow
  3. 1) Trigger
  4. 2) Map alias → full model ID
  5. 3) Patch gateway config
  6. 4) Gateway restarts automatically
  7. 5) Confirm to the user
  8. Reference: Known Model Aliases
  9. Notes
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the model-switch skill do?

Switch the agent's model at runtime and restart. Use when the user asks to change models (e.g., "switch to kimi", "use opus", "go cheaper"), or when the agent decides a different model is better for the current workload.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill model-switch --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going