code-review
БесплатноБез исполняемых скриптовНе проверенReview a change against repo standards and its originating spec, with parallel sub-agents. Use when the user asks to review a branch, PR, commit, or WIP…
от ivanrvpereira★ 19 звёзд на GitHubОб этом скилле
Review changes through two independent axes:
- Standards — does the changed code follow this repo's documented standards and avoid introduced maintainability, reliability, security, or operational risks?
- Spec — does the changed code faithfully implement the originating issue / PRD / request, without omissions or scope creep?
The axes run as parallel sub-agents so conventions and product intent do not pollute each other. Aggregate them separately; do not merge them into one ranked list.
Review discipline
Apply these rules to every finding on both axes:
- Only changed behavior. Flag issues introduced or exposed by this change, not pre-existing problems.
- Actionable and provable. Only report issues the author would likely fix after seeing the evidence. Avoid speculative, preference-only, or purely stylistic comments unless a documented standard requires them.
- Diff-overlapping location. Each finding must point to a changed line/hunk, or the smallest changed function/block when exact line numbers are unavailable.
- Evidence first. Cite the changed code, the violated standard, and/or the spec line. If the evidence is weak, omit the finding.
- Short comments. Keep each finding concise: title, location, why it matters, and the minimal fix direction.
- No tool-enforced noise. Skip formatting/lint/type issues that project tooling already enforces unless the current diff clearly bypasses that tooling.
Use these priorities inside each axis:
- [P0] Release blocker: data loss, active exploit, total outage, irreversible destructive operation, or failed core requirement.
- [P1] High impact: security/privacy issue, broken major workflow, incorrect persistence/API contract, migration risk, or missing required behavior.
- [P2] Normal bug or maintainability problem: likely user-facing breakage, confusing design, fragile error handling, or significant code smell.
- [P3] Minor: low-risk edge case, small cleanup, or optional improvement worth tracking.
Mandatory risk checks
Run these checks even when the repo has no review guidelines:
Untrusted input and boundary checks
Treat data from users, HTTP, files, env vars, databases, webhooks, subprocesses, LLM/tool output, CLI args, and third-party APIs as untrusted. Flag changed code that feeds untrusted data into:
- authz/authn decisions, permission checks, tenant/account boundaries;
- SQL/NoSQL queries, shell commands, filesystem paths, templates/HTML/Markdown, redirects, or deserializers;
- money, billing, quotas, rate limits, feature flags, migrations, or destructive operations;
- logging/telemetry where secrets or personal data could leak.
Fail-fast error handling
Scrutinize changed code that silently falls back, catches broadly, drops errors, retries indefinitely, or proceeds after partial failure. Prefer surfacing the failure for:
- writes, migrations, billing, notifications, queue/cron jobs, and cache invalidation;
- security, permissions, configuration, and dependency initialization;
- API boundary changes where callers need deterministic failure semantics.
Human callouts, not automatic blockers
List these separately as Human callouts unless you found a concrete bug:
- migrations/schema/data backfills;
- dependency upgrades, lockfile churn, build tooling, or runtime version changes;
- auth/permission, public API, SDK, CLI, or wire-format changes;
- destructive operations, filesystem/network access, background jobs, cron, billing, or external integrations;
- performance-sensitive paths, caching semantics, observability, or rollback concerns.
Process
1. Pin the review target
Prefer a fixed point the user supplies: commit SHA, branch name, tag, main, HEAD~5, etc. Use a three-dot range for branch-style reviews:
git diff <fixed-point>...HEAD
git log <fixed-point>..HEAD --oneline
Confirm the ref resolves (git rev-parse <fixed-point>) and the diff is non-empty before spawning sub-agents.
If the user explicitly asks for another target, use the matching command instead:
- Uncommitted/WIP:
git diff --cachedandgit diff. - Single commit:
git show --format=fuller --stat --patch <commit>. - PR: fetch/view the PR with the repo's GitHub/GitLab workflow, then review its merge-base diff.
- Folder snapshot: only use when the user explicitly asks for a folder review; state that findings are not limited to a git diff.
If the user did not identify a target and intent is ambiguous, ask one clarifying question.
2. Identify the spec source
Look for the originating request, in this order:
- Issue/PR references in branch names and commit messages (
#123,Closes #45, GitLab!67, Linear IDs, etc.). Use the repo's documented issue-tracker workflow; for GitHub, prefergh. - A path, issue, PR, ticket, or prompt the user passed as an argument.
- A PRD/spec file under
docs/,specs/,.scratch/, or project-specific planning directories ma
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-review?
Review a change against repo standards and its originating spec, with parallel sub-agents. Use when the user asks to review a branch, PR, commit, or WIP changes, or to "review since X".
Как установить скилл 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