semantic-router
让 AI 代理根据对话内容自动选择最合适的模型。四层识别(系统过滤→关键词→指示词→语义相似度),四池架构(高速/智能/人文/代理),五分支路由,全自动 Fallback 回路。支持 trigger_groups_all 非连续词组命中。
Why use this skill?
Optimize your AI workflows with Semantic Router. Automatically route requests to the best-fit model pool with session isolation and multi-layer logic.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/halfmoon82/semantic-routerWhat This Skill Does
Semantic Router v7.9.3 is a production-grade session routing system for OpenClaw, designed to intelligently dispatch user requests to the most optimal AI model pools. By utilizing a four-layer recognition process—system filtering, keyword analysis, instruction detection, and semantic similarity scoring—the skill ensures that every query is handled by the model best suited for the specific task. It addresses critical issues such as session resets caused by background Cron jobs and the fragmentation of long-running workflows. With a sophisticated four-pool architecture (Highspeed, Intelligence, Humanities, and Agentic) and a five-branch routing logic, this tool maintains session context while optimizing for cost, speed, and precision.
Installation
Installation is streamlined through ClawHub. First, execute clawhub install https://clawhub.ai/halfmoon82/semantic-router to pull the latest repository. After installation, navigate to the skill directory and run the setup wizard with python3 ~/.openclaw/workspace/skills/semantic-router/scripts/setup_wizard.py. This script will analyze your existing configuration, scan available models, and generate the necessary pools.json and tasks.json files. Finally, ensure any active Cron jobs are isolated from your main session keys to prevent interference during task switching.
Use Cases
This skill is perfect for power users who juggle multiple AI workflows simultaneously. It excels in:
- Separating high-frequency administrative tasks from deep development coding sessions.
- Managing complex multi-step agentic workflows that require massive context windows.
- Automatically shifting to faster, cost-efficient models for simple information retrieval.
- Preserving professional writing contexts while switching models for specialized research tasks.
Example Prompts
- "帮我写个 Python 爬虫脚本,用来抓取公开的实时天气数据。"
- "处理并整理这份长文档,将其中的关键论点总结成 PPT 大纲。"
- "继续刚才的逻辑,但是请用更严谨的学术风格重写这段话。"
Tips & Limitations
To get the most out of Semantic Router, utilize the trigger_groups_all feature for more flexible, natural language detection. By defining semantic groups, you avoid the need for rigid, exact keyword matching. Note that the router relies on accurate configuration of your model pools; ensure your tasks.json is audited regularly as you add new models to your workspace. The skill performs best when session isolation is strictly enforced via the cron update command for any persistent background tasks.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-halfmoon82-semantic-router": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, code-execution
Related Skills
astrai-inference-router
Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls
astrai-code-review
AI-powered code review with intelligent model routing — saves 40%+ vs always using the most expensive model
video-producer
短视频一键生成技能 v2.2。调用video-director进行画面规划,然后生成AI素材、TTS配音、视频渲染,输出完整MP4。
spatix
Create beautiful maps in seconds. Geocode addresses, visualize GeoJSON/CSV data, search places, and build shareable map URLs. No GIS skills needed. Agents earn points for contributions.
arch-optimization
OpenClaw通信协议架构优化技能包 - 提供高性能、可靠的agent间通信框架。实现大消息59%性能提升,MessagePack 35%体积减少,统一传输层架构,智能路由算法,完整错误恢复和监控体系。