[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75DKDKCNNNBZBEBTXB6MFC5":3,"skill-same:01M75DKDKCNNNBZBEBTXB6MFC5":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M75DKDKCNNNBZBEBTXB6MFC5","intelligent-router",null,"Intelligent model routing for sub-agent task delegation. Choose the optimal model based on task complexity, cost, and capability requirements. Reduces costs by routing simple tasks to cheaper models while preserving quality for complex work.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbowen31337\u002Fintelligent-router\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: intelligent-router\ndescription: Intelligent model routing for sub-agent task delegation. Choose the optimal model based on task complexity, cost, and capability requirements. Reduces costs by routing simple tasks to cheaper models while preserving quality for complex work.\nversion: 3.2.0\ncore: true\n---\n\n# Intelligent Router — Core Skill\n\n> **CORE SKILL**: This skill is infrastructure, not guidance. Installation = enforcement.\n> Run `bash skills\u002Fintelligent-router\u002Finstall.sh` to activate.\n\n## What It Does\n\nAutomatically classifies any task into a tier (SIMPLE\u002FMEDIUM\u002FCOMPLEX\u002FREASONING\u002FCRITICAL)\nand recommends the cheapest model that can handle it well.\n\n**The problem it solves:** Without routing, every cron job and sub-agent defaults to Sonnet\n(expensive). With routing, monitoring tasks use free local models, saving 80-95% on cost.\n\n---\n\n## MANDATORY Protocol (enforced via AGENTS.md)\n\n### Before spawning any sub-agent:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py classify \"task description\"\n```\n\n### Before creating any cron job:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py \"task description\"\n# Outputs the exact model ID and payload snippet to use\n```\n\n### To validate a cron payload has model set:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --validate '{\"kind\":\"agentTurn\",\"message\":\"...\"}'\n```\n\n### ❌ VIOLATION (never do this):\n```python\n# Cron job without model = Sonnet default = expensive waste\n{\"kind\": \"agentTurn\", \"message\": \"check server...\"}  # ← WRONG\n```\n\n### ✅ CORRECT:\n```python\n# Always specify model from router recommendation\n{\"kind\": \"agentTurn\", \"message\": \"check server...\", \"model\": \"ollama\u002Fglm-4.7-flash\"}\n```\n\n---\n\n## Tier System\n\n| Tier | Use For | Primary Model | Cost |\n|------|---------|---------------|------|\n| 🟢 SIMPLE | Monitoring, heartbeat, checks, summaries | `anthropic-proxy-6\u002Fglm-4.7` (alt: proxy-4) | $0.50\u002FM |\n| 🟡 MEDIUM | Code fixes, patches, research, data analysis | `nvidia-nim\u002Fmeta\u002Fllama-3.3-70b-instruct` | $0.40\u002FM |\n| 🟠 COMPLEX | Features, architecture, multi-file, debug | `anthropic\u002Fclaude-sonnet-4-6` | $3\u002FM |\n| 🔵 REASONING | Proofs, formal logic, deep analysis | `nvidia-nim\u002Fmoonshotai\u002Fkimi-k2-thinking` | $1\u002FM |\n| 🔴 CRITICAL | Security, production, high-stakes | `anthropic\u002Fclaude-opus-4-6` | $5\u002FM |\n\n**SIMPLE fallback chain:** `anthropic-proxy-4\u002Fglm-4.7` → `nvidia-nim\u002Fqwen\u002Fqwen2.5-7b-instruct` ($0.15\u002FM)\n\n> ⚠️ **`ollama-gpu-server` is BLOCKED** for cron\u002Fspawn use. Ollama binds to `127.0.0.1` by default — unreachable over LAN from the OpenClaw host. The `router_policy.py` enforcer will reject any payload referencing it.\n\n**Tier classification uses 4 capability signals (not cost alone):**\n- `effective_params` (50%) — extracted from model ID or `known-model-params.json` for closed-source models\n- `context_window` (20%) — larger = more capable\n- `cost_input` (20%) — price as quality proxy (weak signal, last resort for unknown sizes)\n- `reasoning_flag` (10%) — bonus for dedicated thinking specialists (R1, QwQ, Kimi-K2)\n\n---\n\n## Policy Enforcer (NEW in v3.2.0)\n\n`router_policy.py` catches bad model assignments **before they are created**, not after they fail.\n\n### Validate a cron payload before submitting\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py check \\\n  '{\"kind\":\"agentTurn\",\"model\":\"ollama-gpu-server\u002Fglm-4.7-flash\",\"message\":\"check server\"}'\n# Output: VIOLATION: Blocked model 'ollama-gpu-server\u002Fglm-4.7-flash'. Recommended: anthropic-proxy-6\u002Fglm-4.7\n```\n\n### Get enforced model recommendation for a task\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"monitor alphastrike service\"\n# Output: Tier: SIMPLE  Model: anthropic-proxy-6\u002Fglm-4.7\n\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"monitor alphastrike service\" --alt\n# Output: Tier: SIMPLE  Model: anthropic-proxy-4\u002Fglm-4.7  ← alternate key for load distribution\n```\n\n### Audit all existing cron jobs\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py audit\n# Scans all crons, reports any with blocked or missing models\n```\n\n### Show blocklist\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py blocklist\n```\n\n### Policy rules enforced\n1. **Model must be set** — no model field = Sonnet default = expensive waste\n2. **No blocked models** — `ollama-gpu-server\u002F*` and bare `ollama\u002F*` are rejected for cron use\n3. **CRITICAL tasks** — warns if using a non-Opus model for classified-critical work\n\n---\n\n## Installation (Core Skill Setup)\n\nRun once to self-integrate into AGENTS.md:\n```bash\nbash skills\u002Fintelligent-router\u002Finstall.sh\n```\n\nThis patches AGENTS.md with the mandatory protocol so it's always in context.\n\n---\n\n## CLI Reference\n\n```bash\n# ── Policy enforcer (run before creating any cron\u002Fspawn) ──\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py check '{\"kind\":\"agentTurn\",\"model\":\"...\",\"message\":\"...\"}'\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"task description\"\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"task\" --alt  # alternate proxy key\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py audit     # scan all crons\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py blocklist\n\n# ── Core router ──\n# Classify + recommend model\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py classify \"task\"\n\n# Get model id only (for scripting)\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --model-only \"task\"\n\n# Show spawn command\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py \"task\"\n\n# Validate cron payload has model set\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --validate '{\"kind\":\"agentTurn\",\"message\":\"...\"}'\n\n# List all models by tier\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py models\n\n# Detailed scoring breakdown\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py score \"task\"\n\n# Config health check\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py health\n\n# Auto-discover working models (NEW)\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py\n\n# Auto-discover + update config\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --auto-update\n\n# Test specific tier only\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --tier COMPLEX\n```\n\n---\n\n## Scoring System\n\n15-dimension weighted scoring (not just keywords):\n\n1. **Reasoning markers** (0.18) — prove, theorem, derive\n2. **Code presence** (0.15) — code blocks, file extensions\n3. **Multi-step patterns** (0.12) — first...then, numbered lists\n4. **Agentic task** (0.10) — run, fix, deploy, build\n5. **Technical terms** (0.10) — architecture, security, protocol\n6. **Token count** (0.08) — complexity from length\n7. **Creative markers** (0.05) — story, compose, brainstorm\n8. **Question complexity** (0.05) — multiple who\u002Fwhat\u002Fhow\n9. **Constraint count** (0.04) — must, require, exactly\n10. **Imperative verbs** (0.03) — analyze, evaluate, audit\n11. **Output format** (0.03) — json, table, markdown\n12. **Simple indicators** (0.02) — check, get, show (inverted)\n13. **Domain specificity** (0.02) — acronyms, dotted notation\n14. **Reference complexity** (0.02) — \"mentioned above\"\n15. **Negation complexity** (0.01) — not, never, except\n\nConfidence: `1 \u002F (1 + exp(-8 × (score - 0.5)))`\n\n---\n\n## Config\n\nModels defined in `config.json`. Add new models there, router picks them up automatically.\nLocal Ollama models have zero cost — always prefer them for SIMPLE tasks.\n\n---\n\n## Auto-Discovery (Self-Healing)\n\nThe intelligent-router can **automatically discover working models** from all configured providers via **real live inference tests** (not config-existence checks).\n\n### How It Works\n\n1. **Provider Scanning:** Reads `~\u002F.openclaw\u002Fopenclaw.json` → finds all models\n2. **Live Inference Test:** Sends `\"hi\"` to each model, checks it actually responds (catches auth failures, quota exhaustion, 404s, timeouts)\n3. **OAuth Bypass:** Providers with `sk-ant-oat01-*` tokens (Anthropic OAuth) are skipped in raw HTTP — OpenClaw refreshes these transparently, so they're always marked available\n4. **Thinking Model Support:** Models that return `content=None` + `reasoning_content` (GLM-4.7, Kimi-K2, Qwen3-thinking) are correctly detected as available\n5. **Auto-Classification:** Tiers assigned via `tier_classifier.py` using 4 capability signals\n6. **Config Update:** Removes unavailable models, rebuilds tier primaries from working set\n7. **Cron:** Hourly refresh (cron id: `a8992c1f`) keeps model list current, alerts if availability changes by >2\n\n### Usage\n\n```bash\n# One-time discovery\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py\n\n# Auto-update config with working models only\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --auto-update\n\n# Set up hourly refresh cron\nopenclaw cron add --job '{\n  \"name\": \"Model Discovery Refresh\",\n  \"schedule\": {\"kind\": \"every\", \"everyMs\": 3600000},\n  \"payload\": {\n    \"kind\": \"systemEvent\",\n    \"text\": \"Run: bash skills\u002Fintelligent-router\u002Fscripts\u002Fauto_refresh_models.sh\",\n    \"model\": \"ollama\u002Fglm-4.7-flash\"\n  }\n}'\n```\n\n### Benefits\n\n✅ **Self-healing:** Automatically removes broken models (e.g., expired OAuth)\n✅ **Zero maintenance:** No manual model list updates\n✅ **New models:** Auto-adds newly released models\n✅ **Cost optimization:** Always uses cheapest working model per tier\n\n### Discovery Output\n\nResults saved to `skills\u002Fintelligent-router\u002Fdiscovered-models.json`:\n\n```json\n{\n  \"scan_timestamp\": \"2026-02-19T21:00:00\",\n  \"total_models\": 25,\n  \"available_models\": 23,\n  \"unavailable_models\": 2,\n  \"providers\": {\n    \"anthropic\": {\n      \"available\": 2,\n      \"unavailable\": 0,\n      \"models\": [...]\n    }\n  }\n}\n```\n\n### Pinning Models\n\nTo preserve a model even if it fails discovery:\n\n```json\n{\n  \"id\": \"special-model\",\n  \"tier\": \"COMPLEX\",\n  \"pinned\": true  \u002F\u002F Never remove during auto-update\n}\n```\n\n## ⚠️ Known Gap — Proactive Health-Based Routing (2026-03-04)\nCurrent router is **reactive** not **proactive**:\n- Fallback only fires AFTER a 429 is received\n- No awareness of concurrent sessions on same proxy\n- No cooldown tracking after rate-limit events\n\n**Needed improvements:**\n1. Track last-429 timestamp per provider → skip if within cooldown window\n2. Track active concurrent spawns per provider → if >1 active, route to OAuth\n3. Before spawning N parallel agents, check if single provider can handle N concurrent\n4. Expose `router.get_best_available(n_concurrent=2)` API\n","# Intelligent Router — Core Skill\n\n> **CORE SKILL**: This skill is infrastructure, not guidance. Installation = enforcement.\n> Run `bash skills\u002Fintelligent-router\u002Finstall.sh` to activate.\n\n## What It Does\n\nAutomatically classifies any task into a tier (SIMPLE\u002FMEDIUM\u002FCOMPLEX\u002FREASONING\u002FCRITICAL)\nand recommends the cheapest model that can handle it well.\n\n**The problem it solves:** Without routing, every cron job and sub-agent defaults to Sonnet\n(expensive). With routing, monitoring tasks use free local models, saving 80-95% on cost.\n\n---\n\n## MANDATORY Protocol (enforced via AGENTS.md)\n\n### Before spawning any sub-agent:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py classify \"task description\"\n```\n\n### Before creating any cron job:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py \"task description\"\n# Outputs the exact model ID and payload snippet to use\n```\n\n### To validate a cron payload has model set:\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --validate '{\"kind\":\"agentTurn\",\"message\":\"...\"}'\n```\n\n### ❌ VIOLATION (never do this):\n```python\n# Cron job without model = Sonnet default = expensive waste\n{\"kind\": \"agentTurn\", \"message\": \"check server...\"}  # ← WRONG\n```\n\n### ✅ CORRECT:\n```python\n# Always specify model from router recommendation\n{\"kind\": \"agentTurn\", \"message\": \"check server...\", \"model\": \"ollama\u002Fglm-4.7-flash\"}\n```\n\n---\n\n## Tier System\n\n| Tier | Use For | Primary Model | Cost |\n|------|---------|---------------|------|\n| 🟢 SIMPLE | Monitoring, heartbeat, checks, summaries | `anthropic-proxy-6\u002Fglm-4.7` (alt: proxy-4) | $0.50\u002FM |\n| 🟡 MEDIUM | Code fixes, patches, research, data analysis | `nvidia-nim\u002Fmeta\u002Fllama-3.3-70b-instruct` | $0.40\u002FM |\n| 🟠 COMPLEX | Features, architecture, multi-file, debug | `anthropic\u002Fclaude-sonnet-4-6` | $3\u002FM |\n| 🔵 REASONING | Proofs, formal logic, deep analysis | `nvidia-nim\u002Fmoonshotai\u002Fkimi-k2-thinking` | $1\u002FM |\n| 🔴 CRITICAL | Security, production, high-stakes | `anthropic\u002Fclaude-opus-4-6` | $5\u002FM |\n\n**SIMPLE fallback chain:** `anthropic-proxy-4\u002Fglm-4.7` → `nvidia-nim\u002Fqwen\u002Fqwen2.5-7b-instruct` ($0.15\u002FM)\n\n> ⚠️ **`ollama-gpu-server` is BLOCKED** for cron\u002Fspawn use. Ollama binds to `127.0.0.1` by default — unreachable over LAN from the OpenClaw host. The `router_policy.py` enforcer will reject any payload referencing it.\n\n**Tier classification uses 4 capability signals (not cost alone):**\n- `effective_params` (50%) — extracted from model ID or `known-model-params.json` for closed-source models\n- `context_window` (20%) — larger = more capable\n- `cost_input` (20%) — price as quality proxy (weak signal, last resort for unknown sizes)\n- `reasoning_flag` (10%) — bonus for dedicated thinking specialists (R1, QwQ, Kimi-K2)\n\n---\n\n## Policy Enforcer (NEW in v3.2.0)\n\n`router_policy.py` catches bad model assignments **before they are created**, not after they fail.\n\n### Validate a cron payload before submitting\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py check \\\n  '{\"kind\":\"agentTurn\",\"model\":\"ollama-gpu-server\u002Fglm-4.7-flash\",\"message\":\"check server\"}'\n# Output: VIOLATION: Blocked model 'ollama-gpu-server\u002Fglm-4.7-flash'. Recommended: anthropic-proxy-6\u002Fglm-4.7\n```\n\n### Get enforced model recommendation for a task\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"monitor alphastrike service\"\n# Output: Tier: SIMPLE  Model: anthropic-proxy-6\u002Fglm-4.7\n\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"monitor alphastrike service\" --alt\n# Output: Tier: SIMPLE  Model: anthropic-proxy-4\u002Fglm-4.7  ← alternate key for load distribution\n```\n\n### Audit all existing cron jobs\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py audit\n# Scans all crons, reports any with blocked or missing models\n```\n\n### Show blocklist\n```bash\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py blocklist\n```\n\n### Policy rules enforced\n1. **Model must be set** — no model field = Sonnet default = expensive waste\n2. **No blocked models** — `ollama-gpu-server\u002F*` and bare `ollama\u002F*` are rejected for cron use\n3. **CRITICAL tasks** — warns if using a non-Opus model for classified-critical work\n\n---\n\n## Installation (Core Skill Setup)\n\nRun once to self-integrate into AGENTS.md:\n```bash\nbash skills\u002Fintelligent-router\u002Finstall.sh\n```\n\nThis patches AGENTS.md with the mandatory protocol so it's always in context.\n\n---\n\n## CLI Reference\n\n```bash\n# ── Policy enforcer (run before creating any cron\u002Fspawn) ──\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py check '{\"kind\":\"agentTurn\",\"model\":\"...\",\"message\":\"...\"}'\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"task description\"\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py recommend \"task\" --alt  # alternate proxy key\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py audit     # scan all crons\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter_policy.py blocklist\n\n# ── Core router ──\n# Classify + recommend model\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py classify \"task\"\n\n# Get model id only (for scripting)\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --model-only \"task\"\n\n# Show spawn command\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py \"task\"\n\n# Validate cron payload has model set\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fspawn_helper.py --validate '{\"kind\":\"agentTurn\",\"message\":\"...\"}'\n\n# List all models by tier\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py models\n\n# Detailed scoring breakdown\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py score \"task\"\n\n# Config health check\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Frouter.py health\n\n# Auto-discover working models (NEW)\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py\n\n# Auto-discover + update config\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --auto-update\n\n# Test specific tier only\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --tier COMPLEX\n```\n\n---\n\n## Scoring System\n\n15-dimension weighted scoring (not just keywords):\n\n1. **Reasoning markers** (0.18) — prove, theorem, derive\n2. **Code presence** (0.15) — code blocks, file extensions\n3. **Multi-step patterns** (0.12) — first...then, numbered lists\n4. **Agentic task** (0.10) — run, fix, deploy, build\n5. **Technical terms** (0.10) — architecture, security, protocol\n6. **Token count** (0.08) — complexity from length\n7. **Creative markers** (0.05) — story, compose, brainstorm\n8. **Question complexity** (0.05) — multiple who\u002Fwhat\u002Fhow\n9. **Constraint count** (0.04) — must, require, exactly\n10. **Imperative verbs** (0.03) — analyze, evaluate, audit\n11. **Output format** (0.03) — json, table, markdown\n12. **Simple indicators** (0.02) — check, get, show (inverted)\n13. **Domain specificity** (0.02) — acronyms, dotted notation\n14. **Reference complexity** (0.02) — \"mentioned above\"\n15. **Negation complexity** (0.01) — not, never, except\n\nConfidence: `1 \u002F (1 + exp(-8 × (score - 0.5)))`\n\n---\n\n## Config\n\nModels defined in `config.json`. Add new models there, router picks them up automatically.\nLocal Ollama models have zero cost — always prefer them for SIMPLE tasks.\n\n---\n\n## Auto-Discovery (Self-Healing)\n\nThe intelligent-router can **automatically discover working models** from all configured providers via **real live inference tests** (not config-existence checks).\n\n### How It Works\n\n1. **Provider Scanning:** Reads `~\u002F.openclaw\u002Fopenclaw.json` → finds all models\n2. **Live Inference Test:** Sends `\"hi\"` to each model, checks it actually responds (catches auth failures, quota exhaustion, 404s, timeouts)\n3. **OAuth Bypass:** Providers with `sk-ant-oat01-*` tokens (Anthropic OAuth) are skipped in raw HTTP — OpenClaw refreshes these transparently, so they're always marked available\n4. **Thinking Model Support:** Models that return `content=None` + `reasoning_content` (GLM-4.7, Kimi-K2, Qwen3-thinking) are correctly detected as available\n5. **Auto-Classification:** Tiers assigned via `tier_classifier.py` using 4 capability signals\n6. **Config Update:** Removes unavailable models, rebuilds tier primaries from working set\n7. **Cron:** Hourly refresh (cron id: `a8992c1f`) keeps model list current, alerts if availability changes by >2\n\n### Usage\n\n```bash\n# One-time discovery\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py\n\n# Auto-update config with working models only\npython3 skills\u002Fintelligent-router\u002Fscripts\u002Fdiscover_models.py --auto-update\n\n# Set up hourly refresh cron\nopenclaw cron add --job '{\n  \"name\": \"Model Discovery Refresh\",\n  \"schedule\": {\"kind\": \"every\", \"everyMs\": 3600000},\n  \"payload\": {\n    \"kind\": \"systemEvent\",\n    \"text\": \"Run: bash skills\u002Fintelligent-router\u002Fscripts\u002Fauto_refresh_models.sh\",\n    \"model\": \"ollama\u002Fglm-4.7-flash\"\n  }\n}'\n```\n\n### Benefits\n\n✅ **Self-healing:** Automatically removes broken models (e.g., expired OAuth)\n✅ **Zero maintenance:** No manual model list updates\n✅ **New models:** Auto-adds newly released models\n✅ **Cost optimization:** Always uses cheapest working model per tier\n\n### Discovery Output\n\nResults saved to `skills\u002Fintelligent-router\u002Fdiscovered-models.json`:\n\n```json\n{\n  \"scan_timestamp\": \"2026-02-19T21:00:00\",\n  \"total_models\": 25,\n  \"available_models\": 23,\n  \"unavailable_models\": 2,\n  \"providers\": {\n    \"anthropic\": {\n      \"available\": 2,\n      \"unavailable\": 0,\n      \"models\": [...]\n    }\n  }\n}\n```\n\n### Pinning Models\n\nTo preserve a model even if it fails discovery:\n\n```json\n{\n  \"id\": \"special-model\",\n  \"tier\": \"COMPLEX\",\n  \"pinned\": true  \u002F\u002F Never remove during auto-update\n}\n```\n\n## ⚠️ Known Gap — Proactive Health-Based Routing (2026-03-04)\nCurrent router is **reactive** not **proactive**:\n- Fallback only fires AFTER a 429 is received\n- No awareness of concurrent sessions on same proxy\n- No cooldown tracking after rate-limit events\n\n**Needed improvements:**\n1. Track last-429 timestamp per provider → skip if within cooldown window\n2. Track active concurrent spawns per provider → if >1 active, route to OAuth\n3. Before spawning N parallel agents, check if single provider can handle N concurrent\n4. Expose `router.get_best_available(n_concurrent=2)` API\n",{"core":24,"name":5,"version":25,"description":7},true,"3.2.0","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fbowen31337\u002Fintelligent-router",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":24},[37,40,43],{"tool":38,"command":39},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill intelligent-router",{"tool":41,"command":42},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill intelligent-router",{"tool":44,"command":45},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill intelligent-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbowen31337\u002Fintelligent-router\u002FSKILL.md",[],[49,57,64,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":56},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":56},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":56},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":56},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":56},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":56},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]