skills/llm-code-review/SKILL.md
Review a change in this repo and produce actionable review comments (correctness, tests, docs, portability, performance) formatted for copy/paste into a code review tool. Use when the user says “review this change”, “code review”, “CR”, “patchset review”, or wants AI reviewer feedback.
npx skillsauth add arm-examples/llm-runner llm-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this to review a checked-out change in this repo and produce a set of review comments you can paste into your code review tool.
Windows note: if python3 isn’t available, use python (or py -3) for any scripts below.
Run the minimal read-only context:
git status --porcelain
git diff --stat
git diff
If the change is a single commit:
git show --stat
git show
ctest (see AGENTS.md “Validation (expected)”).README.md (see AGENTS.md “Docs updates (scoped)”).skills/llm-change-api-safely/SKILL.md and its checklist.skills/llm-debug-test-failures/SKILL.md.Focus on:
python3 vs python).HF_TOKEN; avoid writing into resources_downloaded/).Style/maintainability:
src/cpp/interface/ (method names, enums, types)const correctness, references vs copies, and move semantics for large strings/containerssrc/java/ (methods/fields/casing consistent with file)resetContext vs ResetContext)README.md is updated per AGENTS.md “Docs updates (scoped)”Output in a paste-friendly structure:
General:
- <comment>
Files:
- <path>:<line>: <comment> (suggestion: <what to change>)
Prefer a small number of high-signal comments (blockers first, then nits).
tools
Update scripts/py/requirements.json entries (URLs + sha256sum) for models/tools, validate hash changes, and keep downloads deterministic without committing artifacts. Use when adding or refreshing model/tool downloads.
tools
Run fast “session start / doctor” checks for this repository (toolchain + wiring sanity, framework version report, optional upstream update check), optionally generate a debug bundle, and when needed bump pinned backend framework versions with build+ctest verification. Use at session start or when upgrading llama.cpp/onnxruntime-genai/mediapipe/mnn pins.
tools
Run a fast JNI-focused build/test smoke check (JNI on, minimal test run), and isolate JNI toolchain issues. Use when changing JNI/Java code or validating JNI setup.
development
Debug failing LLM integration tests caused by model output drift, incorrect context/runtime parameters (contextSize, batchSize, threads), prompt/template mismatches, or backend/framework regressions. Use when tests fail and you need to see the model response, reproduce a single failing CTest, or trace issues into src/cpp/frameworks (llama.cpp, onnxruntime-genai, mediapipe, mnn).