소스 정보
- 저장소
- legendtkl/agentic-skill-router
- 최근 소스 활동
- 2026년 5월 23일 17:20
- 감지된 SKILL.md 언어
- 영어
- 스타
- 5
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/legendtkl/agentic-skill-router --skill skill-005명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | skill-005 |
| description | Intelligent agent routing and topology selection based on task characteristics |
Intelligent routing of tasks to optimal agents and swarms based on task characteristics, file patterns, and workflow context.
This skill provides:
Match task descriptions to agent specializations:
const keywordPatterns = {
"investment-analysis": {
pattern: /underwrite|credit|loan|collateral|lien|ucc|security.package/i,
agents: ["deal-underwriter", "investment-analyst"],
priority: 1
},
"financial-modeling": {
pattern: /dcf|lbo|valuation|model|projection|scenario|sensitivity/i,
agents: ["financial-modeler"],
priority: 1
},
"portfolio-risk": {
pattern: /stock|portfolio|risk|var|sharpe|sortino|beta|drawdown|volatility/i,
agents: ["financial-analysis-swarm", "risk-assessor", "portfolio-manager"],
priority: 1
},
"infrastructure": {
pattern: /docker|kubernetes|k8s|deploy|ci.?cd|github.?actions|pipeline|prometheus|grafana/i,
agents: ["infrastructure-devops-swarm"],
priority: 2
},
"backend": {
pattern: /api|endpoint|fastapi|rest|graphql|database|postgres|timescale|redis|celery/i,
agents: ["backend-api-swarm"],
priority: 2
},
"frontend": {
pattern: /react|component|dashboard|chart|visualization|ui|ux|material.?ui/i,
agents: ["ui-visualization-swarm"],
priority: 2
},
"data-ml": {
pattern: /etl|pipeline|airflow|dag|ml|model|training|prophet|xgboost|feature/i,
agents: ["data-ml-pipeline-swarm", "data-science-architect"],
priority: 2
},
"quality": {
pattern: /test|coverage|pytest|jest|e2e|integration|unit|quality|lint/i,
agents: ["project-quality-swarm", "tdd-guide", "e2e-runner"],
priority: 3
},
"security": {
pattern: /security|vulnerability|audit|compliance|gdpr|sec|permission|access/i,
agents: ["security-compliance-swarm", "security-reviewer"],
priority: 2
}
};
Route tasks based on file paths:
const filePatterns = {
"backend/**/*.py": "backend-api-swarm",
"backend/api/**/*.py": "backend-api-swarm",
"backend/services/**/*.py": "backend-api-swarm",
"frontend/**/*.tsx": "ui-visualization-swarm",
"frontend/**/*.ts": "ui-visualization-swarm",
"frontend/web/src/**/*.tsx": "ui-visualization-swarm",
"backend/ml/**/*.py": "data-ml-pipeline-swarm",
"data_pipelines/**": "data-ml-pipeline-swarm",
"**/financial/**": "financial-analysis-swarm",
"backend/analysis/**/*.py": "financial-analysis-swarm",
"infrastructure/**": "infrastructure-devops-swarm",
"docker-compose*.yml": "infrastructure-devops-swarm",
"Dockerfile*": "infrastructure-devops-swarm",
".github/workflows/**": "infrastructure-devops-swarm",
"**/*.test.ts": "project-quality-swarm",
"**/*.test.tsx": "project-quality-swarm",
"**/tests/**": "project-quality-swarm"
};
Select optimal topology based on task characteristics:
function selectTopology(task) {
const factors = {
complexity: assessComplexity(task), // 1-4
agentCount: estimateAgentCount(task), // 1-4
coordinationNeeds: assessCoordination(task), // 1-4
parallelism: assessParallelism(task) // 1-4
};
const score =
factors.complexity * 0.30 +
factors.agentCount * 0.25 +
factors.coordinationNeeds * 0.25 +
factors.parallelism * 0.20;
if (score <= 1.5) return "star";
if (score <= 2.5) return "mesh";
if (score <= 3.5) return "hierarchical";
return "hive_mind";
}
Topology Characteristics:
| Topology | Coordination | Communication | Fault Tolerance | Best For |
|---|---|---|---|---|
| Star | Centralized | Hub-spoke | Low | Planning, simple routing |
| Mesh | Distributed | Peer-to-peer | High | Complex implementation |
| Hierarchical | Layered | Top-down | Moderate | Code review, releases |
| Parallel | Minimal | Aggregated | High | Multiple reviewers |
| Hive Mind | Collective | Broadcast | Very High | Complex problem solving |
Configure swarms for multi-agent execution:
const swarmConfigs = {
"infrastructure-devops-swarm": {
topology: "hierarchical",
coordinator: "infrastructure-devops-swarm",
subAgents: ["security-agent", "infrastructure-agent"],
memoryNamespace: "infrastructure"
},
"financial-analysis-swarm": {
topology: "hive_mind",
coordinator: "queen-investment-orchestrator",
subAgents: ["investment-analyst", "deal-underwriter", "financial-modeler", "risk-assessor", "portfolio-manager"],
memoryNamespace: "investment-analysis",
consensusProtocol: "raft"
},
"code-review-swarm": {
topology: "parallel",
coordinator: "project-quality-swarm",
subAgents: ["security-reviewer", "code-reviewer", "code-analyzer", "performance-optimizer"],
aggregationStrategy: "merge_findings"
}
};
Task Received
│
▼
┌─────────────────────────┐
│ 1. Parse Task Keywords │
│ Match against patterns│
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 2. Identify File Patterns│
│ Route by file paths │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 3. Select Topology │
│ Based on complexity │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 4. Configure Swarm │
│ Set coordinator, agents│
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 5. Execute with Selected│
│ Configuration │
└─────────────────────────┘
Map commands to agents:
const commandRouting = {
// Investment Commands
"/underwrite": { agent: "deal-underwriter", model: "opus" },
"/model": { agent: "financial-modeler", model: "opus" },
"/analyze-structure": { agent: "deal-underwriter", model: "opus" },
"/scenario": { agent: "financial-modeler", model: "opus" },
"/stock-analysis": { agent: "financial-analysis-swarm", model: "opus" },
// Development Commands
"/plan": { agent: "planner", model: "opus" },
"/build-fix": { agent: "build-error-resolver", model: "opus" },
"/code-review": { agent: "code-reviewer", model: "opus" },
"/tdd": { agent: "tdd-guide", model: "opus" },
"/e2e": { agent: "e2e-runner", model: "opus" },
: { : , : },
: { : , : },
: { : , : }
};
Route to appropriate model based on task:
const modelRouting = {
opus: {
useFor: [
"Complex architectural decisions",
"Financial modeling and analysis",
"Security reviews",
"Code reviews",
"Orchestration"
],
agents: [
"queen-investment-orchestrator",
"investment-analyst",
"deal-underwriter",
"architect",
"code-reviewer",
"security-reviewer"
]
},
sonnet: {
useFor: [
"General development",
"Testing",
"Documentation",
"Issue triage"
],
agents: ["coder", "tester", "doc-updater", "issue-triager"]
},
haiku: {
useFor: [
"Lightweight frequent tasks",
"Simple queries",
"Status checks"
],
agents: []
}
};
Distribute work across agents:
function loadBalance(task, availableAgents) {
const strategy = "least_loaded"; // or "round_robin", "weighted"
switch (strategy) {
case "least_loaded":
return availableAgents.sort((a, b) =>
a.currentLoad - b.currentLoad
)[0];
case "round_robin":
return availableAgents[nextIndex++ % availableAgents.length];
case "weighted":
return weightedSelect(availableAgents, task.complexity);
}
}
When no specific route matches:
const fallbackConfig = {
agent: "team-coordinator",
model: "opus",
description: "Routes unknown tasks to team coordinator for optimal agent selection"
};
This skill is used internally by the workflow engine and agent orchestration system. It is not directly invocable but provides routing logic for:
/workflow command phase executionRouting configuration is stored in:
.claude/config/agent-registry.json - Agent and command routing.claude/config/topology-rules.json - Topology selection rules.claude/config/workflow-engine.json - Phase routingteam-coordinator agent - Master routingsmart-agent agent - Dynamic spawningtopology-optimizer agent - Topology optimizationworkflow-engine.json - Phase configuration