code-review
БесплатноБез исполняемых скриптовНе проверенPerform a thorough, structured code review of a diff or pull request
от SylphAI-Inc★ 87 звёзд на GitHubОб этом скилле
Code Review Workflow
Review the given diff, pull request, or set of changed files as a careful senior engineer would — looking for correctness, safety, and maintainability issues, not just style nits.
Steps
Understand intent first. Read the PR description / commit messages / linked issue before reading the diff line-by-line. Know what problem the change is supposed to solve before judging whether it solves it.
Trace the change end-to-end. For each modified function/module, identify every caller and every downstream consumer of its output. A change that looks correct in isolation can still break a caller that assumed the old behavior.
Check correctness before style. In priority order:
- Logic errors — off-by-one, incorrect conditionals, wrong operator, inverted boolean logic.
- Error handling — are error/exception paths handled, or silently swallowed? Are edge cases (empty input, null/None, zero, max values) covered?
- Concurrency/state — race conditions, shared mutable state, missing locks/transactions where needed.
- Security — unsanitized input reaching a query/shell/template, secrets in code, missing auth checks on new endpoints.
- Resource handling — unclosed files/connections, unbounded loops/memory growth, missing timeouts.
Check test coverage. Does the diff include tests for the new/changed behavior? Do the tests actually exercise the changed logic, or do they just assert trivial properties (tautological tests)? Are edge cases from step 3 covered?
Check for duplication and reuse. Does this diff reimplement something that already exists elsewhere in the codebase (a date formatter, a retry helper, an API client)? Prefer reusing/extending existing utilities over introducing parallel implementations.
Check the blast radius. Is the change scoped to what the task requires, or does it touch unrelated files/formatting/comments? Flag unrelated changes explicitly — they hide the real diff and increase review risk.
Only then, style and readability. Naming, comments, consistency with surrounding code conventions. Note these, but don't let them dominate the review — they're the last priority, not the first.
Write the review as specific, actionable comments. For each issue found:
- Point to the exact file/line.
- State what's wrong (not just "this looks off") and why it matters (what could break, and under what condition).
- Suggest a concrete fix or ask a clarifying question if intent is genuinely ambiguous.
- Distinguish blocking issues ("must fix before merge") from non-blocking suggestions ("consider," "nit:").
Output Format
Summarize as:
- TL;DR — does this change look safe to merge, with or without required fixes?
- Blocking issues — must be resolved before merge, with file/line references.
- Non-blocking suggestions — nice-to-haves, style, minor improvements.
- Questions — anything genuinely ambiguous that needs the author's input before you can finish the review.
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review?
Perform a thorough, structured code review of a diff or pull request
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (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