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 108 tokens per session (1,109 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: reads .claude/ paths.

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 bash scripts/run_ci_test.sh.

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 · 6,536 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 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,109 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.00108 $0.01109
Opus 5 $0.00054 $0.00554
Sonnet 5 $0.00022 $0.00222
Haiku 4.5 $0.00011 $0.00111

Measured 10d ago against content hash 31e47725438c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check-prerequisites.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 160 lines

How it starts

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

Mooncake Pre-PR Local Validation

Use bash scripts/run_ci_test.sh as the default entry point. This is the single local lane for PR-before-submit validation, and it already coordinates the reproducible parts of GitHub Actions.

Default Entry Point

When the user asks for any of the following, run the repo script first instead of reconstructing the workflow by hand:

  • 提交 PR 前本地验证
  • run ci test
  • run local CI
  • check my branch before PR
  • reproduce CI locally

Default command:

bash scripts/run_ci_test.sh

What this script already covers:

  • GitHub-like paths-filter against origin/main
  • typos
  • scripts/code_format.sh --check
  • default CMake configure/build/install in build-ci-local
  • ctest
  • wheel build in build-wheel-local
  • wheel installation validation
  • scripts/run_tests.sh
  • selected Python API and integration tests
  • per-stage summary and logs under local_test/run-ci-logs/<timestamp>/

Standard Agent Workflow

  1. Run bash scripts/run_ci_test.sh from the repo root unless the user explicitly asks for a narrower subset.
  2. Read the stage summary instead of dumping raw terminal output.
  3. Report these items back to the user:
    • passed stages
    • failed stages
    • blocked stages
    • unsupported stages
    • whether paths-filter skipped downstream stages
    • the log directory under local_test/run-ci-logs/...
  4. If there is a failure, inspect the corresponding stage log and summarize the root cause.

Common Options

Force a full lane even if paths-filter would skip downstream stages:

bash scripts/run_ci_test.sh --skip-path-filter

Use another base ref:

bash scripts/run_ci_test.sh --base origin/main

Auto-install missing dependencies:

bash scripts/run_ci_test.sh --install-deps

Keep services running for follow-up debugging:

bash scripts/run_ci_test.sh --keep-services

Minimal Example

User prompt:

  • 提交 PR 前,帮我跑一遍本地 CI 验证当前分支。

Expected action:

bash scripts/run_ci_test.sh

Read the full file on GitHub · 160 lines

Files

What ships with it

3 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. 10d 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 (6,536 stars, last pushed today), licensed Apache-2.0. It adds 108 tokens to every session and 1,109 once invoked, about $0.0005 per session on Opus 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.