open-code-review

open-code-review is a skill for Cursor from alibaba/open-code-review. It costs 86 tokens per session (3,687 once invoked), scanned A, original, Apache-2.0.

A skill for running Open Code Review, an AI-assisted Git review command-line tool, against code changes. It gathers project context, selects the relevant files, and produces comments connected to changed lines.

In plain words
What is it for?
Use it when reviewing current work, a commit, or the difference between branches, and when you want structured findings that can be applied as fixes.
Why use it?
It gives the reviewer the business background behind a change instead of treating every diff in isolation. It can also review staged, unstaged, untracked, committed, or branch-based changes.

Skill for Cursor ✓ vendor

Written for Cursor: shipped in a Cursor plugin. Also seen: mentions Codex.

Part of the open-code-review plugin — 2 skills, 1 plugin shipped together

Good fit Use it when reviewing current work, a commit, or the difference between branches, and when you want structured findings that can be applied as fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alibaba/open-code-review/open-code-review
About the project

Open Code Review is an AI-assisted command-line tool that examines code changes or entire files and produces structured comments tied to specific lines. Developers use it for repository-level reviews, code auditing, and checks such as security, null safety, and thread safety.

alibaba/open-code-review · 57,487 stars · on GitHub · open-codereview.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alibaba/open-code-review --skill open-code-review
Clone the repo
git clone --depth 1 https://github.com/alibaba/open-code-review

Made for: Cursor.

Or install open-code-review, the plugin that ships this one along with the rest of its 2 skills, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for open-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review/github.svg)](https://agentmods.dev/skills/alibaba/open-code-review/open-code-review)
Your own site
<a href="https://agentmods.dev/skills/alibaba/open-code-review/open-code-review"><img src="https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for open-code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/alibaba/open-code-review/open-code-review"><img src="https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 26 Nov 2026
  • Snyk fail 1 Dec 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 25
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Data Exfiltration · line 217
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.03687
Opus 5.5 $0.00034 $0.01475
Sonnet 5.5 $0.00017 $0.00737
Haiku 4.5 $0.00009 $0.00369

Measured today against content hash 9e8b269944cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

open-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/review_pr.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/open-code-review/skills/open-code-review/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • 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.

Read the full file on GitHub · 237 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 9e8b269944cf
  2. 6d ago Changed · -27 lines b236fd8fe057
  3. 8d ago Changed · +1 lines · +12 tokens per session ae1ff036dd6d
  4. 13d ago Changed · -3 lines · -24 tokens per session 15574f51a6c2
  5. 14d ago Changed · +2 lines 381b3139a2d5
  6. 2mo ago Changed · +2 lines 916934dc1626
  7. 2mo ago Changed · +25 lines 0b53407a7254
  8. 2mo ago Changed · +5 lines c333f5f68382
  9. 2mo ago Changed d7fc77214056
  10. 3mo ago First seen · 230 lines · 98 tokens per session scan A 54720dc3fb44

Subscribe to this mod's changes

open-code-review is a skill published in the GitHub repository alibaba/open-code-review (57,487 stars, last pushed yesterday), licensed Apache-2.0. It adds 86 tokens to every session and 3,687 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

open-code-review compared with skills from other repositories

open-code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
open-code-reviewalibaba/open-code-reviewSkill57kyesterdayApache-2.0A86Cursor
parallel-pr-reviewsuyoumo/ClawProBenchSkill8293mo agoApache-2.0A67Claude Code, Codex
review-readinesssuyoumo/ClawProBenchSkill8293mo agoApache-2.0A36Claude Code, Codex
pr-commentnearform/lastlightSkill49yesterdayMITA41Claude Code, Codex
reviewing-a-prJetBrains/thinkrailSkill8.5ktodayApache-2.0A56Claude Code, Codex
githubopensquilla/opensquillaSkill7.2k5d agoApache-2.0A101Claude Code, Codex
github-linear-bridgingvercel/eveSkill6.1ktodayApache-2.0A71Claude Code, Codex