kubefleet-dev/kubefleet/model-selection
- community
Checking that the SKILL.md file is still in the repository.
Determines which LLM model to use for each agent spawn
Install
npx vskill@latest install kubefleet-dev/kubefleet/model-selectionSKILL.md
Model Selection
Determines which LLM model to use for each agent spawn.
SCOPE
✅ THIS SKILL PRODUCES:
- A resolved
modelparameter for everytasktool call - Persistent model preferences in
.squad/config.json - Spawn acknowledgments that include the resolved model
❌ THIS SKILL DOES NOT PRODUCE:
- Code, tests, or documentation
- Model performance benchmarks
- Cost reports or billing artifacts
Context
Squad supports 18+ models across three tiers (premium, standard, fast). The coordinator must select the right model for each agent spawn. Users can set persistent preferences that survive across sessions.
5-Layer Model Resolution Hierarchy
Resolution is first-match-wins — the highest layer with a value wins.
| Layer | Name | Source | Persistence | |
|---|---|---|---|---|
| 0a | Per-Agent Config | .squad/config.json → agentModelOverrides.{name} | Persistent (survives sessions) | |
| 0b | Global Config | .squad/config.json → defaultModel | Persistent (survives sessions) | |
| 1 | Session Directive | User said "use X" in current session | Session-only | |
| 2 | Charter Preference | Agent's charter.md → ## Model section | Persistent (in charter) | |
| 3 | Task-Aware Auto | Code → sonnet, docs → haiku, visual → opus | Computed per-spawn | |
| 4 | Default | claude-haiku-4.5 | Hardcoded fallback |
Key principle: Layer 0 (persistent config) beats everything. If the user said "always use opus" and it was saved to config.json, every agent gets opus regardless of role or task type. This is intentional — the user explicitly chose quality over cost.
AGENT WORKFLOW
On Session Start
- READ
.squad/config.json - CHECK for
defaultModelfield — if present, this is the Layer 0 override for all spawns - CHECK for
agentModelOverridesfield — if present, these are per-agent Layer 0a overrides - STORE both values in session context for the duration
On Every Agent Spawn
- CHECK Layer 0a: Is there an
agentModelOverrides.{agentName}in config.json? → Use it. - CHECK Layer 0b: Is there a
defaultModelin config.json? → Use it. - CHECK Layer 1: Did the user give a session directive? → Use it.
- CHECK Layer 2: Does the agent's charter have a
## Modelsection? → Use it. - CHECK Layer 3: Determine task type:
- Code (implementation, tests, refactoring, bug fixes) →
claude-sonnet-4.6 - Prompts, agent designs →
claude-sonnet-4.6 - Visual/design with image analysis →
claude-opus-4.6 - Non-code (docs, planning, triage, changelogs) →
claude-haiku-4.5
- FALLBACK Layer 4:
claude-haiku-4.5 - INCLUDE model in spawn acknowledgment:
🔧 {Name} ({resolved_model}) — {task}
When User Sets a Preference
Trigger phrases: "always use X", "use X for everything", "switch to X", "default to X"
- VALIDATE the model ID against the catalog (18+ models)
- WRITE
defaultModelto.squad/config.json(merge, don't overwrite) - ACKNOWLEDGE:
✅ Model preference saved: {model} — all future sessions will use this until changed.
Per-agent trigger: "use X for {agent}"
- VALIDATE model ID
- WRITE to
agentModelOverrides.{agent}in.squad/config.json - ACKNOWLEDGE:
✅ {Agent} will always use {model} — saved to config.
When User Clears a Preference
Trigger phrases: "switch back to automatic", "clear model preference", "use default models"
- REMOVE
defaultModelfrom.squad/config.json - ACKNOWLEDGE:
✅ Model preference cleared — returning to automatic selection.
STOP
After resolving the model and including it in the spawn template, this skill is done. Do NOT:
- Generate model comparison reports
- Run benchmarks or speed tests
- Create new config files (only modify existing
.squad/config.json) - Change the model after spawn (fallback chains handle runtime failures)
Config Schema
.squad/config.json model-related fields:
defaultModel— applies to ALL agents unless overridden byagentModelOverridesagentModelOverrides— per-agent overrides that take priority overdefaultModel- Both fields are optional. When absent, Layers 1-4 apply normally.
Fallback Chains
If a model is unavailable (rate limit, plan restriction), retry within the same tier:
Never fall UP in tier. A fast task won't land on a premium model via fallback.
Security
- Security scanPassed, 95 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 repositoryChecking.squad/templates/skills/model-selection/SKILL.md
Popularity
- Repository stars
- 151
- Repository forks
- 27
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. 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/kubefleet-dev/kubefleet/model-selection)