[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B0RVXMEM9W9ASY9TNAYHR7":3,"skill-same:01M7B0RVXMEM9W9ASY9TNAYHR7":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M7B0RVXMEM9W9ASY9TNAYHR7","minions-9router-models",null,"Manage 9Router model list via etc\u002F9router-models.json.","gitricko\u002F.minions","gitricko","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18060558?v=4","01M7B0KG9EHG0CZ0QT1EN5YPCR","01M7B0KGA0ZV14R7SKBF3B5SCT",2,"MIT","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fminions-9router-models\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: minions-9router-models\ndescription: Manage 9Router model list via etc\u002F9router-models.json.\nversion: 1.0.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [linux]\nmetadata:\n  hermes:\n    tags: [9router, models, json, free-tier, advisory-ci]\n    related_skills: [version-single-source, ci-debugging, tdd]\n---\n# 9Router Model JSON Management\n\n**Never hardcode `oc\u002F...-free` \u002F `-contributor-free` model ids in `lib\u002F9router.sh`.**\nAlways source them from `etc\u002F9router-models.json`, the single source of truth for the 9Router auto-fastest combo model list.\n\n## JSON schema\n\n| Field | Description |\n|-------|-------------|\n| `combo` | Combo name (e.g. `auto-fastest`) |\n| `strategy` | Strategy name (e.g. `auto`) |\n| `source` | Upstream model list URL |\n| `filter` | Shell glob patterns to filter upstream models |\n| `excluded` | Model ids preserved by design (with reasons) |\n| `models` | Array of `oc\u002F...-free` \u002F `-contributor-free` ids consumed by `lib\u002F9router.sh` |\n\n## Adding\u002Fremoving models\n\n1. Edit `etc\u002F9router-models.json` directly — add or remove ids in the `models` array.\n2. Regenerate from upstream: `bash scripts\u002Fsync-9router-models.sh --dry-run`\n3. Validate: `python3 -c \"import json; json.load(open('etc\u002F9router-models.json'))\"`\n4. Commit the updated JSON.\n\n## Sync script (`scripts\u002Fsync-9router-models.sh`)\n\n### Modes\n\n| Mode | Flag | Behavior |\n|------|------|----------|\n| Dry-run | `--dry-run` | Fetch upstream, show what would change; exit 0 if file would differ |\n| Check | `--check` | Same as dry-run but exits non-zero if file would change (advisory CI gate) |\n| Probe | `--probe` | Probe each model in `models[]` against running 9Router; gates on 7352 liveness first, exit 2 if down |\n| Write | `--write` | Regenerates `etc\u002F9router-models.json` from upstream free-tier models (no probe); preserves custom non-upstream `models[]` entries; refuses an empty final list |\n| Probe-write | `--probe-write` | Gate on 7352 alive, probe all upstream free candidates, keep 200\u002F429, drop 400\u002F404\u002F410 into `excluded`, write JSON; refuses an empty models list |\n\nNeeds a live 9Router on :7352: `--probe` (Yes), `--probe-write` (Yes);\n`--dry-run`\u002F`--check`\u002F`--write` (No — upstream API only).\n\nUnknown flags (e.g. a `--writ` typo) print usage and exit 2 — they never fall through to `--write`.\n\n### Probe \u002F probe-write classification\n\n| HTTP | Class | Action |\n|------|-------|--------|\n| 200 | OK | keep |\n| 429 | RATED-LIMIT | keep (free-tier rate-limit, not broken — deliberate, do not \"fix\") |\n| 400\u002F404\u002F410 | HARD-FAIL | drop (deterministic: ModelProtocolUnsupported \u002F unknown upstream \u002F gone) |\n| other | UNKNOWN | keep (fail-open, surfaced) |\n\n`--probe` and `--probe-write` retry 429\u002F5xx up to 3× with backoff, then classify.\n\n### Exit codes (repo convention 0 ok \u002F 1 warnings \u002F 2 critical)\n\n- **0** — ok; no failures \u002F clean write \u002F no drift\n- **1** — some model HARD-FAILED (advisory, CI continues); `--check` drift detected; `--write`\u002F`--probe-write` refused an empty final models list\n- **2** — 9Router unreachable at 7352 (probe and probe-write both bail before touching the JSON); unknown CLI flag (usage error)\n\n## Advisory CI model validity (`.github\u002Fworkflows\u002Fci.yml`)\n\n`router-model-check` (job ID; display name \"9Router Model Validity (advisory)\") runs `bash scripts\u002Fsync-9router-models.sh --check` — single implementation, no inline reparse. `continue-on-error: true`, gated on infrastructure-changes. The offline `tests\u002Ftest_9router_models.sh` runs in the blocking `test` job. Probe is NOT in CI (GitHub runners don't have 9Router running); run `--probe` \u002F `--probe-write` manually or on a schedule.\n\n## Probe mode detail\n\nUses `POST \u002Fv1\u002Fchat\u002Fcompletions` with `model=\u003Cid>` and `max_tokens=16`. 4xx (400\u002F404\u002F410) 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\u002F400\u002F404\u002F410\u002Fother 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.\n\n## Runtime integration in `lib\u002F9router.sh`\n\nThe `ninerouter_preconfigure()` function reads the model list dynamically from `etc\u002F9router-models.json` using a Python one-liner, so editing the JSON file is the only change needed — no edits to `lib\u002F9router.sh` required.\n\n## Exclusion list\n\nModel 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).\n\n## Related skills\n\n- `version-single-source` — for the broader version\u002Fdeps.yaml pattern\n- `ci-debugging` — for debugging CI model-check failures\n- `tdd` — for test-driven development of model list changes","# 9Router Model JSON Management\n\n**Never hardcode `oc\u002F...-free` \u002F `-contributor-free` model ids in `lib\u002F9router.sh`.**\nAlways source them from `etc\u002F9router-models.json`, the single source of truth for the 9Router auto-fastest combo model list.\n\n## JSON schema\n\n| Field | Description |\n|-------|-------------|\n| `combo` | Combo name (e.g. `auto-fastest`) |\n| `strategy` | Strategy name (e.g. `auto`) |\n| `source` | Upstream model list URL |\n| `filter` | Shell glob patterns to filter upstream models |\n| `excluded` | Model ids preserved by design (with reasons) |\n| `models` | Array of `oc\u002F...-free` \u002F `-contributor-free` ids consumed by `lib\u002F9router.sh` |\n\n## Adding\u002Fremoving models\n\n1. Edit `etc\u002F9router-models.json` directly — add or remove ids in the `models` array.\n2. Regenerate from upstream: `bash scripts\u002Fsync-9router-models.sh --dry-run`\n3. Validate: `python3 -c \"import json; json.load(open('etc\u002F9router-models.json'))\"`\n4. Commit the updated JSON.\n\n## Sync script (`scripts\u002Fsync-9router-models.sh`)\n\n### Modes\n\n| Mode | Flag | Behavior |\n|------|------|----------|\n| Dry-run | `--dry-run` | Fetch upstream, show what would change; exit 0 if file would differ |\n| Check | `--check` | Same as dry-run but exits non-zero if file would change (advisory CI gate) |\n| Probe | `--probe` | Probe each model in `models[]` against running 9Router; gates on 7352 liveness first, exit 2 if down |\n| Write | `--write` | Regenerates `etc\u002F9router-models.json` from upstream free-tier models (no probe); preserves custom non-upstream `models[]` entries; refuses an empty final list |\n| Probe-write | `--probe-write` | Gate on 7352 alive, probe all upstream free candidates, keep 200\u002F429, drop 400\u002F404\u002F410 into `excluded`, write JSON; refuses an empty models list |\n\nNeeds a live 9Router on :7352: `--probe` (Yes), `--probe-write` (Yes);\n`--dry-run`\u002F`--check`\u002F`--write` (No — upstream API only).\n\nUnknown flags (e.g. a `--writ` typo) print usage and exit 2 — they never fall through to `--write`.\n\n### Probe \u002F probe-write classification\n\n| HTTP | Class | Action |\n|------|-------|--------|\n| 200 | OK | keep |\n| 429 | RATED-LIMIT | keep (free-tier rate-limit, not broken — deliberate, do not \"fix\") |\n| 400\u002F404\u002F410 | HARD-FAIL | drop (deterministic: ModelProtocolUnsupported \u002F unknown upstream \u002F gone) |\n| other | UNKNOWN | keep (fail-open, surfaced) |\n\n`--probe` and `--probe-write` retry 429\u002F5xx up to 3× with backoff, then classify.\n\n### Exit codes (repo convention 0 ok \u002F 1 warnings \u002F 2 critical)\n\n- **0** — ok; no failures \u002F clean write \u002F no drift\n- **1** — some model HARD-FAILED (advisory, CI continues); `--check` drift detected; `--write`\u002F`--probe-write` refused an empty final models list\n- **2** — 9Router unreachable at 7352 (probe and probe-write both bail before touching the JSON); unknown CLI flag (usage error)\n\n## Advisory CI model validity (`.github\u002Fworkflows\u002Fci.yml`)\n\n`router-model-check` (job ID; display name \"9Router Model Validity (advisory)\") runs `bash scripts\u002Fsync-9router-models.sh --check` — single implementation, no inline reparse. `continue-on-error: true`, gated on infrastructure-changes. The offline `tests\u002Ftest_9router_models.sh` runs in the blocking `test` job. Probe is NOT in CI (GitHub runners don't have 9Router running); run `--probe` \u002F `--probe-write` manually or on a schedule.\n\n## Probe mode detail\n\nUses `POST \u002Fv1\u002Fchat\u002Fcompletions` with `model=\u003Cid>` and `max_tokens=16`. 4xx (400\u002F404\u002F410) 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\u002F400\u002F404\u002F410\u002Fother 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.\n\n## Runtime integration in `lib\u002F9router.sh`\n\nThe `ninerouter_preconfigure()` function reads the model list dynamically from `etc\u002F9router-models.json` using a Python one-liner, so editing the JSON file is the only change needed — no edits to `lib\u002F9router.sh` required.\n\n## Exclusion list\n\nModel 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).\n\n## Related skills\n\n- `version-single-source` — for the broader version\u002Fdeps.yaml pattern\n- `ci-debugging` — for debugging CI model-check failures\n- `tdd` — for test-driven development of model list changes",{"name":5,"author":23,"license":14,"version":24,"metadata":25,"platforms":37,"description":7},"Hermes Agent","1.0.0",{"hermes":26},{"tags":27,"related_skills":33},[28,29,30,31,32],"9router","models","json","free-tier","advisory-ci",[34,35,36],"version-single-source","ci-debugging","tdd",[38],"linux","main","e95aec76487a22bbbc23b63234724bc7178d4692","skills\u002Fminions-9router-models","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions","https:\u002F\u002Fgithub.com\u002Fgitricko","2026-11-13 16:00:00",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add gitricko\u002F.minions --skill minions-9router-models",{"tool":51,"command":52},"bunx","bunx skills add gitricko\u002F.minions --skill minions-9router-models",{"tool":54,"command":55},"pnpm","pnpm dlx skills add gitricko\u002F.minions --skill minions-9router-models","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fminions-9router-models\u002FSKILL.md",true,[],[60,66,72,79,86,93],{"skillNo":61,"name":34,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7B0VJ3Q0YMCTJY69FEJ4100","Use when adding a new component dependency or versioning a binary in install\u002Fboot scripts.","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fversion-single-source\u002FSKILL.md",[],[],{"skillNo":67,"name":36,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7B0V888DV8J3JY5W9Z6WCF3","Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7B0TVFM38JH3PBA2K219Z2X","shell-path-login","Use when a binary or script works in one shell context but not another (interactive vs non-interactive login vs non-login shell).","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fshell-path-login\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7B0TKFCTVQBTSNF9WF1MXJ6","self-update-fix","Fix a failing dependency update PR. Use when a self-update PR's CI fails, or when invoked by scripts\u002Fself-update-fix.sh.","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fself-update-fix\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7B0TB57WEW0E6E9874K3C72","pr-change-log","Use when a multi-commit PR needs its description written\u002Fupdated, or when closing out a long branch with many fix commits.","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fpr-change-log\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7B0T2FGSV0ZFRZ46PG4BBY2","persistent-knowledge","Persistent skills\u002Fknowledge in Codespace via symlinks.","https:\u002F\u002Fgithub.com\u002Fgitricko\u002F.minions\u002Fblob\u002Fmain\u002Fskills\u002Fpersistent-knowledge\u002FSKILL.md",[],[]]