bifrost: Skill for Claude Code

.claude/skills/routing-harness/SKILL.md

routing-harness is a skill for Claude Code from maximhq/bifrost. It costs 135 tokens per session (5,616 once invoked), scanned A, original, Apache-2.0.

An end-to-end test harness for request routing in Bifrost, an API gateway that chooses providers, models, and keys for requests. It generates test collections that check routing decisions, fallbacks, aliases, logs, and routing details.

In plain words
What is it for?
Use it when changing routing rules, model aliases, key selection, retries, fallbacks, provider configuration, or related catalog behavior. It helps run local checks and identify the commands for live provider tests.
Why use it?
It prevents routing changes from silently sending requests to the wrong provider or key. It also keeps generated test files consistent instead of relying on hand-edited JSON.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions AGENTS.md.

This is maximhq/bifrost's own configuration. It tells Claude Code how to work on bifrost itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bifrost configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is (cd framework && go test ./modelcatalog/... ./routing/...).

About the project

Bifrost is an AI gateway that gives applications one OpenAI-compatible API for accessing models from more than 23 providers. It is used to route model requests, handle provider failover and load balancing, and apply features such as caching, guardrails, and MCP gateway support.

maximhq/bifrost · 10,145 stars · on GitHub · getmaxim.ai

Reuse

Borrowing it

Nothing to install: this file belongs to maximhq/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/maximhq/bifrost/dev/.claude/skills/routing-harness/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/maximhq/bifrost

Made for: Claude Code.

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 routing-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/maximhq/bifrost/routing-harness/github.svg)](https://agentmods.dev/skills/maximhq/bifrost/routing-harness)
Your own site
<a href="https://agentmods.dev/skills/maximhq/bifrost/routing-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/routing-harness/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 routing-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/maximhq/bifrost/routing-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/routing-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,616 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.00135 $0.05616
Opus 5.5 $0.00054 $0.02246
Sonnet 5.5 $0.00027 $0.01123
Haiku 4.5 $0.00014 $0.00562

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

Security

Grade A, and why

routing-harness 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 5d 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.

.claude/skills/routing-harness/SKILL.md · 181 lines

How it starts

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

Routing harness

Every end-to-end routing case lives in the routing harness, two generated suites:

  • tests/e2e/api/runners/build-routing-wiring.mjs generates tests/e2e/api/collections/bifrost-routing-wiring.postman_collection.json: which provider, model and key a request is routed to, the refusal when it cannot be, its fallbacks, routing_info, and the stored log and routing trail.
  • tests/e2e/api/runners/build-model-catalog-wiring.mjs generates tests/e2e/api/collections/bifrost-model-catalog-wiring.postman_collection.json: provider and key changes reaching the catalog read endpoints, and aliases resolving at inference.

Both collections are committed. Edit the generator, regenerate, and commit both; never hand-edit the JSON. Each runner in tests/e2e/api/runners/individual/ boots a clean Bifrost (no providers, SQLite config and logs stores) with --binary and runs its collection; CI runs both from .github/workflows/scripts/test-api-integrations.sh. The runs are live and paid (OpenAI, Anthropic, Gemini, Azure, Bedrock and Vertex through env.<NAME> keys): run the free checks in section 5 yourself and hand the live commands to the user.

Read AGENTS.md "Every routing change ships with routing harness cases" first. Cite names, not line numbers: the helpers below are names in the two generators and in tests/e2e/api/runners/lib/collection-builder.mjs on dev.

1. What goes where

What changed Test it in
Routing a client can observe: the provider, model and key that serve a request, the refusal, fallbacks, routing_info, the routing headers, the log row and routing_engine_logs build-routing-wiring.mjs, plus Go unit tests
Provider and key changes reaching /api/models, /api/models/details and the base model list; aliases resolving at inference build-model-catalog-wiring.mjs, plus Go unit tests
A function's logic, a race, an error path no request can reach Go unit tests beside the code: plugins/routing (rules, model routers, the complexity classifiers and suggestions), framework/routing, framework/modelcatalog, plugins/modelcatalogresolver, plugins/governance, core/keyselectors, core/sessionaffinity_test.go and the key selection and fallback tests in core
How well the complexity suggestions route a labelled corpus tests/cmd/complexitysuggesteval (offline scoring, not a regression gate)
The routing rules, model router, complexity router and model catalog pages Playwright (tests/e2e/features/routing-rules/, model-routers/, complexity-router/, model-catalog/)
How a provider converts the request it was routed to or the response it returns the provider harness (.claude/skills/harness-test-writer/SKILL.md)

Read the full file on GitHub · 181 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. 5d ago First seen · 181 lines · 135 tokens per session scan A 57c6e27eed01

Subscribe to this mod's changes

routing-harness is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 135 tokens to every session and 5,616 once invoked, about $0.0005 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-27.

Related

routing-harness compared with skills from other repositories

routing-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
routing-harnessmaximhq/bifrostSkill10ktodayApache-2.0A135Claude Code
Browser Agent QA TestingPramodDutta/qaskillsSkill25329d agoMITA33Claude Code, Codex
unrelated-toolsunrelated-ai/mcp-gatewaySkill27yesterdayMITA64Codex
unified-ai-gatewayhappy520ai/unified-ai-systemSkill104d agoApache-2.0A35Codex
test-sweepsrnichols/plan-forgeSkill628d agoMITA38Claude Code
audit-loopsrnichols/plan-forgeSkill628d agoMITA100Claude Code
verifystudioKjm/ai-harness-templateSkill461mo agoMITA79Claude Code