vllm-sr-diagnose-routing

vllm-sr-diagnose-routing is a skill for Claude Code, Codex from vllm-project/semantic-router. It costs 54 tokens per session (1,402 once invoked), scanned A, original, Apache-2.0.

A read-only troubleshooting workflow for a vLLM Semantic Router request. The router is a service that selects an AI model or route for each request, and the workflow uses route previews, probes, traces, headers, and runtime evidence to explain what happened.

In plain words
What is it for?
Use it to investigate the selected recipe, decision, backend, fallback, or failure for a specific request while preserving the active configuration and relevant evidence.
Why use it?
It separates routing-policy problems from unavailable models, failed backends, and delivery errors. It also keeps the investigation tied to a bounded reproduction instead of guesses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate the selected recipe, decision, backend, fallback, or failure for a specific request while preserving the active configuration and relevant evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vllm-project/semantic-router/vllm-sr-diagnose-routing
About the project

vLLM Semantic Router is a programmable routing layer that chooses or combines language models for each request in a system using multiple models and types of computing infrastructure. It helps teams route inference by signals such as user preferences, application policies, quality, cost, latency, privacy, and safety requirements. The catalogue skills and instructions support configuring and operating this model-routing system.

vllm-project/semantic-router · 6,583 stars · on GitHub · vllm-sr.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vllm-project/semantic-router --skill vllm-sr-diagnose-routing
Clone the repo
git clone --depth 1 https://github.com/vllm-project/semantic-router

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vllm-sr-diagnose-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing/github.svg)](https://agentmods.dev/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing)
Your own site
<a href="https://agentmods.dev/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing"><img src="https://agentmods.dev/badge/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vllm-sr-diagnose-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing"><img src="https://agentmods.dev/badge/skills/vllm-project/semantic-router/vllm-sr-diagnose-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01402
Opus 5.5 $0.00022 $0.00561
Sonnet 5.5 $0.00011 $0.00280
Haiku 4.5 $0.00005 $0.00140

Measured 6d ago against content hash 3ea3eab215c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vllm-sr-diagnose-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/agent/skills/vllm-sr-diagnose-routing/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose a Router request

Start from the request's public entrypoint, expected outcome and observed symptom. Use the active configuration and a bounded reproduction. Keep the diagnosis read-only; a suggested rule or backend fix is a separate reviewed change. The route verification procedure defines the current CLI and header contract, and the troubleshooting table maps known symptoms to specific checks.

1. Pin the request and active state

Record the request format, public model name, relevant messages/tools or a safe digest, expected recipe/decision/model, gateway mode, and management and inference origins. GET /v1/models shows published entrypoints; a concrete provider model bypasses recipe routing. Read vllm-sr status, active config_version/hash, and model-runtime inventory. Process health does not prove a signal answered or an upstream generated a response.

Use a sanitized request file when history, tools, modalities or response constraints matter. Preserve the failed request; do not simplify it until the failure disappears and then present the simpler case as equivalent. Keep credentials and private endpoints out of reports.

2. Preview selection

Run the same request through the management endpoint, asking for evaluation evidence without sending it to an answer-model backend:

vllm-sr route preview --endpoint "$ROUTER_ORIGIN" --model "$ENTRYPOINT" \
  --request-file request.json --trace --json > preview.json

Read selection_status, routing_decision, selected_model, signal_errors and eval_trace. Map each evaluated signal to its answer, predicate or unknown/error state; then follow decision priority, rule on_unknown, algorithm, fallback and recipe-scoped plugin bindings. A matched decision can still report execution_required when execution selects the final model. Preview cannot prove upstream delivery, tool execution, answer quality or a successful response guard.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 109 lines · 54 tokens per session scan A 3ea3eab215c7

Subscribe to this mod's changes

vllm-sr-diagnose-routing is a skill published in the GitHub repository vllm-project/semantic-router (6,583 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 1,402 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

vllm-sr-diagnose-routing compared with skills from other repositories

vllm-sr-diagnose-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vllm-sr-diagnose-routingvllm-project/semantic-routerSkill6.6ktodayApache-2.0A54Claude Code, Codex
inference-precision-tensor-dump-compareascend-ai-coding/awesome-ascend-skillsSkill187yesterdaynoneA87Claude Code
omni-compressiondiegosouzapw/OmniRouteSkill91kyesterdayMITA42Claude Code, Codex
cli-evaldiegosouzapw/OmniRouteSkill91kyesterdayMITA34Claude Code, Codex
cli-batchesdiegosouzapw/OmniRouteSkill91kyesterdayMITA34Claude Code, Codex
cli-compressiondiegosouzapw/OmniRouteSkill91kyesterdayMITA34Claude Code, Codex
9router-sttdecolua/9routerSkill33k7d agoMITA63Claude Code, Codex