← Back to Skills Marketplace
walterwkchoy

Query Router

by walterwkchoy · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
119
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install query-router
Description
Unified query router combining content-type detection, complexity scoring, and prefix-based routing. Routes queries to the optimal model with safety features...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install query-router
  3. After installation, invoke the skill by name or use /query-router
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug query-router
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Query Router?

Unified query router combining content-type detection, complexity scoring, and prefix-based routing. Routes queries to the optimal model with safety features... It is an AI Agent Skill for Claude Code / OpenClaw, with 119 downloads so far.

How do I install Query Router?

Run "/install query-router" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Query Router free?

Yes, Query Router is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Query Router support?

Query Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Query Router?

It is built and maintained by walterwkchoy (@walterwkchoy); the current version is v1.1.0.

💬 Comments