本文へ移動
cccskills
無料GitHub で公開

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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.5 KB

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Automate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

Analytics your AI agent can actually use. Track, analyze, run A/B experiments, and optimize across all your projects via CLI. Includes a growth playbook so your agent knows HOW to grow, not just what to track.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

Teaches when to recall from long-term memory before acting and when to save durable decisions, corrections and failures afterwards. Use when a memory tool or MCP memory server is connected but the agent is not using it consistently, when the user complains that the assistant forgets preferences, conventions or past decisions between sessions, or when setting up persistent memory for a project. Works with any memory backend: a folder of Markdown files, a local MCP server, or a managed service.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

Audit local AI coding-agent sessions with agenttrace for cost, tokens, tool failures, latency, anomalies, health, diffs, and CI gates.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

Audit whether a website can be found, crawled, and cited by AI answer engines such as ChatGPT Search, Perplexity, Google AI Overviews, and Microsoft Copilot. Use when someone asks why their brand is missing from AI answers, whether AI crawlers can read their site, how to get cited by ChatGPT or Perplexity, or asks for a GEO or AEO (generative / answer engine optimization) review. Produces a citation baseline across buyer-intent prompts, a crawler-access check, a citability review of named pages, and a ranked fix list. Not for keyword rank tracking, paid search, or pages behind a login.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

Automate Airtable tasks via Rube MCP (Composio): records, bases, tables, fields, views. Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

davepoon/buildwithclaude3,6292026年10月12日 更新

davepoon のスキルをすべて見る

このスキルの問題を報告する