Mooncake: Skill for Claude Code

.claude/skills/mooncake-ci-local/SKILL.md

mooncake-ci-local is a skill for Claude Code from kvcache-ai/Mooncake. It costs 102 tokens per session (1,977 once invoked), scanned A, original, Apache-2.0.

A local pre-pull-request check for the Mooncake project. It runs the same kinds of formatting, build, installation, and test checks used by automated checks on GitHub.

In plain words
What is it for?
Use it to validate a branch, build and install the project and its Python package, run C++ and Python tests, and review a stage-by-stage summary with logs.
Why use it?
It catches failures on a branch before a pull request is opened, without requiring you to reconstruct the full automated workflow by hand.

Skill for Claude Code

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

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/code_format.sh --check --changed-lines --base origin/main.

Part of the mooncake-ci-local 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-ci-local/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kvcache-ai/Mooncake

Made for: Claude Code.

Or install mooncake-ci-local, 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-ci-local

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kvcache-ai/mooncake/mooncake-ci-local"><img src="https://agentmods.dev/badge/skills/kvcache-ai/mooncake/mooncake-ci-local.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,977 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. 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.00102 $0.01977
Opus 5.5 $0.00041 $0.00791
Sonnet 5.5 $0.00020 $0.00395
Haiku 4.5 $0.00010 $0.00198

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

Security

Grade A, and why

mooncake-ci-local 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 4d 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/mooncake-ci-local/SKILL.md · 161 lines

How it starts

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

Mooncake pre-PR local validation

Run from the repository root. That directory contains scripts/code_format.sh and .github/workflows/ci.yml.

Do not run scripts/run_ci_test.sh. That file is not in this repository.

Do not use build directories named build-ci-local or build-wheel-local. Those names are not in this repository.

Read CMake flags from the job you are reproducing. Do not reconstruct them from memory.

Use base ref origin/main unless the user names another ref. In the commands below, replace origin/main with that ref.

Default checks

Run these checks on every pre-PR request. They are the unconditional ci-gate jobs that do not need a native build. engram-cpu-contracts also needs no native build, and ci-gate does not require it.

  1. Fetch the base and list changed files.
git fetch origin main
git diff --name-only --diff-filter=ACMR origin/main...HEAD
  1. Run pre-commit on the changed files, as CONTRIBUTING.md requires. If the diff is empty, skip pre-commit and say the branch matches the base.
pre-commit run --files $(git diff --name-only --diff-filter=ACMR origin/main...HEAD)

If pre-commit is missing, mark this check blocked. The install steps are in CONTRIBUTING.md. Do not install packages unless the user asked.

Pre-commit may rewrite files. For a validation-only run, report those files and leave them unstaged. Stage them only when the user asked to fix the branch.

The C/C++ pre-commit hook runs scripts/code_format.sh --staged. The clang-format job does not. Run the job command as well.

./scripts/code_format.sh --check --changed-lines --base origin/main

The job needs clang-format 20. If that binary is missing, mark clang-format blocked and give the install command from CONTRIBUTING.md.

  1. If the diff includes Python files outside extern/ and FAST25-release/, run the python-lint commands. The workflow installs ruff==0.6.9.
ruff check <changed-python-files>
python scripts/ci/check_changed_python_format.py origin/main <changed-python-files>

Read the full file on GitHub · 161 lines

Files

What ships with it

2 files 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. 4d ago Changed · +1 lines · -6 tokens per session 41f10d1336c4
  2. 3mo ago First seen · 160 lines · 108 tokens per session scan A 31e47725438c

Subscribe to this mod's changes

mooncake-ci-local is a skill published in the GitHub repository kvcache-ai/Mooncake (7,164 stars, last pushed yesterday), licensed Apache-2.0. It adds 102 tokens to every session and 1,977 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-08-30.

Related

mooncake-ci-local compared with skills from other repositories

mooncake-ci-local next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mooncake-ci-localkvcache-ai/MooncakeSkill7.2kyesterdayApache-2.0A102Claude Code
llm-kv-cache-paged-attentionj4flmao/agent-skillsSkill4614d agoMITA97Claude Code, Codex
autonomous-loopsaffaan-m/ECCSkill314kyesterdayMITA26Claude Code, Kiro
deployment-patternsaffaan-m/ECCSkill314kyesterdayMITA41Claude Code, Kiro
mcp-dependency-reviewaffaan-m/ECCSkill314kyesterdayMITA52Claude Code, Codex
sglang-diffusion-performancesgl-project/sglangSkill39ktodayApache-2.0A29Claude Code, Codex
sglang-diffusion-cache-ditsgl-project/sglangSkill39ktodayApache-2.0A161Claude Code