← 返回 Skills 市场
361
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install model-selector
功能描述
A powerful model routing skill that analyzes query intent and cost-efficiency to select the optimal LLM (Elite/Balanced/Basic) before execution.
安全使用建议
This skill appears to do what it claims (choose a model tier) but has a few red flags you should consider before installing:
- Code/instruction mismatch: SKILL.md references get_optimal_model and analyze_and_route, but the code provides ModelRouter.route(). Confirm the actual tool interface the agent will call and update the README or code so they match.
- Local logging: It writes query_history.json with users' queries. If prompts may contain secrets or sensitive data, disable or audit this logging, restrict file permissions, or store history encrypted/ephemeral.
- Unused/large dependencies: requirements.txt includes litellm and heavy ML libs (torch, sentence-transformers). If you install dependencies, do so in an isolated environment (venv/container) and consider trimming unused packages.
- Minor bugs: The code uses torch.* inside ModelRouter.route but does not import torch at the top-level; running with semantic encoder enabled may raise a NameError. Test in a safe environment before trusting in production.
If you want to proceed: run the skill in an isolated sandbox, inspect and clean up query_history.json, reconcile SKILL.md and code function names, and verify you understand where and how any later 'refine' step would send data (avoid sending raw history to third-party LLMs unless you have consent and appropriate safeguards). If you prefer, ask the publisher for a fixed version that removes logging by default, aligns interface names, and documents exactly how refinement would be performed.
功能分析
Type: OpenClaw Skill
Name: model-selector
Version: 1.0.0
The OpenClaw skill 'Semantic Model Orchestrator' is designed to route LLM queries based on intent and cost-efficiency. The code in `scripts/model_router.py` and `scripts/train_router.py` implements this functionality, including a 'rolling adjustment' feature that logs user queries and their assigned tiers to a local file (`query_history.json`). This local logging is explicitly for refining intent keywords and is not indicative of data exfiltration. No evidence of malicious intent, such as unauthorized network calls, arbitrary code execution, credential theft, or prompt injection against the agent, was found. All dependencies listed in `scripts/requirements.txt` are standard for the described functionality.
能力评估
Purpose & Capability
The skill's name/description (model routing between Elite/Balanced/Basic) aligns with the included Python code which contains a ModelRouter and training helper. However the registry/README claims ClawHub-optimized tiers and 'Multi-Provider Support' while the skill itself only returns model identifiers (it does not perform provider authentication or API calls). The requirements.txt includes 'litellm' even though the code never imports or uses it — this is unnecessary and disproportionate to the stated functionality.
Instruction Scope
SKILL.md instructs agents to call a tool named get_optimal_model / shows an example using router.analyze_and_route(), but the provided code exposes ModelRouter.route() (no analyze_and_route or get_optimal_model). This mismatch means the SKILL.md and code are inconsistent. The code logs every routed query to a local file (query_history.json) and exposes a 'refine_keywords' / train_router.py flow that reads that history; storing user queries on disk is a privacy risk and could be used later to aggregate sensitive inputs. The 'refine' flow mentions using an external LLM to suggest new keywords — that could lead to sending logged queries to third-party models if implemented later (the current code does not itself send data externally, but the design enables it).
Install Mechanism
There is no install spec (instruction-only install), so nothing is automatically downloaded or executed by an installer; this lowers supply-chain risk. However the bundle includes a requirements.txt declaring heavy ML libraries (torch, sentence-transformers) which are large and may be installed by a user; those are plausible for the code but could be unexpected. No network download URLs or extract steps are present in the skill metadata.
Credentials
The skill requests no environment variables or credentials (none declared), which is proportionate for a router that only suggests model identifiers. Note: to actually execute calls against the named providers the agent/host will need provider-specific API keys separate from this skill; those are not requested by the skill itself.
Persistence & Privilege
The skill writes and reads a local file query_history.json for rolling adjustment and can keep up to 1000 entries. It does not request always:true and does not modify other skills. Persisting user queries to disk is a modest persistence/privacy concern (sensitive prompts could be retained).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-selector - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-selector触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the Semantic Model Orchestrator skill.
- Routes queries to Elite, Balanced, or Basic LLMs based on semantic intent and cost-efficiency.
- Utilizes vector embeddings for query complexity analysis.
- Supports multiple providers: OpenAI, Anthropic, Gemini, and DeepSeek.
- Features rolling adjustment logic to refine intent detection from user history.
- Optimized default model tiers for Claude 3.5 Sonnet, GPT-4o-mini, and DeepSeek.
元数据
常见问题
Model-Selector 是什么?
A powerful model routing skill that analyzes query intent and cost-efficiency to select the optimal LLM (Elite/Balanced/Basic) before execution. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 361 次。
如何安装 Model-Selector?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-selector」即可一键安装,无需额外配置。
Model-Selector 是免费的吗?
是的,Model-Selector 完全免费(开源免费),可自由下载、安装和使用。
Model-Selector 支持哪些平台?
Model-Selector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Model-Selector?
由 Ray(@rayray1218)开发并维护,当前版本 v1.0.0。
推荐 Skills