agents-router

Routes tasks to appropriate Task tool agents (subagents). Triggers on complex multi-step tasks, research, code review, exploration, or any task benefiting from specialized agent execution. Matches intent to agent types.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agents-router" with this command: npx skills add zpankz/mcp-skillset/zpankz-mcp-skillset-agents-router

Agents Router

Routes tasks to appropriate Task tool subagent types for parallel or specialized execution.

Available Agent Types

AgentPurposeBest For
general-purposeMulti-step researchComplex questions, code search
ExploreCodebase explorationFind files, understand patterns
PlanImplementation planningArchitecture, strategy
claude-code-guideClaude Code helpFeature questions, how-to
orchestratorMulti-domain coordinationComplex multi-agent workflows
strategy-analyzerDeep strategic analysisRefactoring, optimization
architectRecursive decompositionComplex system design
geminiLong context analysisLarge codebases, multi-file bugs
researcherWeb researchFinding answers, investigating
engineerProfessional implementationPRD execution, debugging

Trigger Conditions

Activate when task involves:

  • Complex multi-step operations
  • Research requiring web/documentation search
  • Code review or analysis
  • Codebase exploration (files > 20)
  • Multi-domain tasks (domains > 2)
  • Long-running background operations

Routing Logic

# Complexity scoring
complexity_factors:
  files_affected: weight 0.3
  domains_involved: weight 0.25
  steps_required: weight 0.25
  research_needed: weight 0.2

# Thresholds
spawn_agent_if:
  complexity >= 0.7 OR
  files > 20 OR
  domains > 2 OR
  explicit_request

Decision Tree

Task Complexity Assessment
    │
    ├── Exploration needed?
    │   ├── Quick search? → Explore (quick)
    │   ├── Pattern finding? → Explore (medium)
    │   └── Deep analysis? → Explore (very thorough)
    │
    ├── Implementation?
    │   ├── From PRD? → engineer
    │   ├── Architecture? → architect
    │   └── Strategy? → strategy-analyzer
    │
    ├── Research?
    │   ├── Web search? → researcher
    │   ├── Claude Code docs? → claude-code-guide
    │   └── Codebase context? → gemini
    │
    ├── Multi-domain?
    │   └── orchestrator
    │
    └── Code review?
        └── superpowers:code-reviewer (via skill)

Agent Selection Matrix

Task TypePrimary AgentAlternatives
Find files by patternExploregeneral-purpose
Search code for keywordExploregemini
Plan implementationPlanarchitect
Deep strategic analysisstrategy-analyzerarchitect
Large codebase analysisgeminiExplore
Web researchresearchergeneral-purpose
Multi-agent coordinationorchestratorgeneral-purpose
PRD implementationengineergeneral-purpose
Claude Code helpclaude-code-guide-

Usage Patterns

Parallel Agents

When tasks are independent:

Task tool (agent1) + Task tool (agent2) in parallel

Sequential Agents

When tasks depend on each other:

Task tool (research) → Task tool (implement)

Background Agents

For long-running tasks:

Task tool with run_in_background=true
→ TaskOutput to retrieve results

Integration

  • Task tool: Primary agent spawning
  • TaskOutput: Result retrieval
  • orchestrator agent: Multi-agent coordination
  • meta-router: Parent routing

Quick Reference

# Quick codebase search
agent: Explore
thoroughness: quick

# Deep implementation planning
agent: Plan
complexity: high

# Large codebase bug
agent: gemini
context: 2M tokens

# Professional implementation
agent: engineer
from: PRD

# Multi-domain coordination
agent: orchestrator
domains: [frontend, backend, database]

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

code refactoring

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-refactor

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

dspy-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

pex-cli

No summary provided by upstream source.

Repository SourceNeeds Review