open-code-review

Review code changes and pull requests using OCR's native review pipeline with configurable LLM providers.

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-alibaba
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: open-code-review
Source: https://github.com/alibaba/open-code-review/tree/main/plugins/open-code-review/skills/open-code-review
Command: npx skills add https://github.com/alibaba/open-code-review --skill open-code-review-alibaba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill eliminates manual code review effort by automating the analysis of workspace changes, commits, branches, and pull requests with line-level findings organized by severity and category. ## Core Features & Use Cases - Multi-target Review: Analyze workspace changes, specific commits, branch comparisons, or PR diffs in a single run. - Structured Findings: Generate categorized issues (bug, security, performance, maintainability, test, style, documentation) with severity levels (critical, high, medium, low). - Custom Rules: Apply project-specific review rules via rule.json or command-line flags to enforce team standards. - Use Case: A development team reviews a feature branch against main to catch security issues and performance regressions before merging, with all findings grouped by severity and categorized for triage. ## Quick Start Run ocr review with business context to analyze your workspace changes and receive a structured report of code issues organized by severity.

Frequently Asked Questions about open-code-review

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

FAQPage Schema
How do I review my workspace changes with OCR?▼

Run `ocr review --audience agent --background "context"` to analyze staged, unstaged, and untracked changes. Add `--output /tmp/result.txt` to save the full report if your environment truncates terminal output.

Can I review a specific pull request or branch with OCR?▼

Yes. Use `ocr review --audience agent --from main --to feature-branch` to compare branches, or `ocr review --audience agent --commit abc123` to review a single commit against its parent.

What LLM providers does OCR support for code review?▼

OCR supports Anthropic, OpenAI Chat Completions, OpenAI Responses, and AWS Bedrock. Configure your provider interactively with `ocr config provider` or manually set `llm.url`, `llm.auth_token`, and `llm.model`.

How do I apply project-specific code review rules?▼

Create a `.opencodereview/rule.json` file in your repository with path-based rules, or pass `--rule /path/to/custom/rules.json` to override defaults. Preview which rule applies to a file with `ocr rules check`.

Why does OCR review fail with a connection error?▼

The LLM provider is not configured or unreachable. Run `ocr llm test` to diagnose connectivity. If credentials are missing, configure them with `ocr config provider` or manually set `llm.url`, `llm.auth_token`, and `llm.model`.

Can I resume an interrupted code review?▼

Yes, for commit or branch reviews. Use `ocr review --resume <id>` with the same `--from`/`--to` or `--commit` flags. The id is printed on failure or available via `ocr session list`. Workspace reviews cannot be resumed.