← ClaudeAtlas

multi-model-routerlisted

Use when user requests a task that could be routed to a different AI model via an OpenAI-compatible gateway (a single API key giving access to multiple models like Claude/GPT/DeepSeek/Kimi/Qwen). Triggers include audio/video transcription, TTS, PDF→md conversion, OCR, batch text processing, multi-model comparison, or any mention of "用千问/deepseek/kimi/gpt", "用哪个模型最好". The skill identifies the task, recommends a model with rationale, confirms with AskUserQuestion, and invokes via Bash + curl. Skip when user has explicitly named a model and said "直接干"/"不用问"/"just do it".
kingwang19940101-pixel/multi-model-router · ★ 1 · AI & Automation · score 74
Install: claude install-skill kingwang19940101-pixel/multi-model-router
# Multi-Model Router(多模型路由) > **TL;DR**:你有一个 OpenAI 兼容网关的 key,这个 skill 帮 Claude 自动判断「该用哪个模型」,询问你确认后调用。 > > **TL;DR(EN)**: You have one API key for an OpenAI-compatible gateway. This skill helps Claude pick the right model per task, asks you to confirm, then invokes it. ## 🚀 First Time Setup(首次使用) **This skill needs setup. If `~/.config/api_keys.env` does not exist or is missing `LLM_API_KEY`/`LLM_API_BASE`, do not proceed — direct the user to run:** ```bash bash ~/.claude/skills/multi-model-router(多模型路由)/scripts/setup.sh ``` 详见 [SETUP.md](SETUP.md)。安装完后调 `scripts/verify.sh` 列出可用模型。 ## 🔒 Security First — 安全第一(必读) **绝对禁止**:用户在对话里直接粘贴 API key。 如果用户粘贴了: 1. 立刻在回复中**不要复述 key**(连前缀都不要) 2. 提示用户:**"我已收到 key,但建议立刻在服务商后台 revoke 这一把 → 重新生成 → 用 setup.sh 写入本地文件"** 3. 解释原因:对话历史会被保存(本地 `~/.claude/projects/`、第三方 wiki 同步等),key 可能被无意间泄露 4. **永远不要** 把 key 写到 SKILL.md/README/任何文档里 5. **永远不要** 在 Bash 命令里 echo/print key 内容 **正确路径**:Key 永远只存于 `~/.config/api_keys.env`(权限 600),所有调用通过 `source` 加载,不进入对话上下文。 ## 核心原则 — Core Principle **Identify → Recommend → Confirm → Execute** 1. **Identify**:复述任务,标注关键属性(语言、体量、精度、是否需画面) 2. **Recommend**:对照 [MODELS.md](MODELS.md) 给首选+备选,说明理由 3. **Confirm**:用 AskUserQuestion 让用户拍板(**不允许跳过**) 4. **Execute**:Bash + curl,key 从 `~/.config/api_keys.env` 读 **例外**:用户明确说"直接干"/"不用问"/"just do it",或已指定模型时,跳过询问。 ## 何时触发 — When to Use 满足任一即触发: - 任务涉及**音视频处理**(转写、配音) - 任务涉及**文档转换**(PDF→md、Word→结构化、OCR) - 任务涉及**大量批处理**文本(改写、打标、提取) - 任务涉及**长文本**(>20 万字总结) - 用户明确说"用千问/dee