Source profileQuality 95/100

davepoon/buildwithclaude/plugins/all-skills/skills/routerbase-model-gateway/SKILL.md

routerbase-model-gateway

Integrate and route AI model requests through RouterBase. Use when migrating OpenAI-compatible clients, choosing model IDs, configuring fallbacks, or building chat, image, video, audio, speech, and embedding workflows.

Source repository stars
3,359
Declared platforms
0
Static risk flags
1
Last source update
2026-08-24
Source checked
2026-08-26

Decision brief

What it does: where it fits

Use routerbase as an OpenAI-compatible model gateway for chat, image, video, audio, speech, and embedding workloads. This skill helps agents migrate existing SDK clients, keep credentials private, choose model IDs, and document safe fallback behavior.

Best for

  • The user wants to migrate an OpenAI SDK or OpenAI-compatible integration to RouterBase.
  • The user needs a model routing plan across cost, latency, quality, context length, streaming, tool calling, JSON mode, or vision requirements.
  • The user is adding chat, image, video, audio, speech, or embedding calls to an application.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/davepoon/buildwithclaude --skill "plugins/all-skills/skills/routerbase-model-gateway"
Safe inspection promptEditorial

Inspect the Agent Skill "routerbase-model-gateway" from https://github.com/davepoon/buildwithclaude/blob/ebd20fe1d82fa74e9a2f94abfeff88090f6c758c/plugins/all-skills/skills/routerbase-model-gateway/SKILL.md at commit ebd20fe1d82fa74e9a2f94abfeff88090f6c758c. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    How to Use

    Review the “How to Use” section in the pinned source before continuing.

    Review and apply the “How to Use” source section.
  2. 02

    Basic Usage

    Review the “Basic Usage” section in the pinned source before continuing.

    Review and apply the “Basic Usage” source section.
  3. 03

    When to Use This Skill

    The user wants to migrate an OpenAI SDK or OpenAI-compatible integration to RouterBase.

    The user wants to migrate an OpenAI SDK or OpenAI-compatible integration to RouterBase.The user needs a model routing plan across cost, latency, quality, context length, streaming, tool calling, JSON mode, or vision requirements.The user is adding chat, image, video, audio, speech, or embedding calls to an application.
  4. 04

    What This Skill Does

    1. Detects the target stack and where the AI provider client should live. 2. Configures the base URL as https://routerbase.com/v1. 3. Uses ROUTERBASEAPIKEY as a server-side secret. 4. Preserves OpenAI-compatible request shapes unless a selected model requires a specific option.…

    Detects the target stack and where the AI provider client should live.Configures the base URL as https://routerbase.com/v1.Uses ROUTERBASEAPIKEY as a server-side secret.
  5. 05

    Integration Pattern

    Prefer the user's existing OpenAI-compatible SDK. Change the base URL, store the API key in environment configuration, and keep request payloads standard.

    Prefer the user's existing OpenAI-compatible SDK. Change the base URL, store the API key in environment configuration, and keep request payloads standard.

Permission review

Static risk signals and limitations

Network access

medium · line 47

The documentation includes network, browsing, or remote request actions.

baseURL: process.env.ROUTERBASE_BASE_URL || "https://routerbase.com/v1",

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score95/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars3,359SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
davepoon/buildwithclaude
Skill path
plugins/all-skills/skills/routerbase-model-gateway/SKILL.md
Commit
ebd20fe1d82fa74e9a2f94abfeff88090f6c758c
License
MIT
Collected
2026-08-26
Default branch
main
View the original SKILL.md

RouterBase Model Gateway

Use routerbase as an OpenAI-compatible model gateway for chat, image, video, audio, speech, and embedding workloads. This skill helps agents migrate existing SDK clients, keep credentials private, choose model IDs, and document safe fallback behavior.

