open-code-review SKILL.md skillA

open-code-review from alibaba/open-code-review is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add alibaba/open-code-review/open-code-review@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
alibaba/open-code-review
Path
skills/open-code-review/SKILL.md
Versions recorded
9
Latest version
v1.0.0, committed Sep 17, 2026
First version recorded
Jun 24, 2026
Size
12,632 bytes
Repository stars
49,666
License
Apache-2.0

Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply fixes when requested. With appropriate review rules, can detect various types of issues including bugs, security vulnerabilities, performance problems, and code quality concerns.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Open Code Review

A skill for invoking [open-code-review](https://github.com/alibaba/open-code-review) (`ocr`) — an open-source AI code review CLI that reads Git diffs and generates structured, line-level review comments.

## 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

**Do not pre-check whether `ocr` is installed** — skip probes like `command -v ocr` or `ocr --version`. Assume the CLI is available and run the review directly; that saves a tool call on the common path. Only if the review fails with `command not found` should you install it per Troubleshooting.

Run the OCR command with appropriate flags. **Always pass business context via `--background`** when available:

```bash
ocr review --audience agent --background "business context here" [user-args]
```

**Argument handling:**

- **Background context** (RECOMMENDED): use `--background "context"` or `-b "context"` to provide business context for better review quality
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add alibaba/open-code-review/open-code-review@sha256:be45ee1303e5106c

The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7fvqifgmrwycowch.svg)](https://markdownregistry.com/a/art_7fvqifgmrwycowch)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 9 versions of this file, between Jun 24, 2026 and Sep 17, 2026, about one every 11 days.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-17 8d57bc9 12,632 BA view · diff
v1.0.02026-09-17 f44c19f 12,528 BA view · diff
v1.0.02026-09-14 506e5cf 12,228 BA view · diff
v1.0.02026-09-08 e816a91 10,106 BA view · diff
v1.0.02026-08-31 ebcb9e2 9,401 BA view · diff
v1.0.02026-08-27 5f64f84 9,294 BA view · diff
v1.0.02026-08-19 f6e5e98 9,294 BA view · diff
v1.0.02026-08-11 4f7d78f 9,688 BA view · diff
v1.0.02026-06-24 8196b07 9,160 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (12632 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

alibaba/open-code-review · 49,666 stars · license Apache-2.0 · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_7fvqifgmrwycowch
GET https://markdownregistry.com/api/v1/resolve?ref=alibaba/open-code-review/open-code-review
GET https://markdownregistry.com/api/v1/blob/be45ee1303e5106cd36f20bd7854ea1a5bb41b0d6ae045953cb643201bcd715e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from alibaba/open-code-review

AGENTS.md AGENTS.md file
alibaba/open-code-review · AGENTS.md
git:20260929.f93ff15 · audit A · 49,666 stars
CLAUDE.md CLAUDE.md file
alibaba/open-code-review · CLAUDE.md
git:20260910.b523997 · audit B · 49,666 stars
open-code-review-delegate SKILL.md skill
alibaba/open-code-review · plugins/open-code-review/skills/open-code-review-delegate/SKILL.md · Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent…
v1.0.0 · audit A · 49,666 stars
open-code-review SKILL.md skill
alibaba/open-code-review · plugins/open-code-review/skills/open-code-review/SKILL.md · Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user…
v1.0.0 · audit A · 49,666 stars
open-code-review-delegate SKILL.md skill
alibaba/open-code-review · skills/open-code-review-delegate/SKILL.md · Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent…
v1.0.0 · audit A · 49,666 stars

Every file in alibaba/open-code-review

Other files named open-code-review

open-code-review SKILL.md skill
alibaba/open-code-review · plugins/open-code-review/skills/open-code-review/SKILL.md · Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user…
v1.0.0 · audit A · 49,666 stars
open-code-review SKILL.md skill
akillness/jeo-skills · .agent-skills/open-code-review/SKILL.md · Run AI-powered code review through Alibaba's open-code-review (`ocr`) CLI instead of hand-reviewing diffs. Use when the…
v1.0.0 · audit A · 52 stars
open-code-review SKILL.md skill
jzkk720/cubecloud-skills-bundle-kit · upstream/open-code-review/SKILL.md · Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user…
v1.0.0 · audit A · 4 stars

Browse by kind, by grade A, or by owner.