open-code-review-delegate

Delegates code review to the host agent using OCR for file selection and rule resolution.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill open-code-review-delegate-dulltackle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: open-code-review-delegate
Source: https://github.com/dulltackle/kangkang-skills/tree/main/open-code-review-delegate
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill open-code-review-delegate-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @alibaba-group/open-code-review.

What problem does it solve? Running AI code review normally requires configuring an external LLM endpoint for the review tool. This Skill removes that requirement by letting the host agent perform the review itself, while the open-code-review (OCR) CLI handles only deterministic work: selecting reviewable files and resolving review rules. ## Core Features & Use Cases - LLM-free delegation mode: OCR never calls an LLM; it outputs reviewable file lists, git ref metadata, and rule groups as JSON for the host agent to consume. - Flexible review scopes: Review workspace changes, branch ranges (--from/--to), or single commits, with exclusion patterns and business context via --background. - Structured review workflow: Enforces full file coverage with reviewed/skipped accounting, severity-grouped findings, and optional fix application. - Use Case: On a feature branch, run ocr delegate preview --from main --to feature --format json, fetch rules per file, get diffs with git, and produce a severity-classified review report without any external LLM endpoint. ## Quick Start Ask the agent to review the current workspace changes using OCR delegation mode and report findings grouped by severity.

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 run an AI code review without an LLM endpoint?

Use OCR delegation mode: run `ocr delegate preview --format json` to get reviewable files, then `ocr delegate rule` for review rules, and let the host agent perform the review. The OCR CLI never calls an LLM in this mode.

How do I review a branch comparison with open-code-review?

Run `ocr delegate preview --from main --to feature --format json` to get the merge base and file list, then use `git diff <merge_base>..<to> -- <path>` for diffs. Fetch rules per file with `ocr delegate rule` and review each file against its rule group.

Does open-code-review delegation mode require an API key?

No. Delegation mode is LLM-free on the OCR side; all intelligence comes from the host agent. You only need the ocr CLI installed via `npm install -g @alibaba-group/open-code-review` or a GitHub release binary.

Why does ocr delegate fail with unknown flag --format?

The --format flag requires ocr v1.9.0 or later. Rerun the command without the flag and use text output for the rest of the run, or upgrade the CLI with `npm install -g @alibaba-group/open-code-review`.

What are the limits for background context files in ocr delegate?

The raw background file must not exceed 1 MiB and sanitized content must not exceed 8000 characters. If either limit is hit, summarize the material preserving requirements and constraints, then pass the summary via --background or a smaller file.