When to Use This Skill

  • The user wants to migrate an OpenAI SDK or OpenAI-compatible integration to RouterBase.
  • The user needs a model routing plan across cost, latency, quality, context length, streaming, tool calling, JSON mode, or vision requirements.
  • The user is adding chat, image, video, audio, speech, or embedding calls to an application.
  • The user is debugging RouterBase auth, endpoint, model ID, streaming, media, or payload issues.
  • The user needs documentation or a smoke-test checklist for a RouterBase integration.

What This Skill Does

  1. Detects the target stack and where the AI provider client should live.
  2. Configures the base URL as https://routerbase.com/v1.
  3. Uses ROUTERBASE_API_KEY as a server-side secret.
  4. Preserves OpenAI-compatible request shapes unless a selected model requires a specific option.
  5. Produces a primary and fallback model plan with validation steps.
  6. Separates synchronous chat/image flows from asynchronous video or audio jobs.

How to Use

Basic Usage

Use routerbase-model-gateway to migrate this OpenAI chat integration to RouterBase.
Use routerbase-model-gateway to design a fallback model plan for low-latency support chat.
Use routerbase-model-gateway to add image and video generation with safe polling and storage.

Integration Pattern

Prefer the user's existing OpenAI-compatible SDK. Change the base URL, store the API key in environment configuration, and keep request payloads standard.

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.ROUTERBASE_API_KEY,
  baseURL: process.env.ROUTERBASE_BASE_URL || "https://routerbase.com/v1",
});

const response = await client.chat.completions.create({
  model: "google/gemini-2.5-flash",
  messages: [{ role: "user", content: "Write one sentence about model routing." }],
});

Routing Plan Format

When recommending models, return a table like this:

| Use case | Primary model | Fallback model | Reason | Validation |
| --- | --- | --- | --- | --- |
| Support chat | model-id | model-id | Low latency and tool support | Run fixture prompts and compare output shape |

Treat model IDs, pricing, and availability as live data. If a live catalog check is not possible, mark examples clearly and tell the user what must be verified before production.

Debug Checklist

  • Authentication: missing ROUTERBASE_API_KEY, wrong environment, or server-side secret not loaded.
  • Endpoint: missing /v1, wrong media endpoint, or client still pointing at another provider.
  • Model ID: unavailable, misspelled, disabled for the account, or unsupported for the requested modality.
  • Request shape: unsupported field, invalid content part, invalid tool schema, or model-specific parameter mismatch.
  • Streaming: client does not consume Server-Sent Events or SDK chunks correctly.
  • JSON mode: missing response_format or no downstream schema validation.
  • Async media: task ID not persisted, polling has no timeout, or generated media is not stored before temporary URLs expire.

Guardrails

  • Never paste, infer, print, or log real API keys.
  • Never put RouterBase keys in browser code, mobile apps, screenshots, or public repositories.
  • Do not retry authentication, invalid model, validation, or policy errors blindly.
  • Do not claim example model IDs, pricing, or availability are permanent facts.
  • Validate model-specific support for streaming, tool calling, JSON mode, vision, context length, media size, and async behavior.
  • Require human review for high-impact medical, legal, financial, safety, security, or compliance use cases.

Output

Return:

  1. The target endpoint or base URL.
  2. Required environment variables.
  3. Files to change or create.
  4. A minimal request example.
  5. A model routing table.
  6. Fallback and retry behavior.
  7. Validation or smoke-test steps.
  8. Remaining assumptions that must be checked against live RouterBase docs or account access.

Frequently asked questions

What to verify before installation and use

What does the routerbase-model-gateway source document cover?

Use routerbase as an OpenAI-compatible model gateway for chat, image, video, audio, speech, and embedding workloads. This skill helps agents migrate existing SDK clients, keep credentials private, choose model IDs, and document safe fallback behavior.

How do I install routerbase-model-gateway?

The source record exposes this install command: npx skills add https://github.com/davepoon/buildwithclaude --skill "plugins/all-skills/skills/routerbase-model-gateway". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged network in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 10045,643

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10029,095

garrytan/gbrain

bulk-ingestion

End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

Computed 10024,975

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 1005,248

dotnet/skills

migrate-vstest-to-mtp

Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing