code-review-rubric
БесплатноБез исполняемых скриптовНе проверенUse when a task is in code_review - how to read the diff, which findings block, and the verdict move
от makifbaysal★ 123 звезды на GitHubОб этом скилле
Code Review Rubric
Overview
Every task a developer finishes lands in code_review as a pull request. You are the last technical gate before QA. Review the PR diff against the task's acceptance criteria and the spec/plan — identify issues before they cascade.
Review is reading, not running. The PR link and its diff are in your context — the file list (git diff --stat) in full, the patch cut at 24,000 bytes, ending …(truncated) when it was. You do not boot the app, run a build, run a test suite, or verify behaviour by executing it — the pipeline did that before you and QA does it after you. You also never edit the diff: a finding is written down and handed back, never fixed by the reviewer.
Before Reviewing
list_task_comments— the only way to see an earlier need_revision comment (yours, QA's or the pipeline's). A re-submission enters code_review fromin_progress, so that history is NOT re-injected. If one exists, load root-cause-review.- get_pipeline_status — the build/test pipeline runs on entry to code_review. Red pipeline → the task cannot pass review regardless of the diff.
- Read the task description, every acceptance criterion, the human's requirement comments on the task (injected as "The human's requirements written on this task";
list_task_commentsshows them asauthor_type=user), the spec/plan reference, and any comment the developer left — a run that went cleanly leaves none, so the absence of one is normal and says nothing about the change. - Read the injected PR diff completely, including every file the 24,000-byte cut left out —
run_terminal:base=$(git merge-base HEAD origin/HEAD 2>/dev/null || git merge-base HEAD origin/main); git diff "$base" -- <path>(reading, not running), orread_file. Never give feedback on code you didn't actually read, and never approve a file you did not see. - Check the repo's own
CLAUDE.md/AGENTS.md/CONTRIBUTING.mdfor rules this diff might break — a violation is Important, quoted verbatim.
What to Check
Plan/AC alignment
- Does the implementation match the plan, the acceptance criteria and the human's requirement comments? Is anything missing? Is anything extra beyond all of those (scope creep)?
- The human's comments on the task outrank its description: a later comment that widens or changes the scope ("show the logos in the marquee too") makes that work part of THIS task, even when the description's out-of-scope list says otherwise. Review it like any criterion; never flag it as a scope violation or ask for it to be reverted or split.
- Are deviations justified improvements or problematic departures? Flag them specifically so the developer can confirm intent.
Code quality
- Clean separation of concerns, proper error handling (no swallowed errors), type safety, DRY without premature abstraction, edge cases handled.
- Reuse over rewriting (the developers' rule reuse-before-writing): a new helper, client or component that duplicates one the repository already has (name the existing path from grep_code); hand-rolled code for what the standard library or an installed dependency already does; hand-rolled crypto, auth, parsing, date/time-zone or money math where an established library belongs; a new dependency for a few lines, for a job an installed one already does, without its lockfile change, or with a non-permissive licence. Important when the duplicate must change together with the original or the hand-rolled code is security- or correctness-critical; Minor otherwise.
Architecture
- Sound design decisions, integrates cleanly with surrounding code, respects layer boundaries (hexagonal: domain imports no adapters).
Domain impact (what the diff breaks outside itself)
- The diff is the subject of the review; its blast radius is not limited to the diff. A change is only correct if the code that depends on it is still correct.
- Read outside the diff whenever it touches something shared — a domain type or its invariants, an interface or function signature, a DB query or migration, an API/event contract, auth or tenancy scoping, a default value, a shared component. Use grep_code for the exact symbol, expand_symbol_context to read the callers, codebase_search for the concept, get_symbol_skeleton for structure.
- Concrete questions: who else calls this and do they still hold? Does the migration break rows already in the table, or a reader deployed before it? Does a changed contract have a consumer in another repository (the task's project has more than one)? Did a renamed/removed field leave a stale reader? Does a new query bypass the tenant/user filter its neighbours apply?
- Report an impact finding like any other: name the file:line OUTSIDE the diff that now breaks, and what in the diff breaks it. "Might affect other callers" is not a finding — the callers are one grep away.
- Reading the repository for this is expected. Reviewing files the PR does not touch is not: unrelated pre-existing problems a
Установить code-review-rubric в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review-rubric?
Use when a task is in code_review - how to read the diff, which findings block, and the verdict move
Как установить скилл code-review-rubric?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review-rubric запускает скрипты?
Нет, скилл состоит только из инструкций (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