alibaba/open-code-review

open-code-reviewalibaba/open-code-review / plugins/open-code-review/skills/open-code-review/SKILL.md

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured model provider.

  • SKILL.md 已保存
  • 英文来源资料
  • 安装与运行未实测
先判断是否解决你的问题

open-code-review 是什么?

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured model provider. Produces line-level findings and explains the behavior and impact of committed changes by default. Fixes code only when requested. Use when the user wants native mode or has an OCR provider configured. To use the host agent's model without separate OCR credentials, choose open-code-review-delegate instead.

以上为来源原文,中文用途说明尚待整理。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 open-code-review,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 open-code-review

请在 Codex 的当前工作环境中安装并检查 open-code-review 这个 Skill。

项目身份:alibaba/open-code-review / open-code-review
来源:https://github.com/alibaba/open-code-review/blob/78c2e0e26f62ea150044cb0be2357b93f80f5b86/plugins/open-code-review/skills/open-code-review/SKILL.md
已定位的源文件:plugins/open-code-review/skills/open-code-review/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
中文使用说明
尚待整理,保留英文来源内容
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

plugins/open-code-review/skills/open-code-review/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured model provider. Produces line-level findings and explains the behavior and impact of committed changes by default. Fixes code only when requested. Use when the user wants native mode or has an OCR provider configured. To use the host agent's model without separate OCR credentials, choose open-code-review-delegate instead.

查看源文件章节 / Source sections
  • 原文:Open Code Review
  • 工作流程 / Workflow
  • 原文:Step 1: Gather Business Context
  • 原文:Step 2: Run Code Review
  • 原文:Step 3: Report
  • 原文:Step 4: Fix
  • 原文:Output Format
  • 原文:Custom Review Rules
  • 原文:Advanced Review Options
  • 原文:Gotchas
  • 原文:Validation
  • 故障排查 / Troubleshooting
  • 原文:References
原文: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.

原文: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

**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: ```bash 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. **Common invocation patterns:**

本段为节选,完整内容见源文件。

原文:Step 3: Report

OCR output includes structured `severity` (critical / high / medium / low) and `category` (bug / security / performance / maintainability / test / style / documentation / other) on each comment. Present results grouped by severity, discarding `low` severity items that are likely false positives or nitpicks. For combined runs, report Review and Analysis separately. Use these fields in `ocr.review-with-analysis/v2` JSON; if the caller requested text, use the Review summary and appended Analysis Report instead: - **Review:** report findings from `comments` and coverage from `review_status` and `manifest.coverage` when available. A zero exit code or empty `comments` does not prove all selected files were reviewed. - **Analysis:** summarize the before/after behavior, affected workflows, and any decisions supported by `analysis`. Distinguish `analysis_meta.execution_status` from `analysis_meta.declared_completion` (the model's assessment). For example, `completed` with declared `partial` means the investigation ran but left questions open. If analysis was skipped or failed, say why when known and retain the Review findings; do not infer that behavior is unchanged. If the combined schema or analysis metadata is missing, report analysis as unverified.

原文:Step 4: Fix

Before applying fixes, check whether the user requested automatic fixes: - If the user explicitly requested "review and fix" or similar, proceed with automatic fixes - If the user only requested "review" without fix intent, ask for permission before applying any changes When fixing issues and suggestions: - Focus on critical, high, and medium severity items - Apply fixes directly to the code when safe and well-defined - For complex fixes requiring manual intervention, clearly describe what needs to be done - Always verify fixes with the user before committing

原文:Output Format

Each comment in OCR's output contains: - `path`: File path - `content`: Review comment text - `start_line` / `end_line`: Line range (both 0 means positioning failed) - `category`: Issue category (bug, security, performance, maintainability, test, style, documentation, other) - `severity`: Issue severity (critical, high, medium, low) - `suggestion_code`: Optional fix suggestion - `existing_code`: Optional original code snippet - `thinking`: Optional LLM reasoning process Present results grouped by severity using this template: ```markdown ## Code Review Results **Files reviewed**: N **Issues found**: X critical, Y high, Z medium ### Critical - **`path/to/file.java:42`** [bug] — Brief description > Recommendation: How to fix ### High - **`path/to/file.java:26`** [bug] — Brief description > Recommendation: How to fix ### Medium - **`path/to/file.ts:88`** [performance] — Brief description > Recommendation: How to fix (if applicable) ``` Only use "Review complete — no critical, high, or medium issues found in N files" when Review coverage supports it. Otherwise state the known coverage and gaps. For combined runs, also report the Analysis outcome separately. **Handling mispositioned comments:** When `start_line` and `end_line` are both `0`, the comment failed to locate the exact position in the file. In such cases: 1. Read the comment content to understand the issue 2. Examine the target file mentioned in the comment 3. Identify the relevant code section based on the comment's context 4. Apply the fix or suggestion to the correct location

文件 SHA256:dc5fd4f97f1ba932a760d0806df507df6e653699951d6399ca0e794d727203d7

仓库许可证记录:Apache-2.0;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-22T03:34:45.756Z

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured model provider. Produces line-level findings and explains the behavior and impact of committed changes by default. Fixes code only when requested. Use when the user wants native mode or has an OCR provider configured. To use the host agent's model without separate OCR credentials, choose open-code-review-delegate instead.

查看历史简介来源

历史收录数据

来源仓库alibaba/open-code-review
Skill源路径plugins/open-code-review/skills/open-code-review/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源