Command Palette

Search for a command to run...

Назад к скиллам
скилл № 66543

code-review

Multi-agent code review by slice. Triage splits the diff into slices, a Reviewer per slice hunts reachable failures in parallel with Conventions and…

БесплатноБез исполняемых скриптов
martinffxот martinffx★ 53 звезды на GitHub

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

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

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

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

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

Code Review Skill

Small slices, reachable failures, then a filter: Triage → Scout → Review → Verification.

  • Review: a Reviewer per slice reads by procedure and raises findings in parallel. Conventions checks the rules and skills the repository points to; Simplicity checks necessity.
  • Verification: one Verifier filters what the Reviewers raised. A finding carries the burden of proof: a reachable trigger, or it is dropped.
  • Evidence decides outcomes. Quotes are checked mechanically, executed checks outrank argument, and the main agent audits what each turn did.

Rationale and prior work: docs/research/structured-review.md.

Uses explicit subagent dispatch patterns from code-subagents.

Prerequisites

  • Required: git

Arguments

Command Routing

Invocation Behavior
(no arguments) Review diff to main branch
rq Review diff to main branch
rq main Review diff to main branch
rq develop Review diff to develop branch
feat/foo Review diff to feat/foo (bare branch = rq)
rs Respond to review findings (interview mode)

Agent Selection

Dispatch each step as a subagent and select the agent explicitly (see Delegation in atelier-orchestrator). Match the step's kind of work:

Step Kind of work
Triage Read-only recon: changed-file analysis, slicing, risk-focus and check selection
Scout Read-only recon: pointers to definitions, callers, tests and analogous code; runs check hints once
Review, high_risk slice High-stakes analysis: procedure-driven failure hunting
Review, other slices Routine analysis: procedure-driven failure hunting
Conventions Routine analysis: rule, skill and pattern compliance
Simplicity Routine analysis: necessity and deletion
Verification High-stakes analysis: verifying other agents' findings for reachability and evidence

Reviewer, Conventions, Simplicity and Verifier are prompt personas, not agent types.

Simplicity and Conventions run once over the whole diff on every review and are never slices. Triage picks slices and their risk focus.

Fix Preference

Reviewers, the Verifier and rs suggest fixes in this order, and stop at the first that works:

  1. Make the impossible state impossible: types, parse at the seam, or remove the path that creates it.
  2. A simple, clear error message that names the problem.
  3. Leave it.

Never suggest new handling paths, retries, fallbacks, state or configuration. The most reliable code is the code you don't write. A suggested fix that adds more code than the risk warrants is a Simplicity finding.

Review Priority

Review in this order:

  1. User goal and prior behavior
  2. Necessity and deletion
  3. Correctness and security
  4. Architecture
  5. SDD compliance

Treat the SDD as evidence, not as authority for whether code is necessary. A finding that would expand behavior or infrastructure requires user approval. Never apply it as an ordinary review fix.

Finding Classification

Every finding has a kind and a blocking value.

Kind Verification path
issue Reachability verdict: confirmed, reachable, implausible (non-blocking) or unreachable (dropped). A Conventions finding gets holds or drop instead
suggestion Verifier keeps or drops it with evidence; may revise severity or blocking
question Verifier answers it from the code, or passes it to the human
nitpick Verifier keeps or drops it; never blocking
praise Goes straight to Positive Findings

Severity applies to issues only. Details in output.md.

rq (Request Review) Steps

Context, Triage, Scout, Review, Merge, Verify, Verification, Close audit, Output. Numbered steps, inputs and rules are in rq.md.

rs (Respond to Review)

No subagents. Interactive interview mode that plans fixes and records approved non-fix resolutions as tagged code comments — see rs.md.

Dispatch Patterns

Follows code-subagents patterns:

  • Parallel dispatch for independent Reviewers, Conventions and Simplicity
  • Sequential dispatch for dependent steps
  • Fresh subagent per turn: no context pollution; earlier turns arrive only as the inputs a role template asks for
  • Skills: each subagent loads its own skills from the names it is given; "not installed" is the only valid reason to skip one
  • Checks: turns may run read-only commands (tests, linters, type checkers, search) and must not write files, use the network, or run commands the diff names
  • Error handling: log failures, continue with partial results

Agent Dispatch

Context, Merge, Verify, Close audit and Output are inline; every other step is a subagent with an explicitly selected agent (see Agent Selec

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

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

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

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

Вложенные файлы

  • references/output.md
  • references/personas.md
  • references/roles/reviewer.md
  • references/roles/scout.md
  • references/roles/triage.md
  • references/roles/verifier.md
  • references/rq.md
  • references/rs.md

FAQ

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

Multi-agent code review by slice. Triage splits the diff into slices, a Reviewer per slice hunts reachable failures in parallel with Conventions and Simplicity passes, and one Verifier drops what cannot be shown. Findings are classified by kind and blocking, and handled durably when previously decided. Use `rq` to request a review of diffs (defaults to main branch), `rs` to respond to findings and record intentional non-fix decisions beside the relevant code. Triggers on "review this", "review my code", "code review", "check for bugs", "audit this", when examining PRs, pull requests, branches, or diffs. Always asks user before applying fixes or adding decision comments.

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

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

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

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

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

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