commit
CommandPlease summarize your current changes, generate a commit message in English, then add and commit. Never include any AI tool or…
Run OCR in delegation mode — OCR handles file selection and rules, the host agent performs the actual review.
> /plugin marketplace add alibaba/open-code-review> /plugin install open-code-review@open-code-review
description: Run OCR in delegation mode — OCR handles file selection and rules, the host agent performs the actual review.
Invoke OpenCodeReview (OCR) in delegation mode. OCR determines which files to review and provides review rules; you perform the actual code review using your own capabilities.
ocr delegate preview [user-args]
This outputs mode/ref metadata and the reviewable file list.
Pass all reviewable file paths to get their review checklists:
ocr delegate rule <path1> <path2> ...
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.
To read context:
git --no-pager log --no-color --oneline -- "<path>" git --no-pager blame --no-textconv -- "<path>" git --no-pager show --no-ext-diff --no-textconv --no-color "<ref>:<path>"
For large diffs, add `--output="<absolute-diff-file>"` to the command for the selected mode. Choose a unique absolute path outside the repository and create its parent directory. Use the same path in file-reading tool calls:
git --no-pager diff --no-ext-diff --no-textconv --no-color --output="<absolute-diff-file>" <merge_base>..<to> -- "<path>"
After Git exits with code 0, read and review the entire file in chunks, then remove it. If Git fails or times out, retry or record `skipped` with the error. Check unexpectedly empty output against a fresh preview.
Then review focusing on: correctness, security, performance, error handling, concurrency, maintainability. Only comment on changed code (+ lines).
Record each previewed `(path, status)` as `reviewed` or `skipped`. Give a reason for every skipped entry, and report `total_files`, `reviewed_files`, `skipped_files`, and `coverage_rate`.
Classify each issue by severity:
Automatically fix High and Medium issues that are safe and well-defined.
Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in multi-language ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.
Please summarize your current changes, generate a commit message in English, then add and commit. Never include any AI tool or…
Create an annotated git tag with an auto-generated summary of changes since the last tag.
Fix CI failures, resolve merge conflicts with the base branch, and address PR review comments