test-ci
Skill by alibaba
Runs MNN regression tests and LLM benchmarks on a host machine or real devices. It suits developers and maintainers who run CI, verify changes on Android or iOS hardware, or tune test stages.
Install test-ci
Built from the published package, never by AI.
git clone --depth 1 https://github.com/alibaba/MNN /tmp/MNN && mkdir -p ~/.claude/skills && cp -r /tmp/MNN/skills/test-ci ~/.claude/skills/test-ciRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/alibaba/MNN /tmp/MNN && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/MNN/skills/test-ci ~/.gemini/antigravity-cli/skills/test-ciAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is an index for running MNN tests and benchmarks on a host machine or real devices. It covers two separate tracks. The regression and CI suite runs static checks, host-side tests, and an on-device Android arm64 matrix through ./test.sh and test_stages.json. The iOS track runs LLM prefill and decode benchmarks on an iPhone or iPad through ios_llm_bench.sh.
The assistant picks the matching document for the task. Android runs take a device serial from adb devices and can be filtered to CPU, OpenCL, Vulkan, or other subsets. Each stage reports PASS, FAIL, or SKIP, and the exit code is non-zero when any stage fails. The skill is aimed at MNN developers and maintainers who need to run CI, verify a change on a device, or add and retune test stages.
Written from the project's SKILL.md and checked against it.
What it can do
- Static checksRuns static checks with ./test.sh static.
- Host regression testsRuns build, unit suite, smoke and LLM smoke tests on the host CPU with ./test.sh local.
- Android device matrixRuns the on-device Android arm64 test matrix with ./test.sh android <serial>.
- Stage filtersLimits Android runs to subsets such as cpu, opencl, vulkan, gpu, unit or lowmem.
- Stage configurationAdds, drops or retunes test stages by editing test_stages.json without shell changes.
- iOS LLM benchmarkingMeasures prefill and decode tokens per second on a real iPhone or iPad with ios_llm_bench.sh.
- Branch comparisonCompares LLM benchmark results across branches on iOS Metal and CPU.
- Stale script auditBuilds a usage map of CI and test scripts before recommending deletion.
- Dynamic-shape smoke checksGuides validation of the runtime input shape in shape-sensitive device tests.
What you need
- adb and a USB-connected Android arm64 device with USB debugging allowed
- Android NDK, set through ANDROID_NDK or at $HOME/android-ndk-r21
- A real iPhone or iPad for iOS benchmarks
- Network access to Hugging Face or ModelScope for model download, unless LLM_MODEL_DIR is set
Try asking
- Run the static checks and host tests for MNN.
- Run the Android arm64 test matrix on my attached device.
- Benchmark LLM prefill and decode speed on my iPhone.
Good to know
- A SKIP result is not a failure. It means a prerequisite such as a library, model or build artefact was missing.
- If the device shows as unauthorized, the user must tap Allow USB debugging on the phone.
- A zero exit code shows a backend ran, not that the intended dynamic shape was selected.
- A new test file needs a cmake re-run before it appears in run_test.out.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/test-ci/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
ios-llm-bench.md11 KB -
test-suite.md14 KB
Alternatives to test-ci
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
test-ci: common questions
Does the MNN test suite need internet access?
Model download is lazy, so unit, smoke and bench stages run without network. Setting LLM_MODEL_DIR to an existing model means nothing is downloaded.
How do I run only part of the Android tests?
Pass a filter as the third argument, for example cpu, opencl, vulkan, gpu, unit or lowmem. The filter list is in the skill file.
What does a SKIP result mean in the test summary?
SKIP is not a failure. It means a prerequisite such as a GPU library, a model or a build artefact was absent.
How do I install test-ci?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-ci free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is test-ci safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to test-ci?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
