gsd-oc-select-modellisted
Install: claude install-skill shekohex/dotai
# Select Model skill
Interactive workflow to select an AI model from opencode's available providers and models.
## Script Location
The script is bundled with this skill at:
```
scripts/select-models.cjs
```
Run with:
```bash
node <skill-dir>/scripts/select-models.cjs [options]
```
Where `<skill-dir>` is the installation directory of this skill.
## Workflow
### Step 1: Get Providers
Run the script with `--providers-only` to get the list of providers:
```bash
node <skill-dir>/scripts/select-models.cjs --providers-only
```
Returns JSON:
```json
{
"provider_count": N,
"providers": [
{"name": "...", "model_count": N, "sample_models": "...", "has_sub_providers": true|false}
]
}
```
**Key field:** `has_sub_providers` - indicates if this provider has a hierarchical structure (3-level) or flat structure (2-level).
### Step 2: Ask User to Select Provider (with Pagination)
Use the question tool with paginated options. **Show 10 providers per page.**
**Pagination pattern:**
- For each page, include navigation options as needed:
- `"→ Next"` - to go to next page (include when not on last page)
- `"← Previous"` - to go to previous page (include when not on first page)
- Track current page index (0-based)
- Label the provider options clearly: show name and model count
**Example for page 0 (first 10 providers):**
```
question: "Select a provider (page 1/N, showing 1-10 of M):"
Options:
- "google (28 models)"
- "google-vertex (27 models)"
- ...
- "→ Next"
```
**W