Command Palette

Search for a command to run...

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

code-review

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

Review a branch, PR, or worktree diff for repository conventions and stated intent.

jellydnот jellydn★ 130 звёзд на GitHub

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

Two-axis review of the diff between HEAD and a fixed point the user supplies:

  • Conventions — does the code follow this repo's documented coding standards and Tidy First practices?
  • Intent — does the change faithfully do what it claims to do?

Both axes run as parallel sub-agents so they don't pollute each other's context, then this skill aggregates their findings.

Where This Fits

This skill owns micro / local quality — conventions, clarity, correctness of individual changes. It answers: "Is this change well-crafted and does it do what it says?"

For macro / structural quality (architecture, code judo, 1k-line limits, abstraction quality), use code-quality-review. That skill asks: "Is there a dramatically simpler structure hiding inside this implementation?"

Concern code-review (this skill) code-quality-review
Clean code & naming ✅ Primary owner —
Tidy First practices ✅ Primary owner —
Behavior matches commits ✅ Primary owner —
Guard clauses, helper vars ✅ Primary owner —
File under 1k lines Flag if crossed Enforce strictly
Structural simplification Note opportunities Demand code judo
Abstraction quality Flag thin wrappers Delete unnecessary layers

Companion Skills

A complete quality pipeline, in order:

Phase Skills Purpose
1. Discovery blindspot-pass
context-discovery
Find unknown unknowns and gather project context before starting
2. During implementation implementation-logger Track deviations from plan as you go
3. Pre-review cleanup slop Remove AI-generated clutter so the review focuses on substance
4. Review code-review (this skill) Conventions + Intent, side by side
5. Structural audit code-quality-review Code judo, 1k-line limits, abstraction quality
6. Fix & wrap pr-review → commit-atomic → quiz-me Apply fixes, group into logical commits, verify understanding

Phases 1–4 are the core loop. Phase 5 is recommended when the change touches architecture or crosses file-size boundaries. Phase 6 depends on what the review finds.

Process

1. Pin the fixed point

The user supplies a fixed point — a commit SHA, branch name, tag, main, HEAD~5, etc. If they don't specify one, ask for it.

Capture the diff command once: git diff <fixed-point>...HEAD (three-dot, so the comparison is against the merge-base). Also note the list of commits via git log <fixed-point>..HEAD --oneline.

Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. A bad ref or empty diff should fail here — not inside the sub-agents.

2. Gather context

Conventions sources — discover the repo's coding standards. Look for any of these common patterns:

  • CONVENTIONS.md, .planning/codebase/CONVENTIONS.md, STYLE_GUIDE.md — language-specific idioms and patterns
  • CONTRIBUTING.md, best-practices.md, CODING_STANDARDS.md — general development philosophy, guard clauses, helper expectations
  • AGENTS.md, CLAUDE.md, GEMINI.md — project-specific instructions for AI coding assistants
  • Any file the repo advertises as its source of truth for code style — search README.md or docs/ for mentions
  • If the repo documents nothing, the clean code smell baseline below still applies

Intent sources — understand what the change claims to do:

  • Find issue references in commit messages and the PR description (#123, Closes #45, etc.) and fetch the linked issue when possible
  • Read the PR description if one exists (from gh pr view or branch context)
  • Look for a spec or plan under docs/, specs/, .scratch/, or a path supplied by the user
  • Check for an .implementation-log.md file that records conscious deviations from the plan — the review should not penalize a valid pivot
  • If no issue, spec, plan, or PR description exists, say so explicitly and use commit messages as the fallback source of intent

A commit message is evidence of intent, not a substitute for the originating spec. Separate missing requirements from unrequested scope.

3. Spawn both sub-agents in parallel

Send a single message with two Agent tool calls. Use the general-purpose subagent for both.

Conventions sub-agent prompt — include:

  • The full diff command and commit list.
  • The list of conventions-source files you found in step 2, plus the clean code smell baseline below pasted in full — the sub-agent has no other access to it.
  • The brief: "Report — per file/hunk where relevant — (a) every place the diff violates a documented convention: cite the convention (file + the rule); and (b) any baseline smell you spot: name it and quote the hunk. Distinguish hard violations from judgement calls — documented-convention breaches can be hard, but baseline smells are always judgement calls. A documented repo convention overrides the baseline. Ski
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

evals/evals.json

FAQ

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

Review a branch, PR, or worktree diff for repository conventions and stated intent.

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

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

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

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

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

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