搜索

PythonReactSEOPDF
OpenClaw

semantic-router

让 AI 代理根据对话内容自动选择最合适的模型。四层识别(系统过滤→关键词→指示词→语义相似度),四池架构(高速/智能/人文/代理),五分支路由,全自动 Fallback 回路。支持 trigger_groups_all 非连续词组命中。

halfmoon820 来源安装数☆ 0 仓库 Starsv7.9.5

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install halfmoon82/semantic-router

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

🔒 安全声明:本技能需要修改 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...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/halfmoon82/semantic-router
Version
7.9.5
Commit
b353d16b402d949e23bc06928ec1bdffd6b1b3f1
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Semantic Router

Version License Status

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...

来源内容

SKILL.md
> 🔒 **安全声明**:本技能需要修改 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...
README
# Semantic Router

[![Version](https://img.shields.io/badge/version-7.9.5-blue)](https://clawhub.ai/halfmoon82/semantic-router)
[![License](https://img.shields.io/badge/license-MIT--0-green)](https://spdx.org/licenses/MIT-0.html)
[![Status](https://img.shields.io/badge/status-production_ready-brightgreen)](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...

相关技能

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...