Command Palette

Search for a command to run...

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

code-review

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

Review a change against repo standards and its originating spec, with parallel sub-agents. Use when the user asks to review a branch, PR, commit, or WIP…

ivanrvpereiraот ivanrvpereira★ 19 звёзд на GitHub

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

Review changes through two independent axes:

  • Standards — does the changed code follow this repo's documented standards and avoid introduced maintainability, reliability, security, or operational risks?
  • Spec — does the changed code faithfully implement the originating issue / PRD / request, without omissions or scope creep?

The axes run as parallel sub-agents so conventions and product intent do not pollute each other. Aggregate them separately; do not merge them into one ranked list.

Review discipline

Apply these rules to every finding on both axes:

  • Only changed behavior. Flag issues introduced or exposed by this change, not pre-existing problems.
  • Actionable and provable. Only report issues the author would likely fix after seeing the evidence. Avoid speculative, preference-only, or purely stylistic comments unless a documented standard requires them.
  • Diff-overlapping location. Each finding must point to a changed line/hunk, or the smallest changed function/block when exact line numbers are unavailable.
  • Evidence first. Cite the changed code, the violated standard, and/or the spec line. If the evidence is weak, omit the finding.
  • Short comments. Keep each finding concise: title, location, why it matters, and the minimal fix direction.
  • No tool-enforced noise. Skip formatting/lint/type issues that project tooling already enforces unless the current diff clearly bypasses that tooling.

Use these priorities inside each axis:

  • [P0] Release blocker: data loss, active exploit, total outage, irreversible destructive operation, or failed core requirement.
  • [P1] High impact: security/privacy issue, broken major workflow, incorrect persistence/API contract, migration risk, or missing required behavior.
  • [P2] Normal bug or maintainability problem: likely user-facing breakage, confusing design, fragile error handling, or significant code smell.
  • [P3] Minor: low-risk edge case, small cleanup, or optional improvement worth tracking.

Mandatory risk checks

Run these checks even when the repo has no review guidelines:

Untrusted input and boundary checks

Treat data from users, HTTP, files, env vars, databases, webhooks, subprocesses, LLM/tool output, CLI args, and third-party APIs as untrusted. Flag changed code that feeds untrusted data into:

  • authz/authn decisions, permission checks, tenant/account boundaries;
  • SQL/NoSQL queries, shell commands, filesystem paths, templates/HTML/Markdown, redirects, or deserializers;
  • money, billing, quotas, rate limits, feature flags, migrations, or destructive operations;
  • logging/telemetry where secrets or personal data could leak.

Fail-fast error handling

Scrutinize changed code that silently falls back, catches broadly, drops errors, retries indefinitely, or proceeds after partial failure. Prefer surfacing the failure for:

  • writes, migrations, billing, notifications, queue/cron jobs, and cache invalidation;
  • security, permissions, configuration, and dependency initialization;
  • API boundary changes where callers need deterministic failure semantics.

Human callouts, not automatic blockers

List these separately as Human callouts unless you found a concrete bug:

  • migrations/schema/data backfills;
  • dependency upgrades, lockfile churn, build tooling, or runtime version changes;
  • auth/permission, public API, SDK, CLI, or wire-format changes;
  • destructive operations, filesystem/network access, background jobs, cron, billing, or external integrations;
  • performance-sensitive paths, caching semantics, observability, or rollback concerns.

Process

1. Pin the review target

Prefer a fixed point the user supplies: commit SHA, branch name, tag, main, HEAD~5, etc. Use a three-dot range for branch-style reviews:

git diff <fixed-point>...HEAD
git log <fixed-point>..HEAD --oneline

Confirm the ref resolves (git rev-parse <fixed-point>) and the diff is non-empty before spawning sub-agents.

If the user explicitly asks for another target, use the matching command instead:

  • Uncommitted/WIP: git diff --cached and git diff.
  • Single commit: git show --format=fuller --stat --patch <commit>.
  • PR: fetch/view the PR with the repo's GitHub/GitLab workflow, then review its merge-base diff.
  • Folder snapshot: only use when the user explicitly asks for a folder review; state that findings are not limited to a git diff.

If the user did not identify a target and intent is ambiguous, ask one clarifying question.

2. Identify the spec source

Look for the originating request, in this order:

  1. Issue/PR references in branch names and commit messages (#123, Closes #45, GitLab !67, Linear IDs, etc.). Use the repo's documented issue-tracker workflow; for GitHub, prefer gh.
  2. A path, issue, PR, ticket, or prompt the user passed as an argument.
  3. A PRD/spec file under docs/, specs/, .scratch/, or project-specific planning directories ma
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Review a change against repo standards and its originating spec, with parallel sub-agents. Use when the user asks to review a branch, PR, commit, or WIP changes, or to "review since X".

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

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

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

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

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

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