Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

review-pr

БесплатноБез исполняемых скриптовНе проверен

Review an existing pull request against the review checklist: code style, tests, docs. Use when the PR exists; review-task checks a branch without one.

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Reviewing a Pull Request

Use this skill only when a pull request exists (PR number or URL is available).

If there is no PR yet and you need to validate task completion on a local branch, use: .claude/skills/review-task/SKILL.md.

Quick Overview Approach

  1. Confirm that the pull request exists: a number or a URL is required.
  2. Read the PR title and description for context, and gather its metadata: the linked issue, the base branch, the merge state and time, and the checks when they are available.
  3. Check the diff for scope of change. Review the real diff and the checks of the pull request, not the intent of the caller.
  4. Identify the affected packages and components.
  5. Apply the checklist below and classify the findings by severity.

PR Review Checklist

PR Metadata

  • Title follows Conventional Commits format
  • Description clearly explains what changes were made and why
  • Issue is linked (Closes #<number> or Refs #<number>)
  • Target branch is develop (not main)

Code Quality

  • Code follows existing patterns in affected packages
  • No unused imports, variables, or functions
  • No #[allow(...)] suppressions unless clearly justified with a comment
  • Errors handled properly (use thiserror for structured errors, avoid .unwrap())
  • No security vulnerabilities (OWASP Top 10 awareness)

Tests

  • New functionality has unit tests
  • Integration tests added if applicable
  • All existing tests still pass
  • Test code is clean, readable, and maintainable

Documentation

  • Public API items have doc comments
  • AGENTS.md updated if architecture changed
  • Markdown docs updated if user-facing behavior changed
  • Spell check: new technical terms added to project-words.txt

Rust-Specific

  • Imports grouped: std → external → internal
  • Line length within max_width = 130
  • GPG-signed commits

Output

Return:

  1. Scope reviewed (the pull-request number and the key files)
  2. Findings by severity (see Providing Feedback)
  3. Checklist gaps
  4. Overall verdict: APPROVE, REQUEST_CHANGES, COMMENT or POST_MERGE_FINDINGS

A Blocker or a Major finding is a blocker: the pull request is not ready to merge while one is unresolved. Do not approve then. A COMMENT verdict is for a review whose findings are not blockers (Minor, Nit or Suggestion), and an unresolved blocker gives REQUEST_CHANGES.

A Merged Pull Request

When the pull request is already merged, label the result POST_MERGE_FINDINGS and give no merge-readiness verdict. Do not implement the findings and do not create a follow-up branch. Direct the caller to the post-merge workflow of process-pr-review, which needs the maintainer's explicit approval before any action that changes something.

Recording The Review

The task you were given tells you which case applies. The review is not a review of a task of a branch (use review-task for that): do not run the acceptance review of a task, and do not mark the workflow checkpoints of an issue specification unless the caller asks for it and the evidence is there.

A Reply File

When the task carries the line that names a reply file (decision D17 of issue #2904), write the review there as one JSON file before you finish. The path is the one the line gives: agent-replies/<agent>-<subject>-r<round>.json in the folder of the issue specification, with pr-reviewer as the agent, pr<number> as the subject, and the round counted from 1 (decision D18). The rounds go from 1 to 3, and the validator refuses a name with a higher round: when the line names a round above 3, write no file, say so in your final message and leave it to the caller to stop and ask the maintainer. The fields:

  • schema-version: 1; agent: pr-reviewer; model: the full model ID you ran on; subject and round: the same as in the file name; created-utc: the time, from date -u.
  • verdict, from the verdict of the Output: REVIEW_PASSED for APPROVE and for COMMENT (which has no Blocker or Major finding); REVIEW_FAILED for REQUEST_CHANGES; DONE for POST_MERGE_FINDINGS, with the label at the start of the summary; QUESTION when only the contributor can answer something; BLOCKED when you cannot review.
  • summary: the verdict in a few sentences, with the base branch of the pull request.
  • findings: one for each finding, with a severity (Blocker, Major, Minor, Nit or Suggestion), a location and a description that carries the remediation.
  • questions: what the contributor must answer, one text each, or an empty list.
  • evidence: the commands you ran and what they showed, the checks you read, the files you reviewed, the checklist gaps, and the follow-up owner and action (write none when no follow-up applies), one text each.

Check the file with the valida

Полный SKILL.md на GitHub

Установить review-pr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл review-pr?

Review an existing pull request against the review checklist: code style, tests, docs. Use when the PR exists; review-task checks a branch without one.

Как установить скилл review-pr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл review-pr запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить review-pr с