open-code-review-delegate

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

A delegation guide for Open Code Review, an AI-assisted tool that examines changes in a Git repository. The tool selects files and supplies review rules, while the coding agent performs the review.

In plain words
What is it for?
Use it to preview which files should be reviewed, obtain their review checklists, and then inspect diffs for correctness, security, performance, and related issues.
Why use it?
It separates mechanical file selection from the review itself, so the host agent can use its own understanding of the code and requirements. It also supports reviewing workspace changes, branch comparisons, and individual commits.

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 to preview which files should be reviewed, obtain their review checklists, and then inspect diffs for correctness, security, performance, and related issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alibaba/open-code-review/open-code-review-delegate
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 · 47,499 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-delegate
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-delegate

README.md
[![agentmods](https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review-delegate/github.svg)](https://agentmods.dev/skills/alibaba/open-code-review/open-code-review-delegate)
Your own site
<a href="https://agentmods.dev/skills/alibaba/open-code-review/open-code-review-delegate"><img src="https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review-delegate/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-delegate

Your own site · 80×15
<a href="https://agentmods.dev/skills/alibaba/open-code-review/open-code-review-delegate"><img src="https://agentmods.dev/badge/skills/alibaba/open-code-review/open-code-review-delegate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,188 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 10 Oct 2026
  • Snyk pass 10 Oct 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, 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 24
    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.
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.00068 $0.02188
Opus 5.5 $0.00027 $0.00875
Sonnet 5.5 $0.00014 $0.00438
Haiku 4.5 $0.00007 $0.00219

Measured 6d ago against content hash 26b5badb0038, 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-delegate 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 6d ago.

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-delegate/SKILL.md · 213 lines

How it starts

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

Open Code Review — Delegation Mode

This Codex plugin skill intentionally mirrors the canonical skill at skills/open-code-review-delegate/SKILL.md. Keep both files synchronized when updating OCR delegation instructions; a symlink is avoided because plugin installs may only materialize the plugin subtree.

A skill for performing AI code review where OCR provides deterministic engineering (file filtering, rule resolution) and the host agent performs the actual review using its own intelligence and tools.

Workflow

Step 1: Preview — Determine What to Review

ocr delegate preview --format json [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>]

This outputs:

  • mode (workspace / range / commit)
  • from / to / commit / merge_base — ref metadata for constructing git commands
  • Reviewable file list — paths, status, insertions/deletions
  • Excluded files — with exclusion reason

Common invocations:

Scenario Command
Workspace changes ocr delegate preview
Branch comparison ocr delegate preview --from main --to feature
Single commit ocr delegate preview -c abc123

Step 2: Get Rules for Files

ocr delegate rule --format json <path1> <path2> ...

Pass the reviewable file paths from Step 1. Output is grouped by rule content — files sharing the same rule appear under one group, avoiding repetition.

Step 3: Get Diffs

Choose the diff command using the mode and refs from Step 1. Use git --no-pager for every Git call during the review.

The diff commands disable external diff programs, text conversion, and color to produce plain patches.

Range mode (merge_base provided in preview output):

git --no-pager diff --no-ext-diff --no-textconv --no-color <merge_base>..<to> -- "<path>"

Commit mode:

git --no-pager show --no-ext-diff --no-textconv --no-color <commit> -- "<path>"

Workspace mode:

# Tracked files
git --no-pager diff --no-ext-diff --no-textconv --no-color HEAD -- "<path>"
# New untracked files — read directly (entire file is new code)
cat "<path>"

Read the full file on GitHub · 213 lines

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. 6d ago Changed · +19 lines 26b5badb0038
  2. 1mo ago First seen · 194 lines · 68 tokens per session scan A 0c504bed0bc0

Subscribe to this mod's changes

open-code-review-delegate is a skill published in the GitHub repository alibaba/open-code-review (47,499 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 2,188 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.