model-switcher
根据任务复杂性自动在快速(俳句)和强大(十四行诗)模型之间切换。当检测到分析、重构、架构设计、优化等复杂任务时,或者当用户明确提及模型切换需求时触发。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~puaservice-model-switchercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~puaservice-model-switcher/file -o puaservice-model-switcher.md# Model Switcher
Automatically detect task complexity and switch to the appropriate model.
## Model Configuration
Based on your setup:
- **Fast model (haiku):** `custom-kiro-cli-vipdump-eu-org/claude-haiku-4-5` - For simple, quick tasks
- **Powerful model (sonnet):** `custom-kiro-cli-vipdump-eu-org/claude-sonnet-4-5` - 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
---
## 中文说明
# Model Switcher
自动检测任务复杂度并切换到合适的模型。
## Model Configuration
基于你的配置:
- **快速模型(haiku):** `custom-kiro-cli-vipdump-eu-org/claude-haiku-4-5` —— 用于简单、快速的任务
- **强大模型(sonnet):** `custom-kiro-cli-vipdump-eu-org/claude-sonnet-4-5` —— 用于复杂分析
## Trigger Keywords (Chinese)
当消息包含以下内容时切换到 **sonnet**:
- 分析、深入分析、详细分析
- 重构、代码重构
- 架构、系统架构、设计架构
- 设计、系统设计
- 优化、性能优化
- 复杂、复杂问题
- 调试、深度调试
- 评估、技术评估
## Workflow
1. **检查当前模型**,使用 `session_status`
2. **检测** 用户消息中的关键词
3. **按需切换:**
- 检测到复杂任务 + 当前为 haiku → 切换到 sonnet
- 简单任务 + 当前为 sonnet → 可选择切回 haiku
4. **简要告知用户** 关于此次切换
## Implementation
使用带 `model` 参数的 `session_status` 工具:
```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
- 切换要明智 —— 不要为每条消息都切换
- 在切回之前,将相关的复杂任务集中在 sonnet 上批量处理
- 仅在实际发生切换时告知用户,已处于正确模型时不必告知
- 考虑上下文:如果已在讨论复杂主题,则保持在 sonnet 上