Mooncake: Skill for Claude Code

.claude/skills/mooncake-api/SKILL.md

mooncake-api is a skill for Claude Code from kvcache-ai/Mooncake. It costs 122 tokens per session (4,106 once invoked), scanned A, original, Apache-2.0.

Development guidance for Mooncake’s Python APIs, which support shared storage and high-speed data transfer for machine-learning systems. It covers a distributed key-value cache, tensor storage, network transfers, service setup, replication, and integrations with model-serving tools.

In plain words
What is it for?
Use it to configure Mooncake services, store PyTorch tensors, transfer data over RDMA or TCP, manage buffers and batches, and connect Mooncake with vLLM or SGLang.
Why use it?
It helps choose the right Mooncake setup and avoids mixing low-level storage or transfer instructions with framework-specific configuration.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is kvcache-ai/Mooncake's own configuration. It tells Claude Code how to work on Mooncake 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 Mooncake configures →

Part of the mooncake-api plugin — 1 skill shipped together

About the project

Mooncake is a serving platform for Kimi, an LLM service from Moonshot AI, built around sharing and transferring the KV cache used during language-model inference. It supports disaggregated serving and data movement between inference, training, and rollout systems. The catalogue add-ons operate or integrate with Mooncake-based serving and transfer workflows.

kvcache-ai/Mooncake · 7,164 stars · on GitHub · kvcache-ai.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to kvcache-ai/Mooncake. 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/kvcache-ai/Mooncake/main/.claude/skills/mooncake-api/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kvcache-ai/Mooncake

Made for: Claude Code.

Or install mooncake-api, the plugin that ships this one along with the rest of its 1 skill.

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 mooncake-api

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kvcache-ai/mooncake/mooncake-api"><img src="https://agentmods.dev/badge/skills/kvcache-ai/mooncake/mooncake-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00122 $0.04106
Opus 5.5 $0.00049 $0.01642
Sonnet 5.5 $0.00024 $0.00821
Haiku 4.5 $0.00012 $0.00411

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

Security

Grade A, and why

mooncake-api scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:50051
.claude/skills/mooncake-api/SKILL.md · 538 lines

How it starts

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

Mooncake Python API Skill

Use this skill to help users work with Mooncake Python APIs for distributed storage and high-performance data transfer.

When to Use This Skill

Use this skill when users ask about:

  • Using Mooncake Store for distributed KV cache storage
  • Using Transfer Engine for RDMA/TCP data transfers
  • Setting up Mooncake services (master, metadata server)
  • Working with PyTorch tensors in Mooncake Store
  • Zero-copy operations and buffer management
  • Batch operations and replication configuration
  • Mooncake EP (Expert Parallelism) and Mooncake Backend
  • Troubleshooting Mooncake Python API issues

Routing Guidance

  • For most vLLM and SGLang users, start from docs/source/getting_started/quick-start.md.
  • For PD disaggregation, direct users to the SGLang/vLLM integration guides listed in Quick Start. Those guides own the serving-framework configuration.
  • For Mooncake Store integrations, direct users to the SGLang/vLLM Store setup guides listed in Quick Start. Do not duplicate mooncake_master startup commands in general API answers unless the user is working outside those frameworks.
  • For direct low-level Transfer Engine usage, use docs/source/design/transfer-engine/index.md#using-transfer-engine-in-your-projects.
  • For API signatures and method details, use the Python API references under docs/source/python-api-reference/.

Core Components

1. Mooncake Store (Distributed KV Cache)

Import:

from mooncake.store import MooncakeDistributedStore, ReplicateConfig

Basic Setup:

store = MooncakeDistributedStore()
store.setup(
    "localhost",                          # local_hostname
    "http://localhost:8080/metadata",     # metadata_server
    512*1024*1024,                        # global_segment_size (512MB)
    128*1024*1024,                        # local_buffer_size (128MB)
    "tcp",                                # protocol ("tcp" or "rdma")
    "",                                   # rdma_devices (empty for auto-select)
    "localhost:50051"                     # master_server_address
)

Read the full file on GitHub · 538 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 538 lines · 122 tokens per session scan A 67a219d00ba9

Subscribe to this mod's changes

mooncake-api is a skill published in the GitHub repository kvcache-ai/Mooncake (7,164 stars, last pushed yesterday), licensed Apache-2.0. It adds 122 tokens to every session and 4,106 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mooncake-api compared with skills from other repositories

mooncake-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mooncake-apikvcache-ai/MooncakeSkill7.2kyesterdayApache-2.0A122Claude Code
groq-inferencesynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A77Claude Code, Codex
llm-kv-cache-paged-attentionj4flmao/agent-skillsSkill4614d agoMITA97Claude Code, Codex
mlx-serveddalcu/mlx-serveSkill2.7ktodaynoneA88Claude Code, Codex
serving-llms-vllmNousResearch/hermes-agentSkill267ktodayMITA27Claude Code, Codex
open-sourcebrowser-use/browser-useSkill122kyesterdayMITA101Claude Code
sglang-diffusion-performancesgl-project/sglangSkill39ktodayApache-2.0A29Claude Code, Codex