pr-review
БесплатноБез исполняемых скриптовНе проверенReview open PRs two ways - default is a per-PR deep review with severity-tagged findings, inline comments, and a verdict; --survey runs a risk-tiered triage…
от aeonfun★ 801 звезда на GitHubОб этом скилле
${var} — Selects the branch and scopes it.
- Default (no
--survey) → per-PR deep review.${var}empty reviews every repo inmemory/watched-repos.md;${var}=owner/reposcopes to one repo;${var}=owner/repo#Nscopes to that exact PR.--survey(aliassurvey) → risk-tiered triage digest (the formerpr-merge). In this branch the remaining tokens follow pr-merge's grammar: passdry-runto skip notify (article + state still write), passowner/repoto override the target repo, combine with a space (--survey dry-run owner/repo). Empty target =aeonfun/aeon.Examples: `` (review every watched repo) ·
owner/repo(review one repo) ·owner/repo#42(review exactly PR 42) ·--survey(triage digest of aeonfun/aeon) ·--survey dry-run(refresh digest, no notify) ·--survey owner/repo(triage a specific repo).
Shared preamble (every run)
Read memory/MEMORY.md for high-level context. Scan the last ~3 days of memory/logs/ for recent activity and to avoid re-reporting the same signal.
Parse ${var} → branch: split ${var} on whitespace.
- If a
--surveyorsurveytoken is present → SURVEY branch (jump to "Survey branch"). Remove that token; the remaining tokens are parsed by the survey branch (dry-run,owner/repooverride, unknown → BAD_VAR). - Otherwise → REVIEW branch (default; continue below). The remaining
${var}is an optionalowner/repoorowner/repo#Nscope (empty = every watched repo).
The two branches never share mutation logic: the REVIEW branch posts PR comments/reviews via gh; the SURVEY branch writes the digest article + state file and (gated) notifies — neither performs an actual gh pr merge. Dispatch to exactly one branch per run.
REVIEW branch (default) — per-PR deep review
Read memory/MEMORY.md and memory/watched-repos.md.
Read the last 2 days of memory/logs/ for context on recent reviews. Whether a commit was already reviewed is decided by GitHub, not the logs (see the skip rules): a run can post its review and then lose its log entry.
If ${var} names owner/repo#N, fetch and review only that exact open PR; do not list or comment on any other PR. If ${var} names owner/repo, review that repo's open PRs. Otherwise review every repo listed in memory/watched-repos.md.
If memory/watched-repos.md is empty or missing (and no owner/repo was passed), log PR_REVIEW_NO_REPOS and end.
What this branch optimizes for
Noise is the documented failure mode of automated PR review. Every finding emitted must be severity-tagged, line-specific, and justified with a one-sentence "why it matters". If there is nothing worth saying, say so in one line and move on.
For each repo
gh pr list -R owner/repo --state open --limit 20 \
--json number,title,author,isDraft,labels,headRefOid,updatedAt
Skip rules
Skip a PR if any of the following hold (record the skip reason for the run summary):
isDraft: true- title matches
^(WIP|\[WIP\]|Draft:)(case-insensitive) - has label
no-review,do-not-merge,wip, orblocked - author login contains
[bot](dependabot, renovate, etc.) or equalsaeonframework - this account already posted a receipt-bearing review on this PR at its current
headRefOid. Ask GitHub:
exit./scripts/dev-loop-review.sh reviewed owner/repo#NUMBER <headRefOid>0→ skip asdup-SHA; exit2(the reviews could not be read) → skip asreview-check-unavailableand let the next run decide; exit1→ not yet reviewed at this commit. It counts exactly what the dev-loop gate counts, so a second review can never make the gate see two receipts. It works on either token: withGH_GLOBALit counts that account's reviews, and on theGITHUB_TOKENfallback (which cannot read/user) it countsgithub-actions[bot], the login that token reviews as. - a bot reviewer (
coderabbitai,copilot-pull-request-reviewer,claude) posted a review in the last 30 min — skip to avoid piling on. Check via:gh api repos/owner/repo/pulls/NUMBER/reviews --jq '.[] | {user: .user.login, submitted_at}'
For each remaining PR
Fetch context:
gh pr view NUMBER -R owner/repo \ --json title,body,headRefOid,baseRefName,files,additions,deletionsIf the
bodycontainsFixes #NorCloses #N, fetch the linked issue for context:gh issue view N -R owner/repo --json title,body,labelsFetch the diff:
gh pr diff NUMBER -R owner/repo- If
additions + deletions > 3000, review only the top-5 largest-delta files from thefilesarray (not the full diff). - If `gh p
- If
Установить pr-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-review?
Review open PRs two ways - default is a per-PR deep review with severity-tagged findings, inline comments, and a verdict; --survey runs a risk-tiered triage digest of what's safe to merge first
Как установить скилл pr-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic