vanara-route
/vanara-route
Given a task, find the best-fit installed Vanara agent and run it. Reads the installed agent roster, scores each by how well its stated purpose matches the task, delegates to the strongest match, and — when nothing fits — records the gap so you can request the missing agent. Use when you are not sure which specialist should handle a job, or you want the toolkit to pick for you.
- Author
- vanara-agents ↗
- Repository
- skills ↗
- Licence
- Apache-2.0
- Last repository change
- 17.08.2026
Assessment and security
- Files in this package
- 8
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 17.08.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/log-gap.mjs, scripts/roster.mjs
What it does and when to use it
Given a task, find the best-fit installed Vanara agent and run it. Reads the installed agent roster, scores each by how well its stated purpose matches the task, delegates to the strongest match, and — when nothing fits — records the gap so you can request the missing agent. Use when you are not sure which specialist should handle a job, or you want the toolkit to pick for you.
Original author description
Given a task, find the best-fit installed Vanara agent and run it. Reads the installed agent roster, scores each by how well its stated purpose matches the task, delegates to the strongest match, and — when nothing fits — records the gap so you can request the missing agent. Use when you are not sure which specialist should handle a job, or you want the toolkit to pick for you.
How it works
- When to use
- The routing procedure
- Recording a gap (when nothing fits)
- Edge cases and failure modes
- Example
- Worked micro-example
SKILL.md preview
---
name: vanara-route
description: Given a task, find the best-fit installed Vanara agent and run it. Reads the installed agent roster, scores each by how well its stated purpose matches the task, delegates to the strongest match, and — when nothing fits — records the gap so you can request the missing agent. Use when you are not sure which specialist should handle a job, or you want the toolkit to pick for you.
type: skill
version: 1.0.1
updated: 2026-07-27
---
# vanara-route — the dispatcher
You are routing a task to the **best-capable installed agent**, then handing off to it.
Claude Code already auto-selects agents from their descriptions; this skill adds two things
on top: an *explicit* "pick the strongest specialist for this exact task" step you can invoke
on demand, and a **gap-capture** path for when the toolkit has nothing that fits.
## When to use
- The user asks "which agent should handle X?" or "use the right agent for this."
- A task spans several specialties and you want the single best owner (or a short list).
- You suspect no installed agent covers the task and want that recorded, not silently dropped.
## The routing procedure
1. **Enumerate the roster.** Run `node .claude/skills/vanara-route/scripts/roster.mjs` (or read
`.claude/agents/*.md` directly) to list every installed agent with its `name` and
`description` — the path is from your project root, where Claude Code runs. The description
is the agent's own statement of when it should be used — treat it as the primary signal.
2. **Score each candidate against the task.** For every agent, judge fit on:
- **Domain match** — does the task fall in this agent's stated domain? (a Terraform change
→ `iac-author`; a failing test → `test-author`; a slow query → `database-administrator`).
- **Verb match** — does the agent *do* what the task needs (review vs. write vs. audit vs.
plan)? A read-only reviewer is the wrong pick for "implement".
- **Proactivity cues** — descriptions that say "Use PROACTIVELY when …" are strong matches
for exactly those triggers.
Assign each a confidence: **strong / partial / none**.
3. **Act on the best match.**
- **One strong match** → delegate the task to that agent (invoke it via the Task tool) and
return its result. Say which agent you chose and why in one line.
- **Several strong matches** (e.g. review + security on the same diff) → run them in the
order the work implies, or present the short list and let the user pick.
- **Only partial matches** → name the closest agent, state plainly that it is an approximate
fit, and ask before running it.
- **No match** → do **not** improvise a fake specialist. Record the gap (next section).
4. **Never fabricate a specialist.** If the roster has no agent for the job, routing has
failed on purpose — that failure is a signal, not something to paper over.
## Recording a gap (when nothing fits)
When no installed agent covers the task, append one line to the local gap log so it is not
lost. Do this with the helper (it is append-only and creates the file if needed):
```bash
node .claude/skills/vanara-route/scripts/log-gap.mjs "one-line capability that was missing"
```
This writes to `~/.vanara/gaps.jsonl` **on the user's machine only** — nothing is sent
anywhere. Then tell the user, in one sentence, that they can submit the request with
`vanara request` (which prepares an email to the Vanara team; the user sends it, or not).
See [references/gap-reporting.md](references/gap-reporting.md) for the privacy model.
## Edge cases and failure modes
- **Empty roster** (nothing installed yet): tell the user to `npx vanara install <name>` or
`vanara list` first; there is nothing to route to.
- **Over-eager matching:** a vaguely-related description is a *partial* match, not a strong
one. Prefer asking over running the wrong specialist on a real task.
- **Ambiguous verbs:** "fix the auth bug" implies reproduce → test → patch → review, which is
an *orchestration* job — prefer an orchestrator pack if one is installed over a single agent.
- **Secrets:** never write task contents, code, credentials, or customer data into the gap
log — only a short, generic description of the missing capability.
- **Do not loop:** route once. If the chosen agent itself can't finish, report that back to
the user rather than re-routing endlessly.
## Example
> **Task:** "our Terraform plan keeps showing drift on the prod VPC — figure out why."
>
> Roster scan → `iac-author` (writes/refactors IaC) is a *partial* verb match (this is
> diagnosis, not authoring); no dedicated drift-diagnosis agent exists. Route names
> `iac-author` as the closest fit, flags it as approximate, and logs the gap
> *"Terraform drift diagnosis / state reconciliation"* so it can be requested.
See [references/matching-heuristics.md](references/matching-heuristics.md) for the full scoring
rubric and worked examples.
## Worked micro-example
```text
$ task: "our checkout p99 doubled since Tuesday"
ROUTE SCORING (installed items):
debugger 0.86 ← symptom is a regression, not a design ask
perf-optimizer 0.79 (would optimize; can't explain "since Tuesday")
sql-index-tuning 0.61 (plausible cause, wrong entry point)
incident-responder 0.44 (no user-facing outage declared)
DECISION: debugger — a dated regression wants hypothesis-driven bisection
first; perf work without the culprit is guessing with a profiler.
HANDOFF: debugger gets the task + the "since Tuesday" anchor + last deploys.
```
Routing is a ranked decision with reasons, and the runner-up matters: if
debugger's bisection lands in a query plan, sql-index-tuning is next, and the
route log already says why.
Files in this package (8)
- SKILL.md 6 KB
- examples/no-match-gap.md 1 KB
- examples/route-session.md 1 KB
- references/gap-reporting.md 1 KB
- references/matching-heuristics.md 2 KB
- references/scoring.md 1 KB
- scripts/log-gap.mjs 2 KB
- scripts/roster.mjs 3 KB
Versions
The database has no other skills named vanara-route.
Database snapshot: 13.11.2026 · package version 5ec7985c90f9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 95skill-finder
Use when a task might fit an installed skill and you do not know which, before a long or delegated run (subgoal, a subagent, a fresh session), or when asked "which skill can do this", "what skills do I have for X", or to switch some skills on for one run. Searches every skill on… - 100vanara-orchestrate
Run a goal end-to-end as a gated pipeline of specialist agents — reproduce → test → patch → review → commit — where nothing advances past a gate until its exit condition holds and the required agent has signed off. Use when a task needs several agents in sequence with… - 100helm
Routes a coding task to the best AI agent installed on this machine. Probes which agent CLIs are installed AND logged in - Claude Code, Codex, Cursor Agent, Gemini CLI, Aider, OpenCode, GitHub Copilot, Amp, Droid, Crush, Goose, Qwen Code, Ollama and local models - reads… - 100vault-router
Entry point for the skill-vault collection. Use FIRST whenever a user makes a task request and any skill-vault skills are installed: read the request, analyze what the actual task and deliverable are, then route to the one matching vault skill and follow it. Also use when the… - 100apex-route
Reach ANY tonone specialist on demand, even ones not installed in this session's roster — no restart needed. Use when asked "which agent handles this", "reach a specialist we didn't install", "route this to the right agent", or whenever a scoped apex-profile roster is missing… - 100research-for-skills
Use when a skill gap is identified during task planning, when the user asks to create or improve a skill, or when forge detects no matching skill for a domain.