← 返回 Skills 市场
Query Router
作者
walterwkchoy
· GitHub ↗
· v1.1.0
· MIT-0
119
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install query-router
功能描述
Unified query router combining content-type detection, complexity scoring, and prefix-based routing. Routes queries to the optimal model with safety features...
安全使用建议
This skill appears coherent for routing queries: it classifies queries, consults a local model endpoint (http://localhost:11434/api/tags) and the 'openclaw' CLI, and writes audit logs under scripts/.logs and lock files under scripts/.locks. Before installing, verify you trust the skill source (homepage unknown) and that running 'openclaw' and a local model registry on localhost is expected in your environment. Review the included Python files yourself or run the scripts in a safe/test workspace; note they log up to the first 100 characters of queries to a JSONL file, so avoid sending sensitive secrets through queries if you enable this skill.
功能分析
Type: OpenClaw Skill
Name: query-router
Version: 1.1.0
The query-router skill is a utility designed to classify user queries and recommend or verify transitions between different AI models based on content type, complexity, and explicit prefixes (e.g., @codex). The implementation in scripts/classify.py and scripts/router.py uses standard pattern matching and local CLI calls (openclaw status) to manage model state. It includes robust safety features such as file-based locking (fcntl), audit logging, and a verification/rollback mechanism. No evidence of malicious intent, data exfiltration, or unauthorized execution was found.
能力评估
Purpose & Capability
Name/description (route queries to optimal models) match the code and SKILL.md: prefix/content-type/complexity routing, mapping to cloud/local models. The use of the 'openclaw' CLI and a localhost model tags endpoint is coherent for a router that needs current model state and available models.
Instruction Scope
Runtime instructions and the code operate within the claimed domain: classify input, decide model, optionally call 'openclaw' to check/verify status, and write local audit logs. The skill references only local files (.locks, .logs) and localhost HTTP; it does not exfiltrate to external servers or request unrelated system secrets.
Install Mechanism
No install spec is provided (instruction-only). The package includes Python scripts but does not download or extract remote artifacts. This is the lowest-risk install pattern for a script-based skill.
Credentials
The skill declares no required env vars or credentials and the code does not read secrets. It invokes a local CLI ('openclaw') and contacts http://localhost:11434 which are proportional to discovering models; no unrelated service tokens are requested.
Persistence & Privilege
always is false and the skill does not attempt to modify global skill config. It creates local lock and log files under scripts/.locks and scripts/.logs, which is expected for routing/audit behavior and does not indicate elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install query-router - 安装完成后,直接呼叫该 Skill 的名称或使用
/query-router触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
qa/simple types now route to minimax-m2.7:cloud as primary. All query types now use cloud models exclusively.
v1.0.3
Code type now routes to qwen3-coder-next:cloud (cloud code model). Updated @cl prefix accordingly.
v1.0.2
Vision type now routes to qwen3.5:cloud (cloud vision model with multimodal support). Added @qwen/@qv aliases for vision prefix.
v1.0.1
Cloud-primary model routing: all content-types default to minimax-m2.7:cloud when confidence is high; local models (llava, qwen2.5, codellama) as fallback when cloud is unavailable.
v1.0.0
Initial release: unified query router combining content-type detection, complexity scoring, and prefix-based routing with lock protection, verify-after-switch, rollback, and audit logs.
元数据
常见问题
Query Router 是什么?
Unified query router combining content-type detection, complexity scoring, and prefix-based routing. Routes queries to the optimal model with safety features... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 119 次。
如何安装 Query Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install query-router」即可一键安装,无需额外配置。
Query Router 是免费的吗?
是的,Query Router 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Query Router 支持哪些平台?
Query Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Query Router?
由 walterwkchoy(@walterwkchoy)开发并维护,当前版本 v1.1.0。
推荐 Skills