Agent skill · Backend & API

open-code-review-delegate

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.

Alibaba76,861★ · +800/wk · 4 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add alibaba/open-code-review --skill open-code-review-delegate --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.0
Declared author: alibaba
Requires: Requires the `ocr` CLI installed (via `npm install -g @alibaba-group/open-code-review` or GitHub release binary). Does…
Path: skills/open-code-review-delegate/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 18,702
Language: Go
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Open Code Review — Delegation Mode 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. ## Prerequisites ```bash which ocr || echo "NOT INSTALLED" ``` If `ocr` is not installed: ```bash npm install -g @alibaba-group/open-code-review ``` No LLM configuration is needed for delegation mode. ## Workflow ### Step 1: Preview — Determine What to Review ```bash ocr delegate preview [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>] ``` This outputs: - **mode** (workspace / range / commit) - **from / to / commit / merge_base** — ref metadata for constructing git commands - **Reviewable file list** — paths, status, insertions/deletions - **Excluded files** — with exclusion reason **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` | ### Step 2: Get Rules for Files ```bash ocr delegate rule <path1> <path2> ... ``` Pass the reviewable file paths

What's inside
Steps it walks through
  1. Prerequisites
  2. Workflow
  3. Step 1: Preview — Determine What to Review
  4. Step 2: Get Rules for Files
  5. Step 3: Get Diffs
  6. Step 4: Review Each File
  7. Step 5: Format Output
  8. Step 6: Classify and Report
  9. Step 7: Fix (Optional)
  10. Sub-commands Reference
  11. Shared Flags
  12. Gotchas
Commands it runs
which ocr || echo "NOT INSTALLED"
npm install -g @alibaba-group/open-code-review
ocr delegate preview [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>]
ocr delegate rule <path1> <path2> ...
git diff <merge_base>..<to> -- <path>
git show <commit> -- <path>
Tracked files
git diff HEAD -- <path>
New untracked files — read directly (entire file is new code)
cat <path>
More from open-code-review
All skills →
About this skill
What does the open-code-review-delegate skill do?

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.

How do I install it?

Run `npx skills add alibaba/open-code-review --skill open-code-review-delegate --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From alibaba/open-code-review, a repository with 18,702 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going