open-code-review-delegate

Review code changes using the host agent's model without a separate OCR API key.

53.8k|4.4k|Updated May 18, 2026
Ready to run
npx skills add https://github.com/alibaba/open-code-review --skill open-code-review-delegate-alibaba
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: open-code-review-delegate
Source: https://github.com/alibaba/open-code-review/tree/main/plugins/open-code-review/skills/open-code-review-delegate
Command: npx skills add https://github.com/alibaba/open-code-review --skill open-code-review-delegate-alibaba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill eliminates the need for a separate Open Code Review API key and LLM endpoint setup. It delegates code review to your existing AI agent, leveraging your coding-agent subscription and model infrastructure instead of managing OCR's native pipeline separately. ## Core Features & Use Cases - LLM-Free OCR CLI: File selection and rule resolution handled by OCR's CLI; the agent provides the review logic. - Flexible Review Modes: Analyze workspace changes, branch comparisons, individual commits, or PR ranges. - Structured Rule Groups: Rules grouped by content to avoid repetition; files sharing the same rule appear together. - Use Case: Your team has uncommitted feature changes and wants a code review against the main branch. Run the delegation workflow to preview affected files, fetch review rules, generate diffs, and collect structured feedback—all using your current AI coding assistant. ## Quick Start Run ocr delegate preview to see which files have changed, then use ocr delegate rule with those paths to get the review checklist for each file.

Frequently Asked Questions about open-code-review-delegate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preview files for code review before running a full review?▼

Use `ocr delegate preview` to list all reviewable files, their status, and insertion/deletion counts. Pass `--from` and `--to` for branch comparison, `--commit` for a single commit, or omit flags for workspace changes. Output includes mode metadata needed for subsequent diff commands.

What is the difference between workspace, range, and commit review modes?▼

Workspace mode reviews all uncommitted changes (staged, unstaged, untracked). Range mode compares a merge-base to a target branch. Commit mode reviews a single commit's changes. Each mode uses different git commands to generate diffs and has distinct ref requirements.

How do I retrieve review rules for specific files?▼

Call `ocr delegate rule --format json <path1> <path2>...` with the same range or commit flags as your preview step. Output groups files by rule content, so files sharing rules appear together and the rule is stated once.

Can I use this Skill without installing the ocr CLI?▼

No. The Skill requires the `ocr` CLI installed via `npm install -g @alibaba-group/open-code-review` or a GitHub release binary. If CLI installation is not permitted in your environment, this Skill cannot be used.

Why do I need to pass business context with --background?▼

Business context helps the review identify issues relevant to feature intent and acceptance criteria. Pass `--background` with a brief requirement or `--background-file` for longer context. The preview output includes this context for reference during review.

What does it mean when ocr delegate rule outputs files grouped by rule content?▼

OCR groups files that share identical review rules together to avoid repeating the rule text. If rules differ, files appear in separate groups. This structure reduces output size and helps you understand which files follow the same review checklist.