Overview
- Skill Key
- halfmoon82/semantic-router
- Author
- halfmoon82
- Source Repo
- openclaw/skills
- Version
- 7.9.5
- Source Path
- skills/halfmoon82/semantic-router
- Latest Commit SHA
- b353d16b402d949e23bc06928ec1bdffd6b1b3f1
让 AI 代理根据对话内容自动选择最合适的模型。四层识别(系统过滤→关键词→指示词→语义相似度),四池架构(高速/智能/人文/代理),五分支路由,全自动 Fallback 回路。支持 trigger_groups_all 非连续词组命中。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 semantic-router 技能。 若已安装,则直接安装 semantic-router 技能。
> 🔒 **安全声明**:本技能需要修改 OpenClaw 配置以实现模型路由功能。所有配置变更前会自动备份,支持一键回滚。建议在测试环境验证后再部署到生产环境。 ## ⚠️ Security & Permissions Declaration **This skill performs the following privileged operations — all are intentional and explicitly user-initiated:** | Operation | Purpose | Scope | |-----------|---------|-------| | Read/patch `~/.openclaw/openclaw.json` | Configure model routing pools | Local config only | | Read/write `~/.openclaw/workspace/.lib/pools.json` | Store model pool configuration | Workspace only | | Read/write `~/.openclaw/workspace/.lib/tasks.json` | Store task type definitions | Workspace only | | Run `semantic_check.py` locally | Classify user messages for routing | No network required | | Patch session model via `sessions.patch` | Switch active model pool | Current session only | | Restart OpenClaw Gateway (`openclaw gateway restart`) | Apply routing config changes | Local service only | | Inject `prependContext` into agent turns | Output routing declaration in first line | Read-only context injection | | Update Cron Job `sessionTarget` to `"isolated"` | Prevent background tasks from polluting user sessions | Affects only background Cron jobs | **What this skill does NOT do:** - Does NOT exfiltrate conversation content or model credentials to external servers - Does NOT access API keys or secrets directly - Does NOT modify files outside `~/.openclaw/` and the skill's own workspace - Does NOT run with elevated (sudo/root) privileges - Does NOT auto-install additional packages **Requires:** Python 3.8+, OpenClaw Gateway running, configured model providers # 🔷 Semantic Router v7.9.3 — 生产级会话路由系统 🔷 **ClawHub**: https://clawhub.ai/halfmoon82/semantic-router **版本**: 7.6.3 (生产环境) **作者**: halfmoon82 **状态**: ✅ ROM 级固化,完全测试通过 ## 🎯 这个技能解决什么问题? ### 核心问题(v7.2 新解决) 你是否遇到过: - **Cron Job 导致会话频繁重置** — 后台定时任务打断用户交互 - **Discord/T...
# Semantic Router [](https://clawhub.ai/halfmoon82/semantic-router) [](https://spdx.org/licenses/MIT-0.html) [](https://clawhub.ai/halfmoon82/semantic-router) > **Production-grade session routing system for OpenClaw agents.** Automatically select the optimal AI model based on conversation context. Four-layer recognition (system filtering → keywords → indicators → semantic similarity), four-pool architecture (Highspeed/Intelligence/Humanities/Agentic), five-branch routing with automatic fallback. ## 🎯 What Problem Does This Solve? - **Cron Jobs resetting user sessions** — Background tasks interrupting active conversations - **Discord/Telegram sessions suddenly clearing** — Long tasks losing context - **AGENTS.md injection failures** — Large files exceeding 20KB limit - **Model switching overridden by global config** — Routing not taking effect ## ⚠️ Security & Permissions Declaration **This skill performs privileged operations — all are intentional and user-initiated:** | Operation | Purpose | Scope | |-----------|---------|-------| | Read/patch `~/.openclaw/openclaw.json` | Configure model routing pools | Local config only | | Read/write `~/.openclaw/workspace/.lib/pools.json` | Store model pool configuration | Workspace only | | Read/write `~/.openclaw/workspace/.lib/tasks.json` | Store task type definitions | Workspace only | | Run `semantic_check.py` locally | Classify user messages for routing | No network required | | Patch session model via `sessions.patch` | Switch active model pool | Current session only | | Restart OpenClaw Gateway | Apply routing config changes | Local service only | | Update Cron Job `sessionTarget` | Isolate background tasks from user sessions | Cron jobs only | **What this skill does NOT do:** - Does NOT exfiltrate data to external ser...
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Attio CRM integration for managing companies, people, deals, notes, tasks, and custom objects. Use when working with Attio CRM data, searching contacts, managing sales pipelines, adding notes to records, creating tasks, or syncing prospect information.
capt-marbles
Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
caqlayan
Tweet Processor Skill
carlosarturoleon
Connect to Windsor.ai MCP for natural language access to 325+ data sources including Facebook Ads, GA4, HubSpot, Shopify, and more.