bifrost: Skill for Claude Code

.claude/skills/semantic-cache-wiring/SKILL.md

semantic-cache-wiring is a skill for Claude Code from maximhq/bifrost. It costs 150 tokens per session (5,192 once invoked), scanned A, original, Apache-2.0.

An end-to-end test suite for Bifrost semantic caching, which reuses a previous response when a new request has a similar meaning. It checks cache writes, hits, misses, headers, identity scope, clearing, and supported storage backends.

In plain words
What is it for?
Use it when changing the semantic-cache plugin, its configuration, request or response headers, cache clearing, hit replay, or Redis and Weaviate integration. It provides offline checks and commands for live provider tests.
Why use it?
It catches changes that make cached responses incorrect, invisible, incorrectly scoped, or inconsistent across cache modes and storage systems.

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 transports/bifrost-http && go test ./lib/... ./handlers/... -run '<TestName>').

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/semantic-cache-wiring/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 semantic-cache-wiring

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/maximhq/bifrost/semantic-cache-wiring"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/semantic-cache-wiring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,192 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.00150 $0.05192
Opus 5.5 $0.00060 $0.02077
Sonnet 5.5 $0.00030 $0.01038
Haiku 4.5 $0.00015 $0.00519

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

Security

Grade A, and why

semantic-cache-wiring 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/semantic-cache-wiring/SKILL.md · 152 lines

How it starts

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

Semantic cache wiring suite

Every end-to-end semantic cache case lives in the semantic cache wiring suite: tests/e2e/api/runners/build-semantic-cache-wiring.mjs generates tests/e2e/api/collections/bifrost-semantic-cache-wiring.postman_collection.json, which is committed. Edit the generator, regenerate, and commit both; never hand-edit the JSON. The generator embeds the assertion library (tests/e2e/api/runners/lib/semantic-cache-wiring.mjs) in the collection as scw_lib, so a library change needs a regenerate too. tests/e2e/api/runners/individual/run-newman-semantic-cache-wiring-tests.sh boots one clean Bifrost per vector store (Redis and Weaviate, concurrently by default) on its own SQLite config and logs stores, and runs the collection against each; CI runs it from .github/workflows/scripts/test-api-integrations.sh. The run is live and paid (OpenAI, Anthropic, Gemini, Cohere, OpenRouter and Bedrock): run the offline checks in section 5 yourself and hand the live commands to the user.

Read AGENTS.md "Every semantic cache change ships with semantic cache wiring cases" first. Cite names, not line numbers: the helpers below are names in the generator and in tests/e2e/api/runners/lib/semantic-cache-wiring.mjs on dev.

1. What goes where

What changed Test it in
Semantic cache behaviour a client can observe: whether a request is written, hits or misses, what a hit replays, cache_debug, the x-bifrost-cache-* headers, the plugin and cache admin API, the cache fields on log rows this suite, plus Go unit tests
A function's logic, a race, an error path no request can reach Go unit tests beside the code: plugins/semanticcache/*_test.go, written against its fake stores (such as vectorRequiringStore and panickingAddStore in plugin_paths_test.go) so they run with no key and no store (section 5); transports/bifrost-http/lib/semantic_cache_config_test.go, transports/bifrost-http/handlers/cache_test.go and plugins_test.go
A vector store's own behaviour (search, scores, filters, delete, namespaces, dimensions) framework/vectorstore/<store>_test.go against tests/docker-compose.yml (AGENTS.md gotcha 19), plus this suite on Redis and Weaviate
The suite's assertion library tests/e2e/api/runners/lib/semantic-cache-wiring.test.mjs
The dashboard's caching settings Playwright (tests/e2e/features/config/config-caching.spec.ts)
How a provider converts a request or response the cache does not answer the provider harness (.claude/skills/harness-test-writer/SKILL.md)

Read the full file on GitHub · 152 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 · 152 lines · 150 tokens per session scan A 36f7fa302374

Subscribe to this mod's changes

semantic-cache-wiring is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 150 tokens to every session and 5,192 once invoked, about $0.0006 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

semantic-cache-wiring compared with skills from other repositories

semantic-cache-wiring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
semantic-cache-wiringmaximhq/bifrostSkill10ktodayApache-2.0A150Claude 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