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.
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.
npx skills add alibaba/open-code-review --skill open-code-reviewgit clone --depth 1 https://github.com/alibaba/open-code-reviewWrote 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.
[](https://agentmods.dev/skills/alibaba/open-code-review/open-code-review)<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.
<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>- Socket pass
- Snyk fail
- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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.
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
--commitor-cto 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 toHEAD, 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 15with default effortmedium(2 rounds) gives 30 minutes;low/highgive 15/45 minutes. - Concurrency: default concurrency is 8 file workers; reduce with
--concurrency <n>if rate limits are hit - Preview mode: use
--previewor-pto 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.
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.
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.
- today Changed · +2 lines 9e8b269944cf
- 6d ago Changed · -27 lines b236fd8fe057
- 8d ago Changed · +1 lines · +12 tokens per session ae1ff036dd6d
- 13d ago Changed · -3 lines · -24 tokens per session 15574f51a6c2
- 14d ago Changed · +2 lines 381b3139a2d5
- 2mo ago Changed · +2 lines 916934dc1626
- 2mo ago Changed · +25 lines 0b53407a7254
- 2mo ago Changed · +5 lines c333f5f68382
- 2mo ago Changed d7fc77214056
- 3mo ago First seen · 230 lines · 98 tokens per session scan A 54720dc3fb44
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.
open-code-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| open-code-reviewalibaba/open-code-review | Skill | 57k | yesterday | Apache-2.0 | A | 86 | Cursor |
| parallel-pr-reviewsuyoumo/ClawProBench | Skill | 829 | 3mo ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| review-readinesssuyoumo/ClawProBench | Skill | 829 | 3mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| pr-commentnearform/lastlight | Skill | 49 | yesterday | MIT | A | 41 | Claude Code, Codex |
| reviewing-a-prJetBrains/thinkrail | Skill | 8.5k | today | Apache-2.0 | A | 56 | Claude Code, Codex |
| githubopensquilla/opensquilla | Skill | 7.2k | 5d ago | Apache-2.0 | A | 101 | Claude Code, Codex |
| github-linear-bridgingvercel/eve | Skill | 6.1k | today | Apache-2.0 | A | 71 | Claude Code, Codex |