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,…
Install / Use
npx skills add CherryHQ/cherry-studio --skill gh-pr-reviewInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of gh-pr-review
gh-pr-review scores 97/100 on our quality scale, 89th of 1,753 Automation skills we index (top 6%).
Its SKILL.md is 15 KB long, well organised into 10 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 52,134 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so gh-pr-review is actively maintained.
- It is released under AGPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
gh-pr-review compared with similar skills
All 4 of these similar skills score higher than gh-pr-review; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| gh-pr-review (this skill)by CherryHQ | 97 | 52.1k | 2d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.7k | 12d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.9k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.4k | today | CLAUDE.md |
| crawl4aiby unclecode | 100 | 84.4k | 2d ago | MCP Server |
Frequently asked questions
- How do I install gh-pr-review?
- Run
npx skills add CherryHQ/cherry-studio --skill gh-pr-review. The install tabs above show the steps for each supported agent. - Which AI agents does gh-pr-review work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is gh-pr-review safe to use?
- It is AGPL-3.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is gh-pr-review still maintained?
- The repository was last updated 2 days ago, so gh-pr-review is actively maintained.
Skill content
View source on GitHubname: gh-pr-review
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.
<!-- 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 —
diagand 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:
- No product impact: skip this stage entirely in both interactive and automated runs; say nothing about the skipped gate.
- Established direction: compare the change with the recorded decision. If it aligns, continue without asking for another product decision. If it conflicts, report the product-direction mismatch and stop the whole review immediately — do not run Consumer, Architecture, Implementation, or Style stages, and do not report code findings. Applying an existing decision is not making a new one.
- Open product decision:
- Interactive session (default): summarize the change's effect on product functionality and semantics, and ask the current user for the unresolved product decision. Do not infer automation from PR authorship, review ownership, or whether the user authored the change. If the user rejects the direction, stop the whole review as above; if the user approves it, 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 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 —
fixin$ARGUMENTSor equivalent explicit user wording ("review and fix …"). Local targets only. What each risk level then permits is owned byreferences/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 —
submitin$ARGUMENTSor equivalent explicit user wording. PR flows then submit all confirmed findings without per-comment prompts. Approving or merging always requires its own explicit request.
Validation after applied fixes
Never run local lint, test, or format during a review that edited nothing.
When fixes were applied, select the validation matching the changed surface,
following AGENTS.md § Operational Rules ("Check what you changed, not the
whole repo"), and report the results:
- Docs/markdown-only fixes — including this skill's own files — run
pnpm docs:check. - Code fixes run
pnpm lint(which already ends withpnpm format, so never invokeformatagain) plus the tests covering the change: a per-project wrapper such aspnpm test:main <file>orpnpm exec vitest run <file>. Neverpnpm test <path>— that script chains several vitest invocations and the path reaches only the last one. - Reserve the full
pnpm testfor a broad change whose affected tests cannot be named, and usepnpm test:lintwhen the CI-equivalent lint gate matters (pnpm linttolerates oxlint warnings that CI denies).
Route
First strip authority modifiers from $ARGUMENTS (equivalent explicit user
wording in the conversation counts the same; both default to false). Call
the remainder REVIEW_TARGET — every rule below, and every leaf flow, reads
REVIEW_TARGET, never the raw $ARGUMENTS:
fix→AUTHORIZED_FIX = true(meaningful for local targets)submit→AUTHORIZED_SUBMIT = true(meaningful for PR targets)
Before choosing a review engine, inspect the runtime's exposed coordination
capabilities. Set HAS_SUBAGENTS = true only when it can launch an independent
reviewer and a fresh independent verifier. Parallel execution is not required;
sequential subagents still satisfy the isolation contract.
Rules
Match the first applicable rule top-to-bottom:
REVIEW_TARGETisdiag→references/diagnosis.md.REVIEW_TARGETischecklist, or the user explicitly asks to adopt the proposed checklist candidates →references/checklist-evolution.md, entering at its Step 2. Maintenance runs only in the session that produced the candidates; it reviews nothing.REVIEW_TARGETis a PR number or URL containing/pull/→references/pr-review.md(passAUTHORIZED_SUBMITandHAS_SUBAGENTS; the wrapper collects the exact PR scope before selecting the engine).- Everything else: derive the scope and
SMALL_SCOPEper § Scope derivation below, then select the engine.SMALL_SCOPE = true→references/local-review.md.SMALL_SCOPE = falsewithHAS_SUBAGENTS = true→references/teams-review.md.SMALL_SCOPE = falsewithHAS_SUBAGENTS = false→references/local-review.md; passLIMITED_SINGLE_AGENT = trueso the report explicitly states that a large diff received single-agent review without independent adversarial verification.- Pass
AUTHORIZED_FIX(commit and range targets are immutable history — always report-only regardless of the flag).
Each → means: Read the target file and follow it as the sole remaining
instruction for how to obtain diffs, apply fixes, and submit results. Do NOT
review from memory or habit. The skill-wide sections — § Review Stages,
§ Authority model, § Validation after applied fixes,
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
crawl4ai
84.4kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
