IN

intelligent-routing

Maps user intent to relevant specialists to optimize task dispatch and agent workflow.

Install

mkdir -p .claude/skills/intelligent-routing && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4550" && unzip -o skill.zip -d .claude/skills/intelligent-routing && rm skill.zip

Installs to .claude/skills/intelligent-routing

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.
175 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Analyze user requests
  • Select specialist agents
  • Route tasks automatically
  • Communicate agent selection

How it works

It analyzes keywords, domains, and complexity to map requests to the most relevant specialist agents.

Inputs & outputs

You give it
User natural language request
You get back
Selected specialist agent(s)

When to use intelligent-routing

  • Routing user requests
  • Managing agent task delegation
  • Selecting specialist agents

About this skill

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 IntentKeywordsSelected 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 TaskMultiple domains detectedorchestrator → 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)

DomainPatternsAgent
Securityauth, login, jwt, password, hash, tokensecurity-auditor
Frontendcomponent, react, vue, css, html, tailwindfrontend-specialist
Backendapi, server, express, fastapi, nodebackend-specialist
Mobilereact native, flutter, ios, android, expomobile-developer
Databaseprisma, sql, mongodb, schema, migrationdatabase-architect
Testingtest, jest, vitest, playwright, cypresstest-engineer
DevOpsdocker, kubernetes, ci/cd, pm2, nginxdevops-engineer
Debugerror, bug, crash, not working, issuedebugger
Performanceslow, lag, optimize, cache, performanceperformance-optimizer
SEOseo, meta, analytics, sitemap, robotsseo-specialist
Gameunity, godot, phaser, game, multiplayergame-developer

Multi-Domain Tasks (Auto-invoke Orchestrator)

If request matches 2+ domains from different categories, automatically use orchestrator:

Example: "Create a secure login system with dark mode UI"
→ Detected: Security + Frontend
→ Auto-invoke: orchestrator
→ Orchestrator will handle: security-auditor, frontend-specialist, test-engineer

Complexity Assessment

SIMPLE (Direct agent invocation)

  • Single file edit
  • Clear, specific task
  • One domain only
  • Example: "Fix the login button style"

Action: Auto-invoke respective agent

MODERATE (2-3 agents)

  • 2-3 files affected
  • Clear requirements
  • 2 domains max
  • Example: "Add API endpoint for user profile"

Action: Auto-invoke relevant agents sequentially

COMPLEX (Orchestrator required)

  • Multiple files/domains
  • Architectural decisions needed
  • Unclear requirements
  • Example: "Build a social media app"

Action: Auto-invoke orchestrator → will ask Socratic questions

Implementation Rules

Rule 1: Silent Analysis

DO NOT announce "I'm analyzing your request..."

  • ✅ Analyze silently
  • ✅ Inform which agent is being applied
  • ❌ Avoid verbose meta-commentary

Rule 2: Inform Agent Selection

DO inform which expertise is being applied:

🤖 **Applying knowledge of `@frontend-specialist`...**

I will create the component with the following characteristics:
[Continue with specialized response]

Rule 3: Seamless Experience

The user should not notice a difference from talking to the right specialist directly.

Rule 4: Override Capability

User can still explicitly mention agents:

User: "Use @backend-specialist to review this"
→ Override auto-selection
→ Use explicitly mentioned agent

Edge Cases

Case 1: Generic Question

User: "How does React work?"
→ Type: QUESTION
→ No agent needed
→ Respond directly with explanation

Case 2: Extremely Vague Request

User: "Make it better"
→ Complexity: UNCLEAR
→ Action: Ask clarifying questions first
→ Then route to appropriate agent

Case 3: Contradictory Patterns

User: "Add mobile support to the web app"
→ Conflict: mobile vs web
→ Action: Ask: "Do you want responsive web or native mobile app?"
→ Then route accordingly

Integration with Existing Workflows

With /orchestrate Command

  • User types /orchestrate: Explicit orchestration mode
  • AI detects complex task: Auto-invoke orchestrator (same result)

Difference: User doesn't need to know the command exists.

With Socratic Gate

  • Auto-routing does NOT bypass Socratic Gate
  • If task is unclear, still ask questions first
  • Then route to appropriate agent

With Workspace Rules

  • Priority: Workspace rules (.agents/rules/) > intelligent-routing
  • If a workspace rule specifies explicit routing, follow it
  • Intelligent routing is the DEFAULT when no explicit rule exists

Testing the System

Test Cases

Test 1: Simple Frontend Task

User: "Create a dark mode toggle button"
Expected: Auto-invoke frontend-specialist
Verify: Response shows "Using @frontend-specialist"

Test 2: Security Task

User: "Review the authentication flow for vulnerabilities"
Expected: Auto-invoke security-auditor
Verify: Security-focused analysis

Test 3: Complex Multi-Domain

User: "Build a chat application with real-time notifications"
Expected: Auto-invoke orchestrator
Verify: Multiple agents coordinated (backend, frontend, test)

Test 4: Bug Fix

User: "Login is not working, getting 401 error"
Expected: Auto-invoke debugger
Verify: Systematic debugging approach

Performance Considerations

Token Usage

  • Analysis adds ~50-100 tokens per request
  • Tradeoff: Better accuracy vs slight overhead
  • Overall SAVES tokens by reducing back-and-forth

Response Time

  • Analysis is instant (pattern matching)
  • No additional API calls required
  • Agent selection happens before first response

User Education

Optional: First-Time Explanation

If this is the first interaction in a project:

💡 **Tip**: I am configured with automatic specialist agent selection.
I will always choose the most suitable specialist for your task. You can
still mention agents explicitly with `@agent-name` if you prefer.

Debugging Agent Selection

Enable Debug Mode (for development)

Add to a workspace rule file (.agents/rules/) temporarily:

## DEBUG: Intelligent Routing

Show selection reasoning:

- Detected domains: [list]
- Selected agent: [name]
- Reasoning: [why]

Summary

intelligent-routing skill enables:

✅ Zero-command operation (no need for /orchestrate)
✅ Automatic specialist selection based on request analysis
✅ Transparent communication of which exper


Content truncated.

When not to use it

  • Explicit agent routing
  • Simple tasks not requiring specialization

Limitations

  • Adds token overhead
  • Requires clear intent

How it compares

It eliminates the need for explicit user mentions of agents.

Compared to similar skills

intelligent-routing side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
intelligent-routing (this skill)11moNo flagsIntermediate
using-superpowers953moNo flagsBeginner
ultrawork112moNo flagsAdvanced
clawhub252moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

using-superpowers

obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

95205

ultrawork

Yeachan-Heo

Parallel execution engine for high-throughput task completion

11184

clawhub

openclaw

Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawhub CLI.

25151

skill-installer

openai

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

29141

continuous-learning

affaan-m

Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.

995

memory-keeper-proactive-context-maintenance

b4CU-R4U

Automatically detect and maintain memory freshness by monitoring context staleness, significant code changes, task completions, and phase transitions. Proactively suggests and executes memory sync operations with user confirmation. Use when the user says "sync memory", "update context", or when the Skill detects that context is stale (>2 hours), significant changes have occurred (new commits), tasks completed, or major milestones reached. Replaces passive "context is stale" warnings with active maintenance.

694

Search skills

Search the agent skills registry