Tooluck logoTooluck
SKILL.md

open-code-review

Agent skill fromalibaba/open-code-review

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.

How to install open-code-review

install open-code-review
# install the open-code-review pack with the skills CLI
npx skills add alibaba/open-code-review

# or add only this skill to Claude Code: copy the folder

skills/open-code-review/

# into

~/.claude/skills/open-code-review/ (all projects)

.claude/skills/open-code-review/ (one project)

skills/open-code-review/SKILL.md

Apache-2.0Full file
1# Open Code Review
2
3A 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.
4
5## Workflow
6
7### Step 1: Gather Business Context
8
9Analyze the review target (commits, branch, or changes) to extract concise business context. Pass this context via `--background` to improve review quality.
10
11### Step 2: Run Code Review
12
13**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.
14
15Run the OCR command with appropriate flags. **Always pass business context via `--background`** when available:
16
17```bash
18ocr review --audience agent --background "business context here" [user-args]
19```
20
21**Argument handling:**
22
23- **Background context** (RECOMMENDED): use `--background "context"` or `-b "context"` to provide business context for better review quality
24- **Default** (no user arguments): reviews staged, unstaged, and untracked changes (workspace mode)
25- **Specific commit**: use `--commit` or `-c` to review a single commit against its parent
26- **Branch comparison**: use `--from <ref>` and `--to <ref>` to review diff between two refs
27…

Excerpt shown under the repository's Apache-2.0 license.

More skills in open-code-review

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates