bifrost: Skill for Claude Code

.claude/skills/live-store/SKILL.md

live-store is a skill for Claude Code from maximhq/bifrost. It costs 90 tokens per session (7,193 once invoked), scanned A, original, Apache-2.0.

A guide for storing configuration, runtime state, caches, and derived data in a Bifrost process's shared in-memory store. It covers registering data, loading it at startup, and updating it after writes.

In plain words
What is it for?
Use it when adding a configuration section, cache, runtime state, derived table, reload path, or configuration write handler. It helps choose the right in-memory structure and connect it to startup and updates.
Why use it?
It prevents components from keeping inconsistent copies of configuration or stale runtime state. It also makes the cost of reading data during a request explicit.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: 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 →

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/live-store/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 live-store

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/maximhq/bifrost/live-store"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/live-store.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,193 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.00090 $0.07193
Opus 5.5 $0.00036 $0.02877
Sonnet 5.5 $0.00018 $0.01439
Haiku 4.5 $0.00009 $0.00719

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

Security

Grade A, and why

live-store 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 3d 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/live-store/SKILL.md · 183 lines

How it starts

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

Live store

Everything a Bifrost process keeps in memory lives in framework/livestore: configuration loaded from the config store, runtime state keyed by those records, caches, and tables a component writes. Components keep only handles (connections, goroutines, locks, compiled programs) and per-request buffers. This skill turns the AGENTS.md rules into steps; read those first:

  • AGENTS.md "Data lives in the live store" and "Adding a config.json section"
  • AGENTS.md "Writes reach memory the same way for every entity"
  • AGENTS.md "Every change states its cost on the request flow" and the audit rule ("Audit changes")

Cite names, not line numbers: the examples below are function and file names on dev.

1. Pick the structure by what a miss means

Structure Holds A miss means Create with
Collection every row of one config-database kind, loaded at boot, refreshed after every write the row does not exist a Register call in registerCollections (framework/livestore/registry.go)
Cache only what was asked for, fetched by a loader go fetch live.NewCache
Table what this process writes itself, no loader nothing was written yet live.NewTable (KeyedBy(kind) for state per entity)
View state derived from collections that several packages read the derived value is empty (a provider with no keys has no ProviderKeyLists entry, so Get returns nil, false) a table in Store.Views, rebuilt by a subscriber

Where each lives:

  • Store.Collections holds config-store collections only. No convenience methods on it that merge records or hide state.
  • Store.Views holds global derived tables, created in livestore.New and rebuilt by a collection subscriber once per publish (ProviderKeyLists, rebuilt by rebuildProviderKeyLists).
  • A table only one component uses stays with that component (WSTicketStore in handlers/ws_ticket.go; the routing rules Store in plugins/routing/rules/store.go, which keeps compiled programs in a state table marked HoldsHandles).
  • In-flight working state may stay in a map: state for one request, stream or run, keyed by its request, stream or job ID and removed when that ends (stream accumulators, pending log entries, traces being built, running jobs). It still needs an inflight entry in tests/rawmaps/allowlist.txt with its reason, and every path that ends the request, stream or run, errors and cancellation included, must remove it. Anything that outlives the request (a cache, configuration, state the next request reuses) is not in-flight and belongs in the live store.
  • TestRepositoryKeepsDataInTheLiveStore (section 8) fails on the shapes AGENTS.md lists: a sync.Map field or package-level sync.Map, a map on a struct with a mutex, maps behind an atomic pointer, and a package-level map a function writes. It does not see every raw map (an unguarded map field, for one), so a passing lint does not prove a component keeps none.

Read the full file on GitHub · 183 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. 3d ago Changed · +8 lines bb5f127ccc75
  2. 5d ago First seen · 175 lines · 90 tokens per session scan A 1c109c7be1fb

Subscribe to this mod's changes

live-store is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 7,193 once invoked, about $0.0004 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

live-store compared with skills from other repositories

live-store next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
live-storemaximhq/bifrostSkill10ktodayApache-2.0A90Claude Code
omni-inferencediegosouzapw/OmniRouteSkill91k3d agoMITA47Claude Code, Codex
omni-providersdiegosouzapw/OmniRouteSkill91k3d agoMITA45Claude Code, Codex
omni-authdiegosouzapw/OmniRouteSkill91k3d agoMITA36Claude Code, Codex
omni-combos-routingdiegosouzapw/OmniRouteSkill91k3d agoMITA44Claude Code, Codex
omni-api-keysdiegosouzapw/OmniRouteSkill91k3d agoMITA40Claude Code, Codex
omni-mcpdiegosouzapw/OmniRouteSkill91k3d agoMITA48Claude Code, Codex