---
name: code-review
Use this workflow for code review.
Determine the review base before analyzing the change. Identify the exact commits or working-tree state being reviewed,
then enumerate all changed files.
If no changed files are found, respond with: "No changes detected. Please specify a commit range, branch, or patch to
review."
Read every .github/instructions/**/*.instructions.md file whose applyTo scope matches a changed path. Also load each
domain skill whose description matches the changed subsystem or behavior.
If no instructions file or domain skill matches a changed path, proceed using general ONNX Runtime and
language-specific conventions.
Review the diff in context, including controlling code, relevant callers, and affected tests. Trace inputs through the
changed behavior to externally visible results or failure modes.
Distinguish defects introduced by the change from pre-existing issues.
Ensure coverage of all the following:
Also report actionable clarity and maintainability concerns, even when they are not correctness defects.
Do not report formatting issues already enforced by repository tooling.
Report each actionable finding separately, using an inline comment when supported. Each finding must include:
If no actionable findings are found, say so explicitly.