Guides · Updated November 29, 2026

Can a skill change the model in Claude Code?

By Tineessa Nelson, Use This Skill

Yes, in Claude Code. A skill can set model and effort in its SKILL.md front matter, and Claude Code uses them while the skill is active: the override lasts for the rest of that turn, and your next prompt goes back to the session model. Few skills use this. Of 1,973 public skills we read on November 29, 2026, 77 set model, all from one repository, and 3 set effort.

The fields are Claude Code extensions. They are not in the Agent Skills specification, and your organization's model allowlist still wins over anything a skill asks for.

How many public skills set model or effort?

We read the front matter of every skill in this directory's November 23 crawl: 47 GitHub repositories cloned at depth 1 on November 29, 2026, and every SKILL.md parsed by script. 1,973 of the 1,974 listed skills could be read; one folder (sap-fiori-building-blocks) is no longer at its path.

Front matter Skills Repositories
model set 77 1
model: sonnet 68 1
model: haiku 6 1
model: opus 3 1
model: inherit or a full model name 0 0
effort set 3 1
Both model and effort 0 0
context: fork (run the skill in a subagent) 0 0
Neither model nor effort 1,893 47

Source: Use This Skill directory (data/skills.json, crawl of November 23, 2026) and the weekly scan of the same date (data/scan.json). Counts are of front matter fields as written; we did not run any of these skills for this page.

All 77 model skills come from Donchitos/Claude-Code-Game-Studios, a set of game-studio workflows built for Claude Code. It sets model on 77 of its 78 skills; the exception is prototype. The three effort skills come from trailofbits/skills: constant-time-analysis and dwarf-expert set medium, and property-based-testing sets low.

So 96 percent of public skills say nothing about the model. They run on whatever model and effort level your session already uses.

Are these skills safe to install?

In the weekly scan of November 23, 2026, 76 of the 77 model skills are clear. One, ux-design, is marked review: a reference file contains the line "Do not tell the user to run /ux-design Phase 2b", which matches the scanner's rules-override pattern; it is an instruction about wording, not an attempt to override your settings. Of the 3 effort skills, 2 are clear and constant-time-analysis is marked review because its reference files show sudo install commands for the language toolchains it analyses. None of the 80 is flagged. Across the whole directory that week, 1,914 skills were clear, 47 review and 13 flagged.

The model field does not change what a skill is allowed to do; allowed-tools and your permission settings do that. You can check any skill folder yourself with the live skill check.

How does a repository choose a model per skill?

The one repository that uses the field explains its choices in a document, .claude/docs/model-tiers.md, which we read on November 29, 2026. It assigns tiers by task:

Tier Used for (in the repository's words) Skills
haiku "Read-only status checks, formatting, simple lookups" 6: next-step, onboard, project-stage-detect, scope-check, sprint-status, help
sonnet "Implementation, design authoring, analysis of individual systems" 68
opus "Multi-document synthesis, high-stakes phase gate verdicts, cross-system holistic review" 3: architecture-review, gate-check, review-all-gdds

This matches how Claude Code's model configuration page describes the aliases: haiku "for simple tasks", sonnet "for daily coding tasks" and opus "for complex reasoning tasks". The repository writes each tier as an alias, never a model ID, because, as its document notes, the alias resolves to the current model in that family.

Eight of the 77 also set disable-model-invocation: true, so they run only when you type the command. All 77 set argument-hint and allowed-tools. More on the first field is in what disable-model-invocation does.

What exactly does the model field do in Claude Code?

Checked on code.claude.com on November 29, 2026, the skills documentation describes model as the "Model to use when this skill is active", and says:

  • The override "applies for the rest of the current turn and isn't saved to settings. The session model resumes when you send your next prompt."
  • It "accepts the same values as /model, or inherit to keep the active model."
  • A value excluded by your organization's availableModels allowlist "isn't used, and the session keeps its current model." The same holds in auto mode for a model auto mode does not support.
  • With context: fork, the value sets the forked subagent's model instead of your main conversation's.

effort works the same way for reasoning effort. It "overrides the session effort level", accepts low, medium, high, xhigh or max, and "available levels depend on the model". The model configuration page adds that a maxEffortLevel or organization effort cap "still limits the level the skill or subagent runs at."

Situation What runs the skill
No model in the skill Your session model
model: opus (or another allowed value) That model, until your next prompt
model: inherit Your session model
Value blocked by availableModels Your session model
context: fork with model set The forked subagent uses that model; your conversation keeps its own

Does it matter how the skill starts?

The parts of Claude Code's skills documentation we read do not say that the override depends on whether you type /skill-name or Claude loads the skill itself. The Game Studios repository reports a difference: its notes, written against Claude Code 2.1.287, say the field was used when the user typed the command in the default permission mode, not used when Claude started the skill through the Skill tool, and always used with context: fork. We have not tested this, and it may change between versions, so treat it as one author's observation rather than documented behavior.

If you depend on a skill running on a particular model, the documented route that does not rely on the main conversation is context: fork: the skill runs in a subagent, and model sets that subagent's model. The subagent does not see your conversation, so the skill has to stand on its own. Skills vs subagents vs slash commands explains the trade-off. None of the 1,973 public skills we read uses context: fork today.

Do proofs on this site use a skill's model field?

No. Every side-by-side proof on this site runs both sides on the same model, so the only difference is the skill. All 42 proofs recorded in data/proofs.json on November 29, 2026 ran on claude-opus-5-5, and the proof script loads SKILL.md as text, so a model or effort line has no effect there. None of the 80 skills above has been proven yet. If you want to know whether a skill needs a stronger model, how to test whether a skill helps shows how to compare runs.

Will a skill with a model field work outside Claude Code?

The Agent Skills specification, read on November 29, 2026, defines six fields: name, description, license, compatibility, metadata and allowed-tools. It has no field for model or effort. claude.ai uploads and the Skills API reject a SKILL.md with fields outside those six, as Can I use Claude Code skills in claude.ai or the API? shows, so a skill that sets model has to drop the line before it can be uploaded there. We did not check how Codex, Cursor or Gemini CLI treat the field for this page. What is the Agent Skills open standard? covers which fields travel between agents.

Should I set model on my own skill?

Only when the task clearly calls for a different model from the one you usually run. The pattern in the one repository that does it is simple: a cheaper model for read-only status and lookup skills, the strongest model for a few review and sign-off skills, and the default for everything else. Keep in mind that the override ends at your next prompt, that your organization's settings can ignore it, and that it makes the skill specific to Claude Code. For most skills, leaving the field out is the right choice, and 1,893 of 1,973 public skills do exactly that.

Questions

How long does a skill's model override last?

For the rest of the turn the skill runs in. Claude Code's documentation says the override is not saved to settings and the session model resumes when you send your next prompt. So if a skill stops to ask you a question, the rest of its work, after you answer, runs on your session model.

What values can I put in a skill's model and effort fields?

model accepts the same values as the /model command, such as sonnet, opus, haiku or a full model name, or inherit to keep the active model. effort accepts low, medium, high, xhigh or max, and the levels available depend on the model. All 77 public skills we found with a model field use a short alias: sonnet, haiku or opus.

Can a skill force a model my organization does not allow?

No. If the value is excluded by your organization's availableModels allowlist, Claude Code does not use it and the session keeps its current model. The same happens in auto mode for a model auto mode does not support. An effort cap such as maxEffortLevel still limits the level a skill runs at.

Do Codex, Cursor or Gemini CLI read model and effort?

The Agent Skills specification defines six front matter fields, and model and effort are not among them, so an agent that follows only the specification has nothing to read. We did not check the Codex, Cursor or Gemini CLI documentation for this page, so we make no claim about them. claude.ai uploads and the Skills API accept only the six specification fields.