code-review
Review code changes for correctness, security, performance, and maintainability before merging. Use when reviewing a PR/diff or auditing a file for quality.
от metaspartan★ 41 звезда на GitHub
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Review
Review changes against a consistent checklist. Be specific and kind; cite file:line.
Procedure
- Understand intent. Read the PR description / linked issue first. What is this change trying to do?
- Read the diff in full (
git diff main...HEAD). Then read the surrounding context, not just changed lines. - Check correctness first: does it do what it claims? Edge cases? Error handling? Off-by-ones? Null/empty inputs?
- Check security: untrusted input handling, injection (SQL/HTML/cmd), authz, secrets in code/logs, path traversal, unsafe deserialization.
- Check performance: N+1 queries, accidental O(n²), unbounded loops, missing pagination, large allocations in hot paths.
- Check maintainability: naming, duplication (DRY), dead code, overly long functions, missing tests, misleading comments.
- Verify tests actually cover the new behavior and aren't just happy-path.
Severity levels
- Blocking (must fix): correctness bugs, security holes, data loss, missing tests for risky logic.
- Important (should fix): poor error handling, perf issues, unclear naming.
- Nit (optional): style, minor refactors.
Writing good review comments
- Lead with the problem, not the solution. ("This will NPE if
useris null" beats "add a null check".) - Suggest a fix only after stating the issue.
- Distinguish blocking from nit explicitly.
- Praise good design decisions too — reviews aren't only for problems.
Output format
## Blocking
- path/file.ts:42 — <issue>
## Important
- path/file.ts:88 — <issue>
## Nits / Suggestions
- path/file.ts:120 — <nit>
## What's good
- <concise positive note>
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review?
Review code changes for correctness, security, performance, and maintainability before merging. Use when reviewing a PR/diff or auditing a file for quality.
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…