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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prerequisites
- Workflow
- Step 1: Preview — Determine What to Review
- Step 2: Get Rules for Files
- Step 3: Get Diffs
- Step 4: Review Each File
- Step 5: Format Output
- Step 6: Classify and Report
- Step 7: Fix (Optional)
- Sub-commands Reference
- Shared Flags
- Gotchas
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>
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.