Skip to main content
ClaudeWave
ES, Spanish
Skill52.9k estrellas del repoactualizado 5d ago

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`.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/CherryHQ/cherry-studio /tmp/gh-pr-review && cp -r /tmp/gh-pr-review/.agents/skills/gh-pr-review ~/.claude/skills/gh-pr-review
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

<!-- 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 docs,
tests, or tooling can record, lock, or alter product behavior. Skip this stage
entirely, in both interactive and automated runs, only after semantic review
confirms that the change is implementation-only; say nothing about the skipped
gate.

When there is product impact:

- **Interactive session (default)**: summarize the change's effect on product
  functionality and semantics, and ask the current user for the product
  decision. Do not infer automation from PR authorship, review ownership, or
  whether the user authored the decision. If the user judges the direction
  wrong, **stop the whole review immediately** — do not run Consumer,
  Architecture, Implementation, or Style stages, and do not report code
  findings. If the user approves the direction, continue with the remaining
  stages.
- **Automated session (explicit only)**: use this mode only when the invocation
  prompt or workflow context explicitly identifies a headless, CI, batch, or
  other automated run. Make **no** product decision on the user's behalf. Run
  the remaining stages, and in the final report summarize the product impact,
  the direction the change takes, and the points needing human confirmation.
  Never phrase this as product approval having been obtained.

## Authority model

A review request authorizes analysis and reporting only. The review target,
review depth, and reviewer–verifier confidence never grant execution
a
cherry-assistant-guideSkill

从当前安装包查询 Cherry Studio 产品信息并排查运行问题。当用户询问功能、路由、快捷键、Provider、语言、Agent、频道、定时任务、Code CLI、当前版本,或报告运行错误、连接失败、配置异常并需要诊断时触发。

cherry-electron-devSkill

Develop, fix, and profile Cherry Studio in a tracked Electron instance. Use for everyday implementation, UI and interaction work, bug fixing, runtime debugging, DevTools inspection, lag or jank investigation, CPU and memory monitoring, leak checks, and startup-performance analysis; reuse a verified workspace instance across instructions and launch or replace one only when required.

cherry-skill-marketplaceSkill

当用户明确要求搜索、安装、查看、卸载或创建 Skill,或内置 Skill / 工具出现能力缺口、无法完成当前任务时触发。通过 `mcp__skills__search_skills` 搜索并用 `mcp__skills__install_skill` 安装;已安装 Skill 的查看和删除通过产品清单导航到 Skills UI;没有合适结果时调用内置 `skill-creator` 创建并验证自定义 Skill,再继续原任务。普通任务仍先尝试内置能力。

cherry-studio-feedbackSkill

Use when Cherry Studio 用户希望报告、提交或整理 BUG、UI/UX 问题或功能建议,但未明确要求创建 GitHub Issue。

cherry-tool-guideSkill

Cherry Studio first-party tool and bundled-shell routing for general agents. For straightforward local work in shell-capable sessions, run JS/TS with `bun <file>` and one-off JS tools with `bun x`; run Python with `uv run [--with <pkg>] python` and one-off Python CLIs with `uvx`; search with `rg`. Load this guide before changing project dependencies, deciding whether a tool should be ephemeral or reusable, reading or converting local Office/PDF files, coordinating or delegating across Agent Sessions, or using Cherry-owned web/browser, knowledge, persistent memory, schedules/notifications, IM channels, image generation, artifact reporting, managed CLI, skill, or MCP-server-registration capabilities—even if the user names no tool. Consult it before shell/file workarounds; live tool schemas are authoritative.

claude-automation-recommenderSkill

Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.

code-mate-antigravitySkill

Runs Antigravity CLI headlessly for repository analysis and coding tasks. Use when the user asks to delegate work to Antigravity CLI or compare its result with another coding agent.

code-mate-claude-codeSkill

Runs Claude Code non-interactively for code analysis and implementation tasks. Use when the user asks to delegate repository work to Claude Code or compare its result with another coding agent.