Command Palette

Search for a command to run...

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

code-review

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

Risk-tiered, multi-agent review for code PRs in any repo, bound to the exact commit. Use when asked to "deep review this PR," "multi-agent review," "review

conorbronsdonот conorbronsdon698 установок в других каталогах

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

Code Review — Risk-Tiered, Exact-Commit PR Review

User-invokable orchestrator for code-PR review across any repo. Three ideas carry it:

  1. Size the review to the risk. What changed, and what reads it, decides how much review a PR gets.
  2. The sign-off comes from an independent reviewer. A model reviewing code its own family wrote shares that family's blind spots. Same-family subagents and Copilot are useful lenses. They are not the sign-off.
  3. Every review is bound to a commit. A review of an older head says nothing about the current one.

(Validation evidence and origin story: README.)

Fallbacks: no gh or not a GitHub repo → review the local diff (git diff <base>...HEAD) and skip the Copilot lane; no subagent tool → run the lenses one after another in the main thread; no second model family available → say so in the summary and report the review as same-family only. Never describe a same-family review as independent.


Invocation: deliberately model-invocable — "review this PR" phrasing is the trigger. Pushes and issue-creation inside the flow are confirmation-gated.

Step 1: Set the Tier

The review target is $ARGUMENTS (a PR number, branch, or URL). If empty, infer it from the conversation or ask.

gh pr view N --json files,additions,deletions,title,headRefOid

Set the tier from what the PR changes and what consumes it, not from the title or the file extension. A mixed PR takes its highest tier. When unsure, go up one.

Tier What changed Review before merge
Docs Prose people read and nothing parses or obeys: notes, plans, reports One reviewer that did not write the diff. Skip the lenses
Parsed text Files a script or an agent reads for meaning: skills, prompts, agent instructions, config, data files One independent reviewer on the exact head. Reread changed files after fixes
Code Executable code, tests, fixtures One independent reviewer on the exact head, plus one lens that matches the risk shape
High-stakes Auth, payments, crypto/wallet, deployment and CI config, dependencies, credential handling, anything that publishes, sends, deploys or spends Two independent reviewers from different routes on the exact head, plus the adversarial and operational lenses

Markdown is not automatically the docs tier. A skill or an instruction file is parsed text: an agent will obey it.

Escalate when the change grants a permission, acts outside the repository, or you cannot rule out that something reads the file.


Step 2: Build One Packet for the Exact Head

Record the head before anything else:

git rev-parse HEAD

Give every reviewer and every lens the same packet:

  1. Repo path (absolute), branch, and the HEAD SHA
  2. The changed-files list from Step 1 and the diff against the base
  3. What the change is meant to do, in one or two sentences, without your own verdict on whether it does
  4. The output contract: finding count first, then findings tagged Critical (blocks merge), Important (fix before merge) or Nit, each with a confidence rating and the file and line. Findings in code the PR did not touch are also marked Pre-existing
  5. A report cap of about 500 words

Keep your conclusions out of the packet. A reviewer handed the author's hypothesis tends to return it confirmed.

Check what the packet contains before it leaves the machine. Send private code only to a model route you are allowed to send it to, and never send credentials. If part of the context cannot go to a reviewer, leave that reviewer out and say so in the summary.


Step 3: Run the Independent Review and the Lenses in Parallel

The independent review. Send the packet to a reviewer from a different model family than the one that wrote the commits. If the PR mixes authors, the reviewer must be outside all of them. Give it read-only access or no tools at all. A reviewer that can edit the branch stops being a reviewer.

A fresh instance of the same family, started with no shared context and no tools, is acceptable for the docs tier only. One way to run it:

claude -p --model <model> --tools "" --setting-sources "" --no-session-persistence < packet.md > review.md

--setting-sources "" keeps your own settings, hooks and MCP servers out of the reviewer's context, so it sees the packet and nothing else. That means the packet has to carry the whole diff. If the diff is too large to fit, give the reviewer read-only tools (read, search, git show at the head) and name them explicitly, because an unspecified tool list usually means every tool.

The lenses. Three angles that empirically work. Pick by risk shape:

  • Adversarial — "Try to break it. What's the worst attack?" Finds security holes, abuse vectors, replay/race conditions, malformed-input handling.
  • Operational — "What fails in production at scale? Latency, cost, observability, timeouts, env config, retrie
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

Risk-tiered, multi-agent review for code PRs in any repo, bound to the exact commit. Use when asked to "deep review this PR," "multi-agent review," "review

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

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

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

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

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

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