minions-9router-models
Manage 9Router model list via etc/9router-models.json.
Skill by gitricko
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/gitricko-minions-9router-models
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/minions-9router-models
What's inside
- Skill name
minions-9router-models- Description
- Manage 9Router model list via etc/9router-models.json.
- License
- MIT
- Instructions
- 78 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: scripts/sync-9router-models.sh
Files (1)
- SKILL.md
SKILL.md (first lines)
# 9Router Model JSON Management
**Never hardcode `oc/...-free` / `-contributor-free` model ids in `lib/9router.sh`.**
Always source them from `etc/9router-models.json`, the single source of truth for the 9Router auto-fastest combo model list.
## JSON schema
| Field | Description |
|-------|-------------|
| `combo` | Combo name (e.g. `auto-fastest`) |
| `strategy` | Strategy name (e.g. `auto`) |
| `source` | Upstream model list URL |
| `filter` | Shell glob patterns to filter upstream models |
| `excluded` | Model ids preserved by design (with reasons) |
| `models` | Array of `oc/...-free` / `-contributor-free` ids consumed by `lib/9router.sh` |
## Adding/removing models
1. Edit `etc/9router-models.json` directly — add or remove ids in the `models` array.
2. Regenerate from upstream: `bash scripts/sync-9router-models.sh --dry-run`
3. Validate: `python3 -c "import json; json.load(open('etc/9router-models.json'))"`
4. Commit the updated JSON.
## Sync script (`scripts/sync-9router-models.sh`)
### Modes
| Mode | Flag | Behavior |
|------|------|----------|
| Dry-run | `--dry-run` | Fetch upstream, show what would change; exit 0 if file would differ |
| Check | `--check` | Same as dry-run but exits non-zero if file would change (advisory CI gate) |
| Probe | `--probe` | Probe each model in `models[]` against running 9Router; gates on 7352 liveness first, exit 2 if down |
| Write | `--write` | Regenerates `etc/9router-models.json` from upstream free-tier models (no probe); preserves custom non-upstream `models[]` entries; refuses an empty final list |
| Probe-write | `--probe-write` | Gate on 7352 alive, probe all upstream free candidates, keep 200/429, drop 400/404/410 into `excluded`, write JSON; refuses an empty models list |
Needs a live 9Router on :7352: `--probe` (Yes), `--probe-write` (Yes);
`--dry-run`/`--check`/`--write` (No — upstream API only).
Unknown flags (e.g. a `--writ` typo) print usage and exit 2 — they never fall through to `--write`.
### Probe / probe-write classification
| HTTP | Class | Action |
|------|-------|--------|
| 200 | OK | keep |
| 429 | RATED-LIMIT | keep (free-tier rate-limit, not broken — deliberate, do not "fix") |
| 400/404/410 | HARD-FAIL | drop (deterministic: ModelProtocolUnsupported / unknown upstream / gone) |
| other | UNKNOWN | keep (fail-open, surfaced) |
`--probe` and `--probe-write` retry 429/5xx up to 3× with backoff, then classify.
### Exit codes (repo convention 0 ok / 1 warnings / 2 critical)
- **0** — ok; no failures / clean write / no drift
- **1** — some model HARD-FAILED (advisory, CI continues); `--check` drift detected; `--write`/`--probe-write` refused an empty final models list
- **2** — 9Router unreachable at 7352 (probe and probe-write both bail before touching the JSON); unknown CLI flag (usage error)
## Advisory CI model validity (`.github/workflows/ci.yml`)
`router-model-check` (job ID; display name "9Router Model Validity (advisory)") runs `bash scripts/sync-9router-models.sh --check` — single implementation, no inline reparse. `continue-on-error: true`, gated on infrastructure-changes. The offline `tests/test_9router_models.sh` runs in the blocking `test` job. Probe is NOT in CI (GitHub runners don't have 9Router running); run `--probe` / `--probe-write` manually or on a schedule.
## Probe mode detail
Uses `POST /v1/chat/completions` with `model=<id>` and `max_tokens=16`. 4xx (400/404/410) are deterministic failures → drop the model. 429 is rate-limiting → keep (deliberate: quota ≠ broken). All probe code shares: `probe_gate(base_url)` (TCP connect with 3s timeout), `probe_one(base_url, model_id)` (retries transient errors), `classify(code)` (shared 200/400/404/410/other mapping). `--probe-write` also records a newly-dropped model into the `excluded` array (idempotent by id) and preserves non-upstream custom models the user may have added.
## Runtime integration in `lib/9router.sh`
The `ninerouter_preconfigure()` function reads the model list dynamically from `etc/9router-models.json` using a Python one-liner, so editing the JSON file is the only change needed — no edits to `lib/9router.sh` required.
## Exclusion list
Model ids in the `excluded` array are preserved by design and excluded from the auto-fastest combo. Each has a `reason` field documenting why (e.g., Model is unavailable upstream, ModelProtocolUnsupported, Upstream 400 Model is unavailable).
## Related skills
- `version-single-source` — for the broader version/deps.yaml pattern
- `ci-debugging` — for debugging CI model-check failures
- `tdd` — for test-driven development of model list changesFrom gitricko/.minions, MIT.
More from gitricko/.minions
- 0.586score
ci-lint-check
gitricko
Run pre-commit CI lint validation locally before pushing to avoid GitHub Actions failures.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
minions-llm-proxy-ops
gitricko
Use when operating or debugging the .minions LLM proxies.
SkillAFreshness: A★ 1Claude Code +9 - 0.583score
ci-debugging
gitricko
Use when a CI/test failure seems to have one cause but the real root is different, or when a silent failure hides the real issue.
SkillAFreshness: A★ 1Claude Code +9 - 0.583score
codespace-port-visibility
gitricko
Automate Codespace port visibility via CLI w/ vscode token.
SkillAFreshness: A★ 1Claude Code +9 - 0.580score
docker-test-shell
gitricko
Use when testing in a clean throwaway container.
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
codespace-gh-auth
gitricko
Extract GitHub token from VS Code for API in Codespaces.
SkillAFreshness: A★ 1Claude Code +9 - 0.578score
adopting-external-skills
gitricko
Import external skills into the Codespace tree, adapted.
SkillAFreshness: A★ 1Claude Code +9 - 0.549score
codespace-webtop
gitricko
Native Selkies/XFCE webtop (browser desktop) via pixelflux-based selkies package — install, run, and autostart on any Ubuntu base system
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
ci-log-capture
gitricko
Use when test scripts redirect probe output to /dev/null, hiding failure details.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
codespace-lavish
gitricko
Launch a headed Lavish-AXI whiteboard over noVNC in Codespaces.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
codespace-vscode-open
gitricko
Auto-discover VS Code CLI in Codespaces and open files in connected editor
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
agent-context-transfer
gitricko
Transfer implementation context to a fresh agent for seamless handoff
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 2
- Open issues
- 3
- Last commit (this folder)
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/gitricko/.minions
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from gitricko
- 0.586score
ci-lint-check
gitricko
Run pre-commit CI lint validation locally before pushing to avoid GitHub Actions failures.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
minions-llm-proxy-ops
gitricko
Use when operating or debugging the .minions LLM proxies.
SkillAFreshness: A★ 1Claude Code +9 - 0.583score
ci-debugging
gitricko
Use when a CI/test failure seems to have one cause but the real root is different, or when a silent failure hides the real issue.
SkillAFreshness: A★ 1Claude Code +9 - 0.583score
codespace-port-visibility
gitricko
Automate Codespace port visibility via CLI w/ vscode token.
SkillAFreshness: A★ 1Claude Code +9 - 0.580score
docker-test-shell
gitricko
Use when testing in a clean throwaway container.
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
codespace-gh-auth
gitricko
Extract GitHub token from VS Code for API in Codespaces.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
minions-9router-models skill. Agent Mart. https://agentmart.dev/skills/gitricko-minions-9router-models (last updated 2026-10-24)