← Back to list
🛠️

open-code-review

GitHub skill alibaba/open-code-review/plugins/open-code-review/skills/open-code-review
🛠️ Developer Tools skills By alibaba Version v1.0.56c049c Added 2026-12-04 Updated 2026-12-04 Source ↗
8.5Overall rating
0Views
0Downloads
0Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "open-code-review" skill by following the instructions at https://skill123.me/install/open-code-review?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/open-code-review.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.56c049c · 8.1 MB
📊 Static rating
8.5/10
Trigger
8.5
Structure
7.5
Workflow
9.0
Content
8.5
Engineering
7.0
Security
9.5

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

A skill from the GitHub repository alibaba/open-code-review.

Open Code Review

This Codex plugin skill intentionally mirrors the canonical skill at

skills/open-code-review/SKILL.md. Keep both files synchronized when updating

OCR agent instructions; a symlink is avoided because plugin installs may only

materialize the plugin subtree.

Documentation

A skill from the GitHub repository alibaba/open-code-review.

Open Code Review

This Codex plugin skill intentionally mirrors the canonical skill at

skills/open-code-review/SKILL.md. Keep both files synchronized when updating

OCR agent instructions; a symlink is avoided because plugin installs may only

materialize the plugin subtree.

Workflow

### Step 1: Gather Business Context

Analyze the review target (commits, branch, or changes) to extract concise business context. Pass this context via --background to improve review quality.

### Step 2: Run Code Review

**GitHub PR mode:** A bare positive number (e.g. 42) selects a PR in the GitHub CLI's default repository for this checkout, which can be upstream of a fork. The pr prefix is optional. For a PR number or GitHub PR URL, run python3 "$SKILL_DIR/scripts/review_pr.py" <id-or-url> once, resolving SKILL_DIR from this installed skill. Forward an explicit --repo OWNER/REPO or --background. Read the printed run.json and its result file; report the resolved PR URL, reviewed revisions, freshness, and artifact path with Step 3. On failure report the failed step, not a fallback branch review. Only PR mode needs Python 3 and authenticated gh.

The GitHub PR helper requires OCR_HOME to be unset or empty. For custom or mounted storage, run the native ocr review command directly.

PR mode uses built-in and user review rules, not rules from the PR. It stops if MCP servers are configured or the PR changes Git filtering metadata; do not bypass a policy stop.

**Otherwise run ocr review directly.** Do not probe with command -v ocr or ocr --version first; that adds an unnecessary tool call on the normal path.

For a workspace review, omit revision flags and --analysis. **Pass business context via --background** when available:


ocr review --audience agent --background "business context here"

**Argument handling:**

View full documentation
  • **Background context** (RECOMMENDED): use --background "context" or -b "context" to provide business context for better review quality
  • **Default** (no user arguments): reviews staged, unstaged, and untracked changes (workspace mode)
  • **Specific commit**: use --commit or -c to review a single commit against its parent
  • **Branch comparison**: use --from <ref> and --to <ref> to review diff between two refs
  • **Current branch against a base**: --from <ref> defaults the target to HEAD, equivalent to --from <ref> --to HEAD. This reviews committed changes from the merge-base to HEAD, excluding staged, unstaged, and untracked changes. Omit both refs to review workspace changes.
  • **Timeout**: effective timeout per review group = --timeout × review rounds. Default --timeout 15 with default effort medium (2 rounds) gives 30 minutes; low/high give 15/45 minutes.
  • **Concurrency**: default concurrency is 8 file workers; reduce with --concurrency <n> if rate limits are hit
  • **Preview mode**: use --preview or -p to preview which files will be reviewed without running the LLM
  • **Output file**: use --output <path> to write the full result to a file instead of stdout.

**Common invocation patterns:**

| User says | Command to run |

|-----------|---------------|

| "review my changes" / "review the working copy" | ocr review --audience agent -b "context" |

| "review feature branch" | ocr review --audience agent -b "context" --from <base> --to <branch> --analysis --format json |

| "review the current branch against main" | ocr review --audience agent -b "context" --from main --analysis --format json |

| "review commit abc123" | ocr review --audience agent -b "context" --commit abc123 --analysis --format json |

| "what would be reviewed?" (dry-run) | ocr review --preview |

**Behavior and impact analysis:**

For a fresh commit or range review (--commit or --from), run Review and Analysis together with --analysis by default. Use JSON unless the caller requests another format. Preserve the caller's repository, revisions, background, and output path.

Omit --analysis for workspace reviews, --preview, --resume, or --format sarif, and when the user explicitly asks to skip analysis. If the user explicitly requests analysis in an unsupported mode, explain the conflict rather than changing the target or format.

**Output mode:**

  • Always use --audience agent to suppress progress UI and emit only the final summary
  • **Prevent output truncation**: For large reviews or restricted tool environments, pass --output /tmp/ocr_out.txt and inspect the file in full via a file reading tool instead of piping stdout through tail or head, which drops earlier review comments.

**On failure:** If ocr review exits non-zero (e.g. an LLM connection error), do not retry blindly — consult the Troubleshooting section below for the matching fix before re-running.

### Step 3: Verify and Report

Treat every OCR Review comment, including low-severity ones, as a claim for the host agent to check against the reviewed workspace or exact revisions. Trace the stated trigger to the claimed effect. For ordinary functional bugs, try the smallest safe, non-destructive check that exercises that path; compare with the base when the claim is a regression. In PR mode, inspect blobs at the recorded SHAs in the retained worktree from run.json, not the current branch. Do not run PR-supplied code, tests, or builds, bypass a policy stop, or try to exploit a suspected vulnerability.

After reporting the PR result and finishing any requested fixes, give the snapshot path and ask whether to discard it, including uncommitted edits and local-only commits. No answer means keep it. Cleanup preserves the report, manifest, and changes already pushed to the PR.

Only after explicit consent, run python3 "$SKILL_DIR/scripts/review_pr.py" --cleanup <run.json> for that run. If the user requested a push, first verify the intended commit is on the PR's remote head branch, for example by comparing it with gh pr view <pr-url> --json headRefOid. If the push fails or cannot be verified, keep the snapshot and explain why. Report any cleanup warning or refusal; do not bypass it.

For text and JSON alike, report findings in two groups, keeping OCR order within each. Keep OCR's claim, severity, category, location, and any suggestion distinct from the host's evidence:

  • **Reproduced:** give the trigger, the check performed, and the observed result. A source observation can establish a directly inspectable fact; it is not a reproduction of predicted runtime behavior.
  • **Uncertain:** say what was checked, why it did not settle the claim, and what evidence or maintainer decision would settle it. Include claims that could not be checked safely or within the available time. A passing unrelated test or a single unsuccessful attempt does not refute a claim.

Omit a claim from the default findings list only when specific evidence contradicts it. Keep the raw OCR result unchanged and provide its path when saved. If the user asks for the full OCR report, include the original comments separately, without internal fields such as thinking. Report Review coverage and gaps from review_status and manifest.coverage when available, even if neither group contains findings.

**Analysis (combined runs):** render the analysis Markdown directly, not analysis_raw or a paraphrase. Preserve headings, all table rows, lists, and caveats. Keep Analysis and PR snapshot details separate from host verification. Distinguish analysis_meta.execution_status from analysis_meta.declared_completion; report skipped, failed, or unverified Analysis without discarding Review. If the report cannot fit, identify what was omitted and give the full artifact path.

### Step 4: Fix

Before applying fixes, check whether the user requested automatic fixes:

  • If the user explicitly requested "review and fix" or similar, proceed with automatic fixes
  • If the user only requested "review" without fix intent, ask for permission before applying any changes

When

Score breakdown

Trigger
8.5
Trigger 8.5/10 — Description states scope and the when-not hand-off to delegate mode. Detailed four-step workflow with PR-mode helper, Reproduced/Uncertain evidence verification, consent-gated fixes/cleanup and strong guards ('do not run PR-supplied code', 'never hardcode API keys') make it notably safe and thorough; scripts/review_pr.py path is unresolved in the flattened bundle.
Structure
7.5
Structure 7.5/10
Workflow
9.0
Workflow 9/10
Content
8.5
Content 8.5/10
Engineering
7.0
Engineering 7/10
Security
9.5
Security 9.5/10
Description states scope and the when-not hand-off to delegate mode. Detailed four-step workflow with PR-mode helper, Reproduced/Uncertain evidence verification, consent-gated fixes/cleanup and strong guards ('do not run PR-supplied code', 'never hardcode API keys') make it notably safe and thorough; scripts/review_pr.py path is unresolved in the flattened bundle.

Assessment methodology

⏳
Assessment in progress
This skill has not been assessed yet — use with caution.

Version history

v1.0.56c049c 2026-12-04
8.1 MB

— Imported from GitHub alibaba/open-code-review/plugins/open-code-review/skills/open-code-review@56c049c