gh-pr-review 是什么?
Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks, React/UI conventions, and tests. Review depth adapts to diff size and runtime subagent capability (single-agent or multi-agent reviewer-verifier). Report-only by default; code fixes and GitHub submission each require explicit invocation-time authorization (fix / submit). Normal-review prompts and safe interruption behavior follow the interaction contract below. To diagnose gaps in the skill after a review session, run /gh-pr-review diag.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
gh-pr-review,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 gh-pr-review
请在 Codex 的当前工作环境中安装并检查 gh-pr-review 这个 Skill。
项目身份:cherryhq/cherry-studio / gh-pr-review
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/gh-pr-review/SKILL.md
已定位的源文件:.agents/skills/gh-pr-review/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 gh-pr-review
请在 Claude Code 的当前工作环境中安装并检查 gh-pr-review 这个 Skill。
项目身份:cherryhq/cherry-studio / gh-pr-review
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/gh-pr-review/SKILL.md
已定位的源文件:.agents/skills/gh-pr-review/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 gh-pr-review
请在 Cursor Agent 的当前工作环境中安装并检查 gh-pr-review 这个 Skill。
项目身份:cherryhq/cherry-studio / gh-pr-review
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/gh-pr-review/SKILL.md
已定位的源文件:.agents/skills/gh-pr-review/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 gh-pr-review
请在 当前 Agent 的当前工作环境中安装并检查 gh-pr-review 这个 Skill。
项目身份:cherryhq/cherry-studio / gh-pr-review
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/gh-pr-review/SKILL.md
已定位的源文件:.agents/skills/gh-pr-review/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/gh-pr-review/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks, React/UI conventions, and tests. Review depth adapts to diff size and runtime subagent capability (single-agent or multi-agent reviewer-verifier). Report-only by default; code fixes and GitHub submission each require explicit invocation-time authorization (`fix` / `submit`). Normal-review prompts and safe interruption behavior follow the interaction contract below. To diagnose gaps in the skill after a review session, run `/gh-pr-review diag`.
查看源文件章节 / Source sections
- 原文:/gh-pr-review — Code Review
- 原文:Interaction and interruption contract
- 原文:Review Stages
- 原文:Stage 1: Product Demand gate
- 原文:Authority model
- 原文:Validation after applied fixes
- 原文:Route
- 原文:Rules
- 原文:Scope derivation
- 原文:Usage examples
原文:正文开头
<!-- Based on https://github.com/Tencent/tgfx/tree/main/.codebuddy/skills/cr --> <!-- Adapted for agent runtimes and the Cherry Studio tech stack -->
原文:/gh-pr-review — Code Review
Automated code review for local branches, PRs, commits, and files. Detects the review target from arguments, then picks the review engine from diff size and runtime capability. Small diffs use single-agent review (`references/local-review.md`). Large diffs use the multi-agent reviewer–verifier flow (`references/teams-review.md`) only when independent subagents are available; otherwise they fall back to single-agent review with that limitation disclosed. PR targets add worktree setup and GitHub submission (`references/pr-review.md`) around the same engine-selection contract. Cherry Studio-specific review rules live in `references/cherry-review-guidance.md`. Target review flows must load that file for code, mixed, architecture-doc, and project-skill reviews so reviewers can apply DataApi, service-boundary, renderer hook, React, UI, and type-contract checks without relying on memory. That reference also defines which internal docs, internal skills, external skills, and official websites to consult for each changed area; load only the relevant subset. All user-facing text matches the user's language.
原文:Interaction and interruption contract
Apart from the declared categories below, normal review is prompt-free: never ask for mode selection, fix confirmation, finding selection, or submission preview. A leaf flow may request input only when it explicitly declares one of these categories: - **Product decision** — in an interactive session, the Product Demand gate may ask the current user for a decision the review cannot derive. In an automated session, record the impact and open decision without deciding for the user. - **Safety or environment blocker** — continuing would require destructive action, new authority, or missing external configuration. Declared examples are a dirty/mismatched review worktree, a missing canonical remote, cleanup of unexplained changes, removal of a failed fix patch, and a pending review draft holding comments this run did not confirm. In an interactive session, preserve state and ask only for the decision needed to proceed. - **Explicit maintenance mode** — `diag` and separately requested checklist maintenance are interactive selection flows outside normal review. They may ask for the declared edit selection or persistent checkout/branch target. An automated session never waits for user input. At a product decision it continues record-only as specified below. At a safety/environment blocker it preserves state, stops the affected flow safely, and reports the exact blocker and required decision. In an explicit maintenance mode it reports candidates or missing destination information, applies no selection-dependent edits, and stops safely. No leaf flow may introduce another prompt category.
原文:Review Stages
Every review runs these stages in order. A later stage reviews only what survived the earlier ones, so a stage never re-litigates an earlier verdict. This table is the single source of truth for stage scope and references; a leaf flow may not widen, narrow, or re-reference a stage. | # | Stage | Applies to | Reference | |---|-------|-----------|-----------| | 1 | **Product Demand** (gate) | any change whose semantics affect the product | below | | 2 | **Consumer** | any change that adds or expands shared surface | `references/consumer-review.md` | | 3 | **Architecture-First** | code, mixed, Cherry architecture docs, project skills | `references/cherry-review-guidance.md` | | 4 | **Implementation** | code, mixed | `references/code-checklist.md` (A/B) | | 4 | **Implementation** | docs | `references/doc-checklist.md` (A/B) | | 5 | **Style / conventions** | code, mixed | `references/code-checklist.md` (C) | | 5 | **Style / conventions** | docs | `references/doc-checklist.md` (C) | Stage applicability follows the changed content, not the commit label: a documentation-only diff still runs stages 3–5 when it changes Cherry architecture docs or project skills, and a code diff that also edits docs runs both reference sets for stages 4–5.
原文:Stage 1: Product Demand gate
First inspect the semantics actually expressed or constrained by the change, then decide whether it affects **product semantics, user-visible behavior, or product direction**. Change labels are not sufficient evidence: internal refactors and non-user-facing fixes often have no product impact, while user-facing fixes, docs, tests, or tooling can record, lock, or alter product behavior. When there is product impact, determine whether the direction is already established in the current review context. Treat it as established only when the current user explicitly decided it or an authoritative project artifact explicitly records the accepted behavior and its approval by the responsible project authority, such as a specification, an ADR, or an issue containing a maintainer decision that settles the expected behavior. Do not infer acceptance from issue state, labels, milestone, assignment, or a link from the PR. A change label, PR body, implementation, or test demonstrates author intent or current behavior but does not establish product approval on its own. Classify the gate into exactly one state:
本段为节选,完整内容见源文件。
原文:Authority model
A review request authorizes analysis and reporting only. The review target, review depth, and reviewer–verifier confidence never grant execution authority; authority is granted explicitly at invocation time, and execution is prompt-free only after it has been granted: - **Report-only (default)**: every review, any target — findings are reported with fix guidance. No working-tree edits, no GitHub writes. - **Fix (explicit)**: granted only by the invocation — `fix` in `$ARGUMENTS` or equivalent explicit user wording ("review and fix …"). Local targets only. What each risk level then permits is owned by `references/judgment-matrix.md` § Handling by Risk Level; this section grants the authority and never restates the mapping. Applying fixes makes the session a coding task, so it must end with the validation selected per § Validation after applied fixes below. - **Submit (explicit)**: granted only by the invocation — `submit` in `$ARGUMENTS` or equivalent explicit user wording. PR flows then submit all confirmed findings without per-comment prompts. Approving or merging always requires its own explicit request.
文件 SHA256:ef9690a82fb982f1d591b52ea7b8a55bfe471b17b3a9f8e8e234001cef6a21da
仓库许可证记录:AGPL-3.0;repository-license-recorded-scope-unverified,查看来源。
Automated Cherry Studio review for local branches, PRs, commits, files, architecture docs, and repository skills. Use for code or documentation reviews that need project-specific naming, main/renderer/shared placement and dependency rules, IpcApi and DataApi boundaries, lifecycle/service ownership, renderer hooks, React/UI conventions, and tests. Review depth adapts to diff size and runtime subagent capability (single-agent or multi-agent reviewer-verifier). Report-only by default; code fixes and GitHub submission each require explicit invocation-time authorization (`fix` / `submit`). Normal-review prompts and safe interruption behavior follow the interaction contract below. To diagnose gaps in the skill after a review session, run `/gh-pr-review diag`.
历史收录数据
| 来源仓库 | cherryhq/cherry-studio |
|---|---|
| Skill源路径 | .agents/skills/gh-pr-review/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
