# Model Selection

> Skill: Model Selection and Validation Rules

- Skill: `izzyfresh/model-selection` (Agent Skill)
- Install (CLI): `npx skillmds@latest add izzyfresh/model-selection`
- Raw SKILL.md: https://api.skillmd.com/api/skills/izzyfresh/model-selection/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: IzzyFresh (https://skillmd.com/u/izzyfresh)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/izzyfresh/model-selection

---

# Skill: Model Selection and Validation Rules

This skill provides strict rules for selecting and validating Gemini models in Vertex AI, ensuring the agent utilizes the latest available models and handles preview suffixes correctly.

---

## 1. Priority of Models
*   **DO NOT** default to Gemini 1.5 models unless explicitly instructed by the user or if all attempts to use newer models have failed after troubleshooting.
*   Always prioritize the **Gemini 3.1** series for advanced reasoning and data processing tasks.

## 2. Handling Preview Models
*   Be aware that during preview phases, models are often not available in standard regional formats without the specific suffix.
*   Always append **`-preview`** to the model name when attempting to use the latest unreleased or preview models.
*   **Note:** For the Gemini 3 series, the model name might be `gemini-3-flash-preview` (without the `.1` in the middle).

## 3. Validation Against Vertex Model Garden
*   Before falling back to an older model generation when encountering a `404 Not Found` error, verify if the error was caused by a missing `-preview` suffix.
*   Instruct the execution environment to check available models if uncertainty exists regarding the exact naming convention in Vertex AI Model Garden.

## 4. Regionality and Endpoints
*   While **Vertex AI Search** supports `global` locations, **Gemini foundation models** typically require specific regional configurations in the SDK (like `us-central1`).
*   However, for preview models like `gemini-3-flash-preview`, passing `location: 'global'` directly to the `genai.Client` (or `GoogleGenAI`) initialization is supported in the new `google-genai` SDK to access models pinned to the global endpoint.


