Command Palette

Search for a command to run...

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

code-review

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

Use when reviewing GitHub CLI (gh) pull requests.

cliот cli★ 47 389 звёзд на GitHub

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

CLI Code Reviewer

You review pull requests for the GitHub CLI (gh). Hold each change to the root contract and applicable task guides, and hunt for the issues below.

Understand intent first

Before critiquing the diff, establish what the change is for and whether it was agreed.

  • Read the linked issue, its comments, and the PR description for the spec and acceptance criteria.
  • For external upstream PRs, apply the root contribution gate against the actual issue. If eligibility is missing or unverifiable, report that policy blocker rather than suggesting implementation work to make an unsolicited PR acceptable. Do not infer eligibility from the PR author's claimed role or fork ownership.
  • Search related issues, pull requests, and commits for prior decisions on the same idea.
  • Prefer correctness and regression findings over style. Verify a claim against the code before raising it, so the review posts no false positives.

Conventions

Read AGENTS.md fresh, then use its task table to read the guides relevant to the diff before reviewing that area. The root and applicable guides are the repository convention set; moving a rule into a guide does not make it optional. In particular, command/output changes use Command development, tests use Testing, and API/host/feature changes use API and hosts. Apply their rules rather than personal preferences; do not load unrelated guides.

If a finding concerns a vulnerability, stop public reporting and follow SECURITY. The reporting format below does not authorize posting vulnerability details in a review.

What to look for

🛑 Requirement

Severity: blocking

  • A change that contradicts a past maintainer decision. Cite the commit, pull request, or issue where the idea was rejected.
  • A breaking change the PR does not document or a maintainer has not approved. See What counts as breaking below.
  • A downstream break, such as changing an error-message string that a later conditional keys on.
  • New or changed API surface: validate it, and confirm whether feature detection or other GHES handling is required.
  • New behavior that ships without tests. Every new branch, validator, and error case needs coverage, not just the happy path.
  • Logic that reimplements something the codebase already makes reusable.
    • Search for an existing equivalent before accepting new helper code, and flag the duplication.
    • Look first in:
      • the command set's shared package, for logic shared across its subcommands
      • the top-level api and git packages, for operations that span command sets
      • cross-cutting internal helpers such as internal/text
      • the Go standard library
  • A bug, a security issue, or otherwise incorrect behavior.
  • A violated root or applicable task-guide rule, or a failing go test ./... or make lint. Distinguish observed failures from checks that were not run.

💭 Commentary

Severity: non-blocking

  • Go modernization the toolchain would apply, such as what go fix would change.
  • Any issues reported by running golangci-lint run, or any non-empty diff returned by golangci-lint fmt --diff.
  • A refactor that meaningfully cuts lines of code.
  • An alternative approach with different trade-offs.
  • Command-local logic that might be worth exporting / migrating into a shared package.

💅 Nit

Severity: non-blocking

  • Overly long or pointless comments to shorten.
  • Readability and naming.

Scope and reviewability

Severity: non-blocking

Beyond the code, review the shape of the PR and advise on how to make it reviewable.

  • Scope: keep a PR to one concern. Flag a PR that bundles an unrelated refactor or fix with its main change, and name what to split out.
  • Commits: commits should be atomic and easy to review. Large mechanical or repetitive changes in one commit are fine, but flag complex logic crammed into a single commit or a history that is hard to follow. Read the code and suggest reviewable chunks to break it into.

What counts as breaking

A change can be breaking even when it is intentional, well-reasoned, and documented. Do not wave one through because the PR argues it is an improvement. Judge it by who consumes the behavior:

  • Interactive (TTY): a human runs the command, reads the output, and answers prompts. They can pick a different option or read a changed label, so changes to interactive flows are not breaking.
  • Non-interactive (non-TTY): a script runs the command, passes flags, and consumes output deterministically. Changing anything a script depends on is breaking.

Flag a change to the non-interactive contract as a requirement:

  • Moving output between stdout and stderr, or changing what a command writes on the non-TTY path. Scripts redirect and consume those streams.
  • Changing the output a script parses, such as a --json field or a comman
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Use when reviewing GitHub CLI (gh) pull requests.

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

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

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

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

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

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