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
от conorbronsdon698 установок в других каталогахОб этом скилле
Code Review — Risk-Tiered, Exact-Commit PR Review
User-invokable orchestrator for code-PR review across any repo. Three ideas carry it:
- Size the review to the risk. What changed, and what reads it, decides how much review a PR gets.
- 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.
- 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:
- Repo path (absolute), branch, and the HEAD SHA
- The changed-files list from Step 1 and the diff against the base
- What the change is meant to do, in one or two sentences, without your own verdict on whether it does
- 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
- 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic