Token导航 LogoToken导航TokenDH.com
开发external-serviceclawhub未标认证来源可访问clear审计提醒

openclaw-intent-routerOpenClaw intent router 开发

Agent Skill

openclaw-intent-router 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,161

周安装

347

GitHub Stars

公开资料未说明

下载量

2,859
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-intent-router(OpenClaw intent router 开发)
来源仓库:https://github.com/zhenstaff/openclaw-intent-router
安装命令:
openclaw skills install openclaw-intent-router
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-intent-router

简介

使用关键字和语义与置信度匹配,智能地将自然语言用户意图路由到最匹配的注册Agent Skill。

SKILL.md

Intent Router Skill / 意图路由器技能

Intelligent Intent-to-Skill Routing for AI Agents 为 AI Agent 提供智能意图到技能的路由

Version / 版本: 1.0.0 Package / 包名: openclaw-intent-router License / 许可: MIT


🎯 Skill Overview / 技能概述

English

Intent Router is a capability routing framework that intelligently matches user intents to the most appropriate agent skills.

What it does:

  • Analyzes natural language user intents
  • Matches intents to registered skills using multiple strategies
  • Provides confidence scores for each match
  • Routes execution to the best-fit skill handler

Core Value: Solves the fundamental problem: *"Given a user's intent, which agent skill should handle this request?"*

Security Notice:

  • ✅ No external API keys required
  • ✅ No remote servers or external services
  • ✅ Runs entirely locally
  • ✅ No telemetry or data collection
  • ✅ Open source and auditable

中文

意图路由器是一个能力路由框架,能够智能地将用户意图匹配到最合适的 Agent 技能。

功能描述:

  • 分析自然语言用户意图
  • 使用多种策略将意图匹配到已注册的技能
  • 为每个匹配提供置信度分数
  • 将执行路由到最合适的技能处理器

核心价值: 解决根本问题:*"给定用户意图,哪个 Agent 技能应该处理这个请求?"*

安全说明:

  • ✅ 无需外部 API 密钥
  • ✅ 不连接远程服务器或外部服务
  • ✅ 完全本地运行
  • ✅ 无遥测或数据收集
  • ✅ 开源可审计

📋 Requirements / 系统要求

Required / 必需

Runtime / 运行环境:

  • Node.js >= 18.0.0
  • npm >= 8.0.0 (or pnpm/yarn)

Operating System / 操作系统:

  • Linux, macOS, or Windows
  • 支持 Linux、macOS 或 Windows

Optional / 可选

For Development / 开发环境:

  • TypeScript >= 5.0 (included as dev dependency)
  • tsx (included as dev dependency)

External Dependencies / 外部依赖:

  • ❌ No external API keys required
  • ❌ No database required
  • ❌ No additional services required

不需要外部依赖:

  • ❌ 无需 API 密钥
  • ❌ 无需数据库
  • ❌ 无需额外服务

✨ Key Features / 核心特性

1. Multi-Strategy Matching / 多策略匹配

English:

  • Keyword Matching - Fast, reliable token-based matching
  • Semantic Matching - Understanding intent meaning (extensible with embeddings)
  • Hybrid Matching - Combines both for best results (default)

中文:

  • 关键词匹配 - 快速、可靠的基于词元的匹配
  • 语义匹配 - 理解意图含义(可扩展嵌入模型)
  • 混合匹配 - 结合两者以获得最佳结果(默认)

2. Confidence Scoring / 置信度评分

English: Every match includes a 0-1 confidence score, allowing you to:

  • Set minimum confidence thresholds
  • Choose between multiple potential matches
  • Implement fallback strategies

中文: 每个匹配都包含 0-1 的置信度分数,允许你:

  • 设置最低置信度阈值
  • 在多个潜在匹配之间选择
  • 实现回退策略

3. Easy Skill Registration / 简易技能注册

English:

router.registerSkill({
  name: 'skill-name',
  description: 'What this skill does',
  triggers: ['keyword1', 'keyword2'],
  execute: async (params) => {
    // Your skill logic
  }
});

中文:

router.registerSkill({
  name: '技能名称',
  description: '技能功能描述',
  triggers: ['关键词1', '关键词2'],
  execute: async (params) => {
    // 你的技能逻辑
  }
});

4. Type Safety / 类型安全

English: Full TypeScript support with comprehensive type definitions for all APIs.

中文: 完整的 TypeScript 支持,所有 API 都有全面的类型定义。


🚀 Installation / 安装

Method 1: npm (Recommended / 推荐)

English:

# Install from npm registry
npm install openclaw-intent-router

# Verify installation
node -e "console.log(require('openclaw-intent-router'))"

中文:

# 从 npm 注册表安装
npm install openclaw-intent-router

# 验证安装
node -e "console.log(require('openclaw-intent-router'))"

Method 2: Global CLI / 全局 CLI

English:

# Install CLI globally
npm install -g openclaw-intent-router

# Use CLI commands
intent-router --version
intent-router skills

中文:

# 全局安装 CLI
npm install -g openclaw-intent-router

# 使用 CLI 命令
intent-router --version
intent-router skills

Method 3: From Source / 从源码安装

English:

# Clone repository
git clone https://github.com/ZhenRobotics/openclaw-intent-router.git
cd openclaw-intent-router

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

中文:

# 克隆仓库
git clone https://github.com/ZhenRobotics/openclaw-intent-router.git
cd openclaw-intent-router

# 安装依赖
npm install

# 构建
npm run build

# 运行测试
npm test

Security Note / 安全提示: Always verify the repository URL and inspect the code before running from source. 始终验证仓库 URL 并在从源码运行前检查代码。


💡 Usage Examples / 使用示例

Example 1: Basic Routing / 基础路由

English:

import { IntentRouter } from 'openclaw-intent-router';

const router = new IntentRouter();

// Register skills
router.registerSkill({
  name: 'weather',
  triggers: ['weather', 'temperature'],
  execute: async () => ({ temp: 22, condition: 'sunny' })
});

// Route intent
const result = await router.route('What is the weather?');
console.log(result.primary.skill.name); // 'weather'
console.log(result.primary.confidence); // 0.95

中文:

import { IntentRouter } from 'openclaw-intent-router';

const router = new IntentRouter();

// 注册技能
router.registerSkill({
  name: 'weather',
  triggers: ['天气', '气温'],
  execute: async () => ({ temp: 22, condition: '晴天' })
});

// 路由意图
const result = await router.route('今天天气怎么样?');
console.log(result.primary.skill.name); // 'weather'
console.log(result.primary.confidence); // 0.95

Example 2: Custom Skills / 自定义技能

English:

import { BaseSkill } from 'openclaw-intent-router';

class EmailSenderSkill extends BaseSkill {
  name = 'email-sender';
  description = 'Send emails to recipients';
  triggers = ['send email', 'email to'];

  async execute(params) {
    return await sendEmail(params.recipient, params.body);
  }
}

router.registerSkill(new EmailSenderSkill());

中文:

import { BaseSkill } from 'openclaw-intent-router';

class EmailSenderSkill extends BaseSkill {
  name = 'email-sender';
  description = '发送邮件给收件人';
  triggers = ['发送邮件', '发邮件给'];

  async execute(params) {
    return await sendEmail(params.recipient, params.body);
  }
}

router.registerSkill(new EmailSenderSkill());

Example 3: CLI Usage / 命令行使用

English:

# Route an intent
intent-router route "analyze this image"

# List available skills
intent-router skills

# Test matching with verbose output
intent-router test "weather query" --verbose

中文:

# 路由意图
intent-router route "分析这张图片"

# 列出可用技能
intent-router skills

# 测试匹配(详细输出)
intent-router test "天气查询" --verbose

🎯 Use Cases / 应用场景

1. Multi-Agent Systems / 多 Agent 系统

English: Route user requests to specialized sub-agents (code generation, image analysis, data processing, etc.)

中文: 将用户请求路由到专门的子 Agent(代码生成、图像分析、数据处理等)

2. Chatbot Frameworks / 聊天机器人框架

English: Determine which intent handler should process user messages based on content.

中文: 根据内容确定哪个意图处理器应处理用户消息。

3. API Gateway / API 网关

English: Intelligent routing to microservices based on request intent rather than just URL patterns.

中文: 基于请求意图而非仅 URL 模式的微服务智能路由。

4. Voice Assistants / 语音助手

English: Map voice commands to appropriate action handlers with confidence scoring.

中文: 通过置信度评分将语音命令映射到适当的动作处理器。

5. Workflow Automation / 工作流自动化

English: Trigger automation based on natural language triggers without hardcoded rules.

中文: 基于自然语言触发器的自动化,无需硬编码规则。


🔧 Configuration / 配置

Router Options / 路由器选项

English:

const router = new IntentRouter({
  matchingStrategy: 'hybrid',    // 'keyword' | 'semantic' | 'hybrid'
  confidenceThreshold: 0.6,      // Minimum confidence (0-1)
  maxAlternatives: 3,            // Number of alternatives
  logLevel: 'info'               // 'debug' | 'info' | 'warn' | 'error'
});

中文:

const router = new IntentRouter({
  matchingStrategy: 'hybrid',    // 'keyword' | 'semantic' | 'hybrid'
  confidenceThreshold: 0.6,      // 最低置信度 (0-1)
  maxAlternatives: 3,            // 备选数量
  logLevel: 'info'               // 'debug' | 'info' | 'warn' | 'error'
});

📊 Performance / 性能指标

Metric / 指标Value / 数值Notes / 说明
Routing Speed / 路由速度< 5msAverage per intent / 每个意图平均
Memory Usage / 内存使用< 50MBWith 100 skills / 100个技能
Package Size / 包大小~500KBUncompressed / 未压缩
Concurrent Skills / 并发技能1000+Tested / 已测试

✅ Quality Assurance / 质量保证

Code Quality / 代码质量

English:

  • ✅ 100% TypeScript Coverage
  • ✅ 10/10 Unit Tests Passing
  • ✅ Zero Core Dependencies
  • ✅ Comprehensive Documentation
  • ✅ Open Source (MIT License)

中文:

  • ✅ 100% TypeScript 覆盖
  • ✅ 10/10 单元测试通过
  • ✅ 核心零依赖
  • ✅ 全面文档
  • ✅ 开源(MIT 许可)

Security / 安全性

English:

  • ✅ No external API calls
  • ✅ No data collection or telemetry
  • ✅ No credential requirements
  • ✅ Runs entirely locally
  • ✅ Auditable source code

中文:

  • ✅ 无外部 API 调用
  • ✅ 无数据收集或遥测
  • ✅ 无凭证要求
  • ✅ 完全本地运行
  • ✅ 可审计源代码

📖 Documentation / 文档

Official Documentation / 官方文档

English:

  • GitHub: https://github.com/ZhenRobotics/openclaw-intent-router
  • npm: https://www.npmjs.com/package/openclaw-intent-router
  • Quick Start: QUICKSTART.md
  • Examples: examples/

中文:

  • GitHub: https://github.com/ZhenRobotics/openclaw-intent-router
  • npm: https://www.npmjs.com/package/openclaw-intent-router
  • 快速开始: QUICKSTART.md
  • 示例: examples/

🛡️ Security Considerations / 安全考虑

What This Package Does / 此包的功能

English:

  • Analyzes text input locally
  • Matches patterns using algorithms
  • Routes to registered handlers
  • No network communication
  • No file system access (except for configuration)

中文:

  • 本地分析文本输入
  • 使用算法匹配模式
  • 路由到注册的处理器
  • 无网络通信
  • 无文件系统访问(配置文件除外)

What This Package Does NOT Do / 此包不会做的事

English:

  • ❌ Does not send data to external servers
  • ❌ Does not require API keys or credentials
  • ❌ Does not collect telemetry
  • ❌ Does not execute arbitrary code from user input
  • ❌ Does not access sensitive system resources

中文:

  • ❌ 不向外部服务器发送数据
  • ❌ 不需要 API 密钥或凭证
  • ❌ 不收集遥测数据
  • ❌ 不执行用户输入的任意代码
  • ❌ 不访问敏感系统资源

🤝 Support / 支持

English:

  • GitHub Issues: https://github.com/ZhenRobotics/openclaw-intent-router/issues
  • Discussions: https://github.com/ZhenRobotics/openclaw-intent-router/discussions
  • Email: Report security issues privately

中文:

  • GitHub Issues: https://github.com/ZhenRobotics/openclaw-intent-router/issues
  • 讨论区: https://github.com/ZhenRobotics/openclaw-intent-router/discussions
  • 邮件: 私下报告安全问题

📄 License / 许可证

MIT License - See LICENSE file


🔐 Trust & Verification / 信任与验证

English: Before installing, you can verify:

  1. Check npm package page: https://www.npmjs.com/package/openclaw-intent-router
  2. Inspect GitHub repository: https://github.com/ZhenRobotics/openclaw-intent-router
  3. Review source code and tests
  4. Run npm audit after installation
  5. Check commit signatures and release tags

中文: 安装前,你可以验证:

  1. 检查 npm 包页面:https://www.npmjs.com/package/openclaw-intent-router
  2. 检查 GitHub 仓库:https://github.com/ZhenRobotics/openclaw-intent-router
  3. 审查源代码和测试
  4. 安装后运行 npm audit
  5. 检查提交签名和发布标签

Version: 1.0.0 Last Updated: 2024-03-13 Maintained: ✅ Actively maintained

Build intelligent agents with Intent Router! 使用意图路由器构建智能 Agent!

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.55%
按下载量换算2,560

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills