Token导航 LogoToken导航

Agent Skill · 开发

openclaw-intent-router(OpenClaw intent router 开发)

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

openclaw-intent-router 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为调用外部服务;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 4,475。

总安装 8,161周安装 347GitHub Stars 公开资料未说明下载 2,859核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openclaw-intent-router;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openclaw-intent-router 怎么安装?

在终端执行 openclaw skills install openclaw-intent-router。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-intent-router 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-intent-router 需要什么权限?

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

openclaw-intent-router 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openclaw-intent-router 用的人多吗?

公开数据是累计安装 8,161 次,近一周安装 347 次,下载 2,859 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-intent-router 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
openclaw-intent-router

OpenClaw intent router 开发 · 本页

8,161—调用外部服务MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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!

平台分布

OpenClaw

89.55%
按下载量换算2,560

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

调用外部服务

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills