Best for
- Use when the host agent should drive the review with its own LLM capabilities.
alibaba/open-code-review/plugins/open-code-review/skills/open-code-review-delegate/SKILL.md
Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent to perform the code review itself, using OCR only for deterministic engineering: file selection and rule resolution. Use when the host agent should drive the review with its own LLM capabilities.
Decision brief
This Codex plugin skill intentionally mirrors the canonical skill at skills/open-code-review-delegate/SKILL.md. Keep both files synchronized when updating OCR delegation instructions; a symlink is avoided because plugin installs may only materialize the plugin subtree.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/alibaba/open-code-review --skill "plugins/open-code-review/skills/open-code-review-delegate"Inspect the Agent Skill "open-code-review-delegate" from https://github.com/alibaba/open-code-review/blob/6dc3eb067071c01e7234ac6032a9f7d656a29f84/plugins/open-code-review/skills/open-code-review-delegate/SKILL.md at commit 6dc3eb067071c01e7234ac6032a9f7d656a29f84. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
This outputs: - mode (workspace / range / commit) - from / to / commit / mergebase — ref metadata for constructing git commands - Reviewable file list — paths, status, insertions/deletions - Excluded files — with exclusion reason
This outputs: - mode (workspace / range / commit) - from / to / commit / mergebase — ref metadata for constructing git commands - Reviewable file list — paths, status, insertions/deletions - Excluded files — with exclusion reason
Pass the reviewable file paths from Step 1. Output is grouped by rule content — files sharing the same rule appear under one group, avoiding repetition.
Use git directly based on the mode/ref info from Step 1:
For each reviewable file:
Permission review
The documentation asks the agent to run terminal commands or scripts.
npm install -g @alibaba-group/open-code-reviewThe documentation asks the agent to run terminal commands or scripts.
git diff <merge_base>..<to> -- <path>The documentation asks the agent to read local files, directories, or repositories.
# New untracked files — read directly (entire file is new code)The documentation asks the agent to read local files, directories, or repositories.
**Untracked files in workspace mode** — `preview` includes untracked files. For these, read the file directly instead of using `git diff`.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 84/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 18,669 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
This Codex plugin skill intentionally mirrors the canonical skill at
skills/open-code-review-delegate/SKILL.md. Keep both files synchronized when
updating OCR delegation instructions; a symlink is avoided because plugin
installs may only materialize the plugin subtree.
A skill for performing AI code review where OCR provides deterministic engineering (file filtering, rule resolution) and the host agent performs the actual review using its own intelligence and tools.
which ocr || echo "NOT INSTALLED"
If ocr is not installed:
npm install -g @alibaba-group/open-code-review
No LLM configuration is needed for delegation mode.
ocr delegate preview [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>]
This outputs:
Common invocations:
| Scenario | Command |
|---|---|
| Workspace changes | ocr delegate preview |
| Branch comparison | ocr delegate preview --from main --to feature |
| Single commit | ocr delegate preview -c abc123 |
ocr delegate rule <path1> <path2> ...
Pass the reviewable file paths from Step 1. Output is grouped by rule content — files sharing the same rule appear under one group, avoiding repetition.
Use git directly based on the mode/ref info from Step 1:
Range mode (merge_base provided in preview output):
git diff <merge_base>..<to> -- <path>
Commit mode:
git show <commit> -- <path>
Workspace mode:
# Tracked files
git diff HEAD -- <path>
# New untracked files — read directly (entire file is new code)
cat <path>
For each reviewable file:
Each comment must follow this structure:
| Field | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Relative file path |
| content | string | yes | Review comment describing the issue |
| start_line | integer | no | Start line in the new file |
| end_line | integer | no | End line in the new file |
| category | enum | no | bug, security, performance, maintainability, test, style, documentation, other |
| severity | enum | no | critical, high, medium, low |
Group findings by severity:
Discard likely false positives silently.
If the user requested "review and fix":
| Command | Purpose |
|---|---|
ocr delegate preview | Which files to review + mode/ref metadata |
ocr delegate rule <path...> | Review rules grouped by content |
| Flag | Description |
|---|---|
--from <ref> | Source ref for range mode |
--to <ref> | Target ref for range mode |
-c, --commit <hash> | Single commit mode |
--repo <path> | Repository root (default: cwd) |
--rule <path> | Custom rule.json path |
--exclude <patterns> | Comma-separated exclude patterns |
-b, --background <text> | Business context |
-B, --background-file <path> | Business context from Markdown file |
ocr delegate operates on the Git repo at the current directory. Use --repo /path to override.preview includes untracked files. For these, read the file directly instead of using git diff.--background to preview when you have requirement context; it appears in the output for your reference during review.Alternatives
alibaba/open-code-review
Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent to perform the code review itself, using OCR only for deterministic engineering: file selection and rule resolution. Use when the host agent should drive the review with its own LLM capabilities.
ruvnet/RuView
Comprehensive GitHub code review with AI-powered swarm coordination
dotnet/skills
Grades a specified set of test methods individually and produces a concise table mapping each test (fully-qualified name) to a letter grade (A–F), a score band, and a one-line note — designed to be posted as a PR comment. Use when the caller wants per-test feedback on a curated list of methods (for example, the new or modified tests in a pull request), not a suite-wide audit. Polyglot: .NET, Python, TS/JS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. Input is a list of test methods (or
ruvnet/ruflo
Comprehensive GitHub code review with AI-powered swarm coordination