Design & UI v1.0.3

model-switcher-puaservice

Automatically switch between different AI models based on task complexity. Supports all available models in your...

puaservice 更新于 2026-02-24 1 浏览
下载 SKILL

技能说明

Automatically switch between different AI models based on task complexity. Supports all available models in your OpenClaw setup. Triggers when detecting complex tasks like analysis, refactoring, architecture design, optimization, or when user explicitly mentions model switching needs.

使用场景

Automatically detect task complexity and switch to the appropriate model.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/model-switcher-puaservice
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 12 kB
SKILL.md text/markdown
---
name: model-switcher
version: 1.0.3
description: Automatically switch between different AI models based on task complexity. Supports all available models in your OpenClaw setup. Triggers when detecting complex tasks like analysis, refactoring, architecture design, optimization, or when user explicitly mentions model switching needs.
---

# Model Switcher

Automatically detect task complexity and switch to the appropriate model.

## Model Configuration

Based on your setup:
- **Fast model (haiku):** For simple, quick tasks
- **Powerful model (sonnet):** For complex analysis

## Trigger Keywords (Chinese)

Switch to **sonnet** when message contains:
- 分析、深入分析、详细分析
- 重构、代码重构
- 架构、系统架构、设计架构
- 设计、系统设计
- 优化、性能优化
- 复杂、复杂问题
- 调试、深度调试
- 评估、技术评估

## Workflow

1. **Check current model** using `session_status`
2. **Detect keywords** in user message
3. **Switch if needed:**
   - Complex task detected + currently on haiku → switch to sonnet
   - Simple task + currently on sonnet → optionally switch back to haiku
4. **Inform user** briefly about the switch

## Implementation

Use `session_status` tool with `model` parameter:

```javascript
// Switch to sonnet for complex tasks
session_status({ model: "kiro-cli" })

// Switch back to haiku for simple tasks
session_status({ model: "haiku" })

// Reset to default
session_status({ model: "default" })
```

## Example Detection Logic

```
User message: "帮我分析一下这个系统的架构"
→ Contains: "分析", "架构"
→ Action: Switch to sonnet if not already on it
→ Response: "🔄 切换到 sonnet 模型来处理这个复杂任务..."
```

## Notes

- Be smart about switching - don't switch for every message
- Batch related complex tasks on sonnet before switching back
- Inform user only on actual switches, not when already on correct model
- Consider context: if already discussing complex topic, stay on sonnet

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。