跳到正文
Skillpedia
智能体8.2k · #12534

intelligent-routing

它能做什么

这项技能让你的 AI 扮演项目经理的角色。它会阅读每个请求,并选出最合适的专家方式,因此你不必指定某位专家。适合同时使用多个 AI 助手的人。

适用场景

  • ✓当你提出的请求同时涉及多个领域,例如登录功能加上设计修改的时候。
  • ✓当你不确定该请哪位专家的时候。
  • ✓当你希望 AI 为每项新任务自动挑选合适的专家时。

技能链接

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/intelligent-routing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/vudovn/ag-kit/blob/main/.agents/skills/intelligent-routing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的应用添加登录页面。你自行选择需要的专家,并完成这件事。”

每周 5 个新技能,1 分钟读完。

工作原理

技能会检查请求中的关键词、涉及的领域以及复杂程度,然后将它们与专家对照表匹配,并调用合适的专家。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Intelligent Agent Routing

Purpose: Automatically analyze user requests and route them to the most appropriate specialist agent(s) without requiring explicit user mentions.

Core Principle

The AI should act as an intelligent Project Manager, analyzing each request and automatically selecting the best specialist(s) for the job.

How It Works

1. Request Analysis

Before responding to ANY user request, perform automatic analysis:

graph TD
    A[User Request: Add login] --> B[ANALYZE]
    B --> C[Keywords]
    B --> D[Domains]
    B --> E[Complexity]
    C --> F[SELECT AGENT]
    D --> F
    E --> F
    F --> G[security-auditor + backend-specialist]
    G --> H[AUTO-INVOKE with context]

2. Agent Selection Matrix

Use this matrix to automatically select agents:

User Intent Keywords Selected Agent(s) Auto-invoke?
Authentication "login", "auth", "signup", "password" security-auditor + backend-specialist ✅ YES
UI Component "button", "card", "layout", "style" frontend-specialist ✅ YES
Mobile UI "screen", "navigation", "touch", "gesture" mobile-developer ✅ YES
API Endpoint "endpoint", "route", "API", "POST", "GET" backend-specialist ✅ YES
Database "schema", "migration", "query", "table" database-architect + backend-specialist ✅ YES
Bug Fix "error", "bug", "not working", "broken" debugger ✅ YES
Test "test", "coverage", "unit", "e2e" test-engineer ✅ YES
Deployment "deploy", "production", "CI/CD", "docker" devops-engineer ✅ YES
Security Review "security", "vulnerability", "exploit" security-auditor + penetration-tester ✅ YES
Performance "slow", "optimize", "performance", "speed" performance-optimizer ✅ YES
Product Def "requirements", "user story", "backlog", "MVP" product-owner ✅ YES
New Feature "build", "create", "implement", "new app" orchestrator → multi-agent ⚠️ ASK FIRST
Complex Task Multiple domains detected orchestrator → multi-agent ⚠️ ASK FIRST

3. Automatic Routing Protocol

TIER 0 - Automatic Analysis (ALWAYS ACTIVE)

Before responding to ANY request:

// Pseudo-code for decision tree
function analyzeRequest(userMessage) {
    // 1. Classify request type
    const requestType = classifyRequest(userMessage);

    // 2. Detect domains
    const domains = detectDomains(userMessage);

    // 3. Determine complexity
    const complexity = assessComplexity(domains);

    // 4. Select agent(s)
    if (complexity === "SIMPLE" && domains.length === 1) {
        return selectSingleAgent(domains[0]);
    } else if (complexity === "MODERATE" && domains.length <= 2) {
        return selectMultipleAgents(domains);
    } else {
        return "orchestrator"; // Complex task
    }
}

4. Response Format

When auto-selecting an agent, inform the user concisely:

🤖 **Applying knowledge of `@security-auditor` + `@backend-specialist`...**

[Proceed with specialized response]

Benefits:

  • ✅ User sees which expertise is being applied
  • ✅ Transparent decision-making
  • ✅ Still automatic (no /commands needed)

Domain Detection Rules

Single-Domain Tasks (Auto-invoke Single Agent)

Domain Patterns Agent
Security auth, login, jwt, password, hash, token security-auditor
Frontend component, react, vue, css, html, tailwind frontend-specialist
Backend api, server, express, fastapi, node backend-specialist
Mobile react native, flutter, ios, android, expo mobile-developer
常见问题

它会问我该用哪位专家吗?

不会。这项技能的设计是根据请求自动挑选专家。

选择之前它会检查什么?

它会查看请求中的关键词、涉及的领域以及任务的复杂程度。

它能匹配哪些类型的请求?

它通过请求中的关键词,匹配身份验证、用户界面和移动端界面等常见领域。

详情

作者的原始描述

Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

repo: vudovn/ag-kit

热度

GitHub 星标
8.2k
排名
#12534
许可证
MIT
更新时间
2026/10/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能