Index of every page on this site: llms.txt
All skills
mubeda avatar

/mstack-best-model-for

@448b591
Run it yourself

Use when the user asks which model or effort to use for a task, for Claude or Codex, such as "which model for this subagent", "what effort should the review run at", "is the cheapest model enough for this", "best Codex model for debugging", or when another mstack skill needs a model and effort for a tier (cheap, standard, most capable) or a task before it starts a subagent, a lane or a reviewer. Works in Claude Code and Codex. Returns a model, an effort, how to set both, a reason and a next step, per vendor.

Use this Skill: https://skilld.dev/gh/mubeda/mstack/mstack-best-model-for

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈134 tokens for metadata: the name and description. ≈886 when used: this file. ≈2.2k more on demand in 23 files.

Description uses 6.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈537 characters, or 6.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

mstack-best-model-for

Answers which model and effort fit a task, for Claude, Codex or both, from one table: references/model-table.md. Every other mstack skill that starts a subagent, a lane or a reviewer takes its model choices from here, so a change to the table reaches all of them.

Role Claude Code Codex
Question tool AskUserQuestion a numbered question in chat, then wait

Two modes

  • User mode: the user invoked the skill. If the task or the vendor is missing, ask for both in one question with your question tool and wait. Do nothing else until the answer arrives. Vendor both is a valid answer.
  • Called mode: another skill loaded this one and said which skill is calling. Ask nothing, ever. Answer every request in the message and end with the result block. A request with no vendor gets a row for each vendor.

A called message gives, per request: a vendor (claude, codex or both), a tier (cheap, standard, most capable) or a task description, and optional limits never: <models> and max effort: <level>.

Pick the row

Read references/model-table.md before you answer. Then, for each request:

  1. A tier named by the caller picks that tier's row. Tier names are exact: never map standard to a task row.
  2. Otherwise take the task row that fits the description best.
  3. Otherwise take "general starting point, or unsure", and write in Reason that it is the default because no row fits.

Where a cell gives two models, take the first and name the second in Reason. Where it gives an effort range, take the lower end and name the higher one in Next step.

Never answer with the model you are running on because it is the session's model. The table decides.

Limits

Apply the caller's limits to the row's choice, in this order:

  1. never: if the chosen model is in the list, walk the vendor's capability order in references/model-table.md downward from it and take the first model not in the list. If none is below it, walk upward. If every model is excluded, the answer is no model fits.
  2. max effort: if the effort is above the limit, lower it to the limit. Levels rise as low, medium, high, xhigh, max.
  3. Mark Capped yes when either step changed the table's choice, else no.

For no model fits, write no model fits in the Model column, leave Effort and How to set empty, put the limits in Reason, and write "relax a never limit" in Next step. Return no model for that request.

Result block

In both modes, end with this block. Fill Next step in every row with the one action from "When a result falls short" in the table file that fits this row (usually: raise the effort one level, or move one model up).

## mstack-best-model-for result

| Request | Vendor | Model | Effort | How to set | Reason | Next step | Capped | Table date |
|---|---|---|---|---|---|---|---|---|
| <tier or task, as asked> | claude | <model> | <effort> | <the setting from "How to set it"> | <one line> | <one action> | yes/no | <Last verified date> |

How to set gives the exact setting for that vendor: for a Claude subagent the model and effort parameters, for Codex the -m and -c model_reasoning_effort= flags. In user mode, add one line after the block on what the Capped and Next step columns mean when either is not obvious.

Every answer shows the table date. When the date is more than three months old, say in one line that model names may have changed and the user should check the sources listed in the table file.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The 'mstack-best-model-for' skill is a static lookup extension that provides AI model and reasoning effort recommendations based on a local reference table. It acts as an informational helper for other skills and does not perform network requests, execute code, or handle sensitive credentials. All referenced URLs point to official developer documentation for Anthropic and OpenAI.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

Signed by skilld at 448b591. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last week

README badge

README badge for mubeda/mstack/mstack-best-model-for