Registry / benchflow-ai

benchflow-ai/skillsbench/prefix-cache-replay

Replay an LLM inference request trace (Mooncake / vLLM / SGLang hash_ids format) against a block-level KV prefix cache and compute hit statistics. Use when given a request trace plus cache configuration and asked for hit rate, hit tokens, or final cache contents. Covers the longest-contiguous-prefix semantics that distinguishes KV prefix caching from full-prompt prompt caching, the policy-specific residency and eviction rules (LRU, LFU, S3FIFO), and the partial-last-block accounting rule.

Agent skill · version 0.0.0-main.1794330939.gf860ecf · from benchflow-ai/skillsbench

Install

npx yarkr-cli add skill:benchflow-ai/skillsbench/prefix-cache-replay

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/prefix-cache-replay
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/prefix-cache-replay

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:benchflow-ai/skillsbench/prefix-cache-replay

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.