Borrowing it
Nothing to install: this file belongs to rsalmn/ExtremeRouter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rsalmn/ExtremeRouter/main/.agents/skills/extreme-router-gateway-engine/SKILL.mdgit clone --depth 1 https://github.com/rsalmn/ExtremeRouterWrote 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.
[](https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-gateway-engine)<a href="https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-gateway-engine"><img src="https://agentmods.dev/badge/skills/rsalmn/extremerouter/extreme-router-gateway-engine/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.
<a href="https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-gateway-engine"><img src="https://agentmods.dev/badge/skills/rsalmn/extremerouter/extreme-router-gateway-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.02318 |
| Opus 5 | $0.00041 | $0.01159 |
| Sonnet 5 | $0.00016 | $0.00464 |
| Haiku 4.5 | $0.00008 | $0.00232 |
Grade A, and why
extreme-router-gateway-engine 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 336 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Gateway Engine Expertise
You are an expert in AI Gateway architecture, provider routing, and API compatibility.
Core Concepts
Request Flow
Client Request → /v1/* endpoint
→ Route handler (src/app/api/v1/*)
→ Chat handler (src/sse/handlers/chat.js)
→ Core orchestrator (open-sse/handlers/chatCore.js)
→ Provider executor (open-sse/executors/*)
→ Upstream provider API
→ Response translation (open-sse/translator/*)
→ Client response (SSE stream or JSON)
Key Components
1. Route Handlers (src/app/api/v1/*)
- Receive client requests
- Validate API keys
- Delegate to chat handler
- Handle errors
2. Chat Handler (src/sse/handlers/chat.js)
- Parse request body
- Resolve model/combo
- Select provider account
- Call core orchestrator
- Handle combo/fusion routing
3. Core Orchestrator (open-sse/handlers/chatCore.js)
- Detect source format (OpenAI/Claude/Gemini/etc)
- Translate request to target format
- Select executor
- Execute request with retry/refresh
- Translate response back to client format
- Stream response to client
- Track usage
4. Provider Executors (open-sse/executors/*)
- Build provider-specific headers
- Construct provider-specific URLs
- Handle provider-specific auth (OAuth, API key, device code)
- Parse provider-specific responses
- Handle provider-specific errors
5. Format Translators (open-sse/translator/*)
- Convert between API formats
- Request translators:
openai-to-*,claude-to-*, etc - Response translators:
*-to-openai, etc - Concerns: shared translation logic (tool calls, usage, reasoning, etc)
Provider Management
Adding a New Provider
-
Create executor (
open-sse/executors/[provider].js)- Extend
BaseExecutor - Implement
buildHeaders(credentials, stream) - Implement
buildUrl(model, stream, urlIndex, credentials) - Implement
execute(request, credentials, options) - Handle provider-specific auth refresh
- Extend
-
Register provider (
open-sse/config/providers.js)- Add provider config (baseUrl, headers, capabilities)
- Define supported models
- Set auth type (oauth/api_key/device_code)
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.
- 11d ago First seen · 336 lines · 81 tokens per session scan A 14d73d4efdb3
extreme-router-gateway-engine is a skill published in the GitHub repository rsalmn/ExtremeRouter (34 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 2,318 once invoked, about $0.0004 per session on Opus 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-08-30.
Other skills, from other repositories
api-designer
Design RESTful and RPC APIs — OpenAPI specs, request/response schemas, error codes, versioning, and documentation.
claude-api
Build apps with the Anthropic Claude API — chat completions, tool use, streaming, vision, and multi-turn conversations.
discord-bot
Create Discord bots — slash commands, embeds, voice, roles, threads, and Discord.js/Pycord implementations.
feature-engineer
Design and create ML features — encoding, scaling, interaction terms, embeddings, and feature selection.
gcp-architect
Design Google Cloud architectures — GKE, Cloud Run, BigQuery, Pub/Sub, and Cloud Spanner solutions.
github-integration
Integrate with GitHub — Actions, Apps, webhooks, Octokit, and repository automation workflows.