alibaba avatar

Open Code Review

Wraps Alibaba's open-code-review CLI to run AI-powered code reviews on Git diffs. You can point it at staged changes, specific commits, or branch comparisons, and it returns line-level comments about bugs, security issues, performance problems, and style concerns. The skill extracts business context from your changes and passes it to the LLM for more relevant feedback. Supports custom review rules per file pattern if you want project-specific checks. Requires the ocr CLI installed via npm and an Anthropic or OpenAI API key configured before first use. Works well for PR reviews or sanity-checking your work before pushing, though you'll want to filter out the inevitable false positives.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
7.3K
GitHub stars
49.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add alibaba/open-code-review --skill open-code-review --agent claude-code

Installs into .claude/skills of the current project.

Files

Open Code Review

A skill for invoking 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:

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

Argument handling:

Sponsors

Details

Repository
github.com/alibaba/open-code-review
Categories
Security, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Debugging, CLI & Terminal, Office & Documents
First seen
Jul 14, 2026

More from alibaba/open-code-review

All 2

Recommended

More Security
1google avatargoogle-cloud-recipe-foundation-buildergoogle/skillsDeploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy fol7.2Kskills.sh installs
2vercel avatarvercel-clivercel/vercelDeploy, manage, inspect, and troubleshoot Vercel projects from the command line. Use for Vercel deployments, build failures, projects and teams, environment var7.2Kskills.sh installs
3payloadcms avatarpayloadpayloadcms/skillsUse when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, secur7.1Kskills.sh installs
4trailofbits avatarvariant-analysistrailofbits/skillsHunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or ba7Kskills.sh installs
5analogjs avatarangular-routinganalogjs/angular-skillsImplement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, protected routes6.9Kskills.sh installs
6clerk avatarclerk-expo-patternsclerk/skillsExpo / React Native patterns with Clerk — SecureStore token cache, OAuth deep linking, useAuth in native, Expo Router protected routes, push notifications with 6.8Kskills.sh installs