review-code
БесплатноБез исполняемых скриптовНе проверенReview a code change well — engine-agnostic critical review discipline for an inline dev loop. Defines what to look for…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Review Code
Overview
Code review is the discipline of judging whether a change improves the health of the codebase — not whether it is perfect. An undirected reviewer does one of two failure modes: it rubber-stamps (misses real defects) or it nit-blocks (treats every preference as mandatory and never lets the change land). This skill prevents both by giving the review a governing principle, a fixed set of dimensions to inspect in value order, a parseable severity taxonomy, and a loop with an explicit stop condition.
This is the inline development-loop reviewer — it runs after you write a non-trivial change and before you commit. It is engine-agnostic: the reviewer can be a model (invoked via a role alias), a human, or a cloud tool. Because a model-backed reviewer has effectively unlimited throughput, it is the right engine for the inner loop — run it on every non-trivial change without spending a rate-limited cloud quota.
The cloud PR gate (CodeRabbit, via the rabbit-code-review skill) is a separate, later gate reserved for the pull request — do not spend it inside the inner loop. This skill covers everything up to the commit; the ship gate covers the PR.
Distilled from Google's Engineering Practices ("The Standard of Code Review", "What to look for"), the Conventional Comments spec, and the local severity→fix loop.
When to Use
- After writing a non-trivial change, before committing it (the inner loop)
- On an explicit request: "review this", "critique this diff", "is this change sound"
- Reviewing a subagent's or another author's diff before integrating it
- As a checkpoint in an implementation loop, once a task's code is written
When NOT to use:
- Shipping a PR — that is the cloud gate (
rabbit-code-review), run once, at the PR - A one-line or mechanical change (rename, import tweak) — review overhead > benefit
- In-flight, before the code exists — that is
doubt-driven-review(per-decision, not per-diff) - Diagnosing a failure — that is
systematic-debugging
The Governing Principle — the loop terminator
Pass the change when it definitely improves code health. Not when it is perfect.
This is the single most important rule, because it is what ends the loop. A reviewer without it keeps finding one more nitpick forever and the change never lands. Approve once no blocking defect remains — even if you can still imagine improvements. Leave the non-blocking improvements as labelled suggestions the author may take or defer.
Two corollaries:
- There is no perfect change, only a healthier codebase. Block on defects, not on taste.
- Continuous improvement over perfection. A change that measurably improves things and leaves a
suggestion:for the rest is better than a change stalled on a reviewer's ideal.
Review Dimensions — inspect in value order
Review every changed line, in context, highest-value dimension first. Most defects that matter live near the top of this list; do not spend the review budget on naming while a design flaw goes unexamined.
1. DESIGN Does the change fit the system? Right layer, right seam?
Does it integrate, or bolt on? (highest-value — a wrong
design is expensive later; a wrong variable name is cheap.)
2. CORRECTNESS Does it do what it claims? Edge cases, error paths,
concurrency/races, boundary values, empty/null inputs.
3. COMPLEXITY Is it more complex than it needs to be? Over-engineering
and speculative generality (YAGNI) — solve the problem
that exists now, not a hypothetical future one.
4. TESTS Are there tests, and do they test behaviour (not just
cover lines)? Would they fail if the code were wrong?
5. NAMING Do names reveal intent? Could a reader guess wrong?
6. COMMENTS Do comments explain WHY, not WHAT? (What is in the code.)
7. CONSISTENCY Does it match the repo's conventions and style?
8. SECURITY Untrusted input, secrets, authz, injection. On any hit,
escalate to the `security-hardening` skill.
9. DOCS Are public surfaces / behavioural changes documented?
Also, deliberately look for something done well and say so — a sincere praise: per review is part of the discipline, not decoration.
Defect Classes — sweep populations, not samples
The dimensions say what to judge; these classes say where blocking defects cluster. For each class, find every instance of its pattern in the change (grep for it), not the first one you happen to read. Report, per class, what you checked — including "no instances".
| Class | How to sweep |
|---|---|
| Spec and task conformance | Walk each requirement/scenario and task the change claims; find the code and test that satisfy it. Flag anything claimed but absent, or present but contradicting the stated intent. |
| Canonicalize before check | Find every |
Установить review-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл review-code?
Review a code change well — engine-agnostic critical review discipline for an inline dev loop. Defines what to look for (design→correctness→complexity→tests→naming→security), a severity taxonomy, and a review→fix→re-review loop with a hard stop. Use on "review this code", "review my diff", "is this change good", "critique this implementation", "review before commit". Not a ship-gate.
Как установить скилл review-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-code запускает скрипты?
Нет, скилл состоит только из инструкций (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