Auto-route tasks to the cheapest z.ai (GLM) model that works correctly. Three-tier progression: Flash → Standard → Plus/32B. Classify before responding. FLASH (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1–2 sentence tasks, cron jobs. ESCALATE TO STANDARD: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations. ESCALATE TO PLUS/32B: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment, deep research, critical production decisions. Rule: If a human needs >30 seconds of focused thinking, escalate. If Standard struggles with complexity, go to Plus/32B. Save major API costs by starting cheap and escalating only when needed.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install smart-model-routing-for-zai或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install smart-model-routing-for-zai⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/smart-model-routing-for-zai/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: smart-model-switching-glm description: >- Auto-route tasks to the cheapest z.ai (GLM) model that works correctly. Three-tier progression: Flash → Standard → Plus/32B. Classify before responding.
FLASH (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1–2 sentence tasks, cron jobs.
ESCALATE TO STANDARD: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations.
ESCALATE TO PLUS/32B: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment, deep research, critical production decisions.
Rule: If a human needs >30 seconds of focused thinking, escalate. If Standard struggles with complexity, go to Plus/32B. Save major API costs by starting cheap and escalating only when needed.
author: "OpenClaw Community" version: 1.0.0 homepage: https://clawhub.com metadata: openclaw: emoji: "💰" provider: "z.ai (GLM)" ---
Three-tier z.ai (GLM) routing: Flash → Standard → Plus / 32B
Start with the cheapest model. Escalate only when needed. Designed to minimize API cost without sacrificing correctness.
---
> If a human would need more than 30 seconds of focused thinking, escalate from Flash to Standard. > If the task involves architecture, complex tradeoffs, or deep reasoning, escalate to Plus / 32B.
---
| Tier | Example Models | Purpose | |-----|----------------|---------| | Flash | GLM-4.5-Flash, GLM-4.7-Flash | Fastest & cheapest | | Standard | GLM-4.6, GLM-4.7 | Strong reasoning & code | | Plus / 32B | GLM-4-Plus, GLM-4-32B-128K | Heavy reasoning & architecture |
Bottom line: Wrong model selection wastes money OR time. Flash for simple, Standard for normal work, Plus/32B for complex decisions.
---
Stay on Flash for:
---
Escalate to Standard for:
Most real user conversations belong here.
---
Escalate to Plus / 32B for:
---
// Routine monitoring
sessions_spawn(task="Check backup status", model="GLM-4.5-Flash")
// Standard code work
sessions_spawn(task="Build the REST API endpoint", model="GLM-4.7")
// Architecture decisions
sessions_spawn(task="Design the database schema for multi-tenancy", model="GLM-4-Plus")
For Cron Jobs
json
Copy code
{
"payload": {
"kind": "agentTurn",
"model": "GLM-4.5-Flash"
}
}
Always use Flash for cron unless the task genuinely needs reasoning.
📊 Quick Decision Tree
pgsql
Copy code
Is it a greeting, lookup, status check, or 1–2 sentence answer?
YES → FLASH
NO ↓
Is it code, analysis, planning, writing, or multi-step?
YES → STANDARD
NO ↓
Is it architecture, deep reasoning, or a critical decision?
YES → PLUS / 32B
NO → Default to STANDARD, escalate if struggling
📋 Quick Reference Card
less
Copy code
┌─────────────────────────────────────────────────────────────┐
│ SMART MODEL SWITCHING │
│ Flash → Standard → Plus / 32B │
├─────────────────────────────────────────────────────────────┤
│ 💚 FLASH (cheapest) │
│ • Greetings, status checks, quick lookups │
│ • Factual Q&A, reminders │
│ • Simple file ops, 1–2 sentence answers │
├─────────────────────────────────────────────────────────────┤
│ 💛 STANDARD (workhorse) │
│ • Code > 10 lines, debugging │
│ • Analysis, comparisons, planning │
│ • Reports, long writing │
├─────────────────────────────────────────────────────────────┤
│ ❤️ PLUS / 32B (complex) │
│ • Architecture decisions │
│ • Complex debugging, multi-file refactoring │
│ • Strategic planning, deep research │
├─────────────────────────────────────────────────────────────┤
│ 💡 RULE: >30 sec human thinking → escalate │
│ 💰 START CHEAP → SCALE ONLY WHEN NEEDED │
└─────────────────────────────────────────────────────────────┘
Built for z.ai (GLM) setups.安装 Smart Model Routing for Z.AI 后,可以对 AI 说这些话来触发它
Help me get started with Smart Model Routing for Z.AI
Explains what Smart Model Routing for Z.AI does, walks through the setup, and runs a quick demo based on your current project
Use Smart Model Routing for Z.AI to auto-route tasks to the cheapest z
Invokes Smart Model Routing for Z.AI with the right parameters and returns the result directly in the conversation
What can I do with Smart Model Routing for Z.AI in my data & analytics workflow?
Lists the top use cases for Smart Model Routing for Z.AI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/smart-model-routing-for-zai/ 目录(个人级,所有项目可用),或 .claude/skills/smart-model-routing-for-zai/(项目级)。重启 AI 客户端后,用 /smart-model-routing-for-zai 主动调用,或让 AI 根据上下文自动发现并使用。
Smart Model Routing for Z.AI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Smart Model Routing for Z.AI 可免费安装使用。请查阅仓库了解许可证信息。
Auto-route tasks to the cheapest z.ai (GLM) model that works correctly. Three-tier progression: Flash → Standard → Plus/32B. Classify before responding. FLASH (default): factual Q&A, greetings, reminders, status checks, lookups, simple file ops, heartbeats, casual chat, 1–2 sentence tasks, cron jobs. ESCALATE TO STANDARD: code >10 lines, analysis, comparisons, planning, reports, multi-step reasoning, tables, long writing >3 paragraphs, summarization, research synthesis, most user conversations. ESCALATE TO PLUS/32B: architecture decisions, complex debugging, multi-file refactoring, strategic planning, nuanced judgment, deep research, critical production decisions. Rule: If a human needs >30 seconds of focused thinking, escalate. If Standard struggles with complexity, go to Plus/32B. Save major API costs by starting cheap and escalating only when needed.
Automate my data & analytics tasks using Smart Model Routing for Z.AI
Identifies repetitive steps in your workflow and sets up Smart Model Routing for Z.AI to handle them automatically
Smart Model Routing for Z.AI 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。