| name | vc-router |
| description | Intelligent skill routing with automatic selection, composition, and fallback. Use when the user doesn't specify a skill, says "just do it", or wants the AI to decide the best approach. |
| metadata | {"short-description":"Auto-selects the best vc* skill."} |
VC Router - ULTIMATE EDITION
Core Philosophy
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ INTELLIGENT ROUTING โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ 1. UNDERSTAND INTENT - Not just keywords โ
โ 2. SELECT BEST FIT - With confidence scoring โ
โ 3. COMPOSE IF NEEDED - Chain skills intelligently โ
โ 4. FALLBACK GRACEFULLY - Always have a path forward โ
โ 5. LEARN FROM RESULTS - Improve routing over time โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Quick Invoke
Any of these activate the router:
use vc-router: <goal>
just do this: <goal>
vc go <goal> (router mode)
vc finish <goal> (force end-to-end)
vcf: <goal> โ routes to vc-phase-loop
use vcf: <goal> โ same as above (explicit invocation; Codex may output this form)
The Routing Engine
Step 1: Intent Classification
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ INTENT CLASSIFICATION โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Extract from user request: โ
โ โโ ACTION: What to do (build, create, fix, analyze...) โ
โ โโ DOMAIN: What area (frontend, backend, docs, git...) โ
โ โโ OUTPUT: Expected result (file, component, document...) โ
โ โโ SCOPE: Size of task (single file, multi-file, system) โ
โ โ
โ Example: "Build a login page with OAuth" โ
โ โโ ACTION: build โ
โ โโ DOMAIN: frontend โ
โ โโ OUTPUT: page/component โ
โ โโ SCOPE: multi-file โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Step 1.5: Sub-Agent Assisted Routing (Optional)
If the request is large, ambiguous, or multi-domain, spawn 1โ2 sub-agents to parallelize:
- Repo scan (recommended preset:
explorer): locate relevant code/config and constraints
- Risk/validation scan (recommended preset:
worker): identify security/ops risks, tests, and verification strategy
Rules:
- Keep it lightweight (max 2) and timeboxed.
- Sub-agents report findings only; main agent makes routing decision.
- If sub-agents arenโt available, continue without them.
- Prefer
send_input with interrupt if an agent goes off-track; always close_agent when done.
Step 2: Skill Matching
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SKILL MATCHING MATRIX โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ VC-ONLY DISTRIBUTION: โ
โ โโ "team", "teammate", "swarm", "delegate" โ vc-agent-teamsโ
โ โโ "finish", "hands off" โ vc-phase-loop โ
โ โโ Multi-step, open-ended โ vc-phase-loop โ
โ โโ Everything else โ vc-phase-loop โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Step 3: Confidence Scoring
For each potential skill match, calculate confidence:
HIGH (80-100%): Clear keyword match + domain match
โ Route immediately
MEDIUM (50-79%): Partial match, some ambiguity
โ Select best fit, proceed with note
LOW (<50%): Weak match, unclear intent
โ Use vc-phase-loop as safe default
Skill Composition
Primary skills in this repo are vc-phase-loop, vc-router, and vc-agent-teams.
Composition defaults:
- Team orchestration requests: start with
vc-agent-teams, then hand execution-heavy tasks to vc-phase-loop.
- Multi-domain open-ended requests: route to
vc-phase-loop directly.
Fallback Strategy
When No Skill Matches
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FALLBACK HIERARCHY โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Level 1: Route to vc-phase-loop (universal fallback) โ
โ โ
โ NEVER: "I don't know which skill to use" โ
โ ALWAYS: Route to vc-phase-loop as universal fallback โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Error Recovery
When Selected Skill Fails
Skill Failed
โ
Analyze failure reason
โ
Option 1: Retry same skill with adjusted approach
โ
Option 2: Try alternative skill from same category
โ
Option 3: Decompose task and route parts separately
โ
Option 4: Escalate to vc-phase-loop for full autonomy
โ
NEVER: Stop and report failure without attempting recovery
VC Defaults
For ALL routing decisions:
- Prefer fast iteration over perfection
- Make safe default choices without pausing
- Ask questions only after delivering initial result
- Keep outputs concise and actionable
- Assume user is non-technical
VC Finish Mode
When user triggers "vc finish" explicitly:
- ALWAYS route to vc-phase-loop
- Enable full autonomous execution
- No mid-stream questions
- Complete end-to-end
- Provide completion proof
Triggers:
- "vc finish", "finish it", "take it to the end"
- "plan and execute", "hands off"
Execution Rules
- Single Pass Classification - Decide quickly, don't overthink
- Best Fit Selection - If uncertain, choose narrower scope skill
- Immediate Execution - Route and run, collect questions for end
- Safe Defaults - vc-phase-loop handles anything
- No Dead Ends - Always have a path forward
Routing Decision Log
For transparency, log routing decisions:
## Routing Decision
Request: "Build a login page"
Classification:
- Action: build
- Domain: frontend
- Output: page
- Scope: multi-file
Candidates:
1. vc-phase-loop (100% match)
Selected: vc-phase-loop
Reason: vc-only distribution; use the end-to-end engine as the default.
Proceeding with execution...
The Router Promise
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ YOU SAY WHAT YOU WANT. โ
โ โ
โ WE UNDERSTAND YOUR INTENT. โ
โ WE SELECT THE BEST SKILL. โ
โ WE COMPOSE IF NEEDED. โ
โ WE RECOVER FROM FAILURES. โ
โ WE ALWAYS HAVE A PATH FORWARD. โ
โ โ
โ NO "I DON'T KNOW" - ALWAYS ROUTE. โ
โ NO DEAD ENDS - ALWAYS FALLBACK. โ
โ NO FAILURES - ALWAYS RECOVER. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