From mooncake-ci-local
Runs Mooncake pre-PR validation locally via scripts/run_ci_test.sh, including typos, code format, CMake build/install, ctest, wheel build, and Python tests. Activates on phrases like "run ci test" or "validate branch before PR".
How this skill is triggered — by the user, by Claude, or both
Slash command
/mooncake-ci-local:mooncake-ci-localThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
When the user asks for any of the following, run the repo script first instead of reconstructing the workflow by hand:
Default command:
bash scripts/run_ci_test.sh
What this script already covers:
paths-filter against origin/maintyposscripts/code_format.sh --checkbuild-ci-localctestbuild-wheel-localscripts/run_tests.shlocal_test/run-ci-logs/<timestamp>/bash scripts/run_ci_test.sh from the repo root unless the user explicitly asks for a narrower subset.paths-filter skipped downstream stageslocal_test/run-ci-logs/...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
User prompt:
Expected action:
bash scripts/run_ci_test.sh
If the user wants to ignore changed-path optimization and force the full lane:
bash scripts/run_ci_test.sh --skip-path-filter
See also .claude/skills/mooncake-ci-local/examples/minimal.md.
passed: the stage succeeded locally.failed: the stage reproduced a real local failure and needs investigation.blocked: local environment or dependency issue prevented execution.unsupported: intentionally not run in the local lane because it needs external platforms, special hardware, or a non-default build.If paths-filter skips downstream stages, explain that the current branch changed only non-source paths relative to the selected base.
Included by default:
build-ci-localctestscripts/run_tests.shUnsupported by design in the default local lane:
Use targeted reruns only after the full script identifies a failing area, or when the user explicitly asks for a smaller scope.
Rerun a specific C++ test pattern:
cd build-ci-local
MC_METADATA_SERVER=http://127.0.0.1:8080/metadata DEFAULT_KV_LEASE_TTL=500 ctest -R <pattern> --output-on-failure
Rerun the Python wheel integration lane:
source test_env/bin/activate
MC_STORE_MEMCPY=false TEST_SSD_OFFLOAD_IN_EVICT=true ./scripts/run_tests.sh
Rerun the safetensor unittest:
source test_env/bin/activate
python -m unittest mooncake-wheel.tests.test_safetensor_functions
build-ci-local and build-wheel-local.bash scripts/run_ci_test.sh.npx claudepluginhub kvcache-ai/mooncake --plugin mooncake-ci-localParses .github/workflows/*.yml to run CI checks locally: extracts runnable steps, skips deploys/secrets, fixes errors, re-verifies. Use for local lint/test/build validation.
Integrates regression testing into CI/CD pipelines using automated baseline comparisons, merge blocking, pre-commit hooks, notifications, and support for GitHub Actions, GitLab CI, and Gitea Actions.
Generic CI environment rules for GitHub Actions workflows. Use when operating in CI — covers security, CI monitoring, comment formatting, and investigating session logs from other runs.