code-review
БесплатноБез исполняемых скриптовНе проверенTwo-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line evidence; (2) receiving review…
от romiluz13★ 167 звёзд на GitHubОб этом скилле
Code Review (Adversarial + Receiving)
Reference Files
Read only what's needed:
references/review-order-and-checkpoints.md— review order, checkpoint discipline; load when starting a review that spans multiple files or needs a checkpointed passreferences/code-review-heuristics.md— heuristics, pattern recognition, false-positive prevention; load when the diff is non-trivial or before reporting zero findings (Zero-Finding Halt re-scan)references/security-review-checklist.md— security review checklist; load whenever the diff touches auth, input handling, network, secrets, or data access
Run ADVERSARIAL when producing findings on a diff; run RECEIVING when acting on findings someone else produced. The Code Smells catalog, AI-Generated Anti-Patterns, Metric Honesty Rule, and Deferred Findings handling below apply in both modes.
Mode: ADVERSARIAL REVIEW
Only report issues with confidence ≥80 — below that, a finding is more likely noise than signal, and noise burns the fix loop's time and trust. Do not inflate a score to smuggle a hunch through; a genuine security hunch goes to the Summary as an open question (see the Security exception under Confidence Scoring). Every finding states category, impact, and why it matters. Present a recommendation, not a menu. Be opinionated.
Signal quality rule: One finding with file:line evidence and a fix is worth more than ten generic observations. Never report a pattern without showing where it lives.
Two-Stage Review
Stage 1: Spec Compliance — Does the code do what the plan/spec asked? Check: phase exit criteria met, interfaces match plan's Consumes/Produces, no scope drift, no missing scenarios.
Stage 2: Code Quality — Is the code well-built? Check: correctness, performance, security, clarity, test coverage.
One-fact rule: On a consequential change, find the one fact the change is safe because of — a caller invariant, a lifecycle assumption, a data-shape contract at a boundary — and spend the review proving that fact instead of enumerating maybes. The fact is usually one a breakage grep will not surface. If you cannot prove it, the change is unreviewed; the maybes you listed do not change that.
Review Order
Top-down (spec → architecture → module → function → line) for first pass. Bottom-up (line → function → module) for detail pass. See references/review-order-and-checkpoints.md.
Severity Classification
| Severity | Criteria |
|---|---|
| CRITICAL | Data loss, security breach, silent data corruption |
| HIGH | User-visible broken behavior |
| MEDIUM | Suboptimal but functional |
| LOW | Code smell, style |
Confidence Scoring
| Confidence | Meaning |
|---|---|
| 90-100 | Verified: read the code, confirmed the issue, can cite file:line |
| 80-89 | Strong: read surrounding context, pattern is clear |
| <80 | Do not report — insufficient evidence |
Security exception: a security-category finding below 80 confidence is NOT silently dropped. Surface it as an explicit open question in the review Summary (e.g., "Possible auth bypass at file:line — could not confirm exploit path"), not as a finding. The <80 floor drops everything else.
Parallel Review + Router Merge
When code-reviewer and failure-hunter run in parallel (BUILD workflow):
- code-reviewer (Assessment A): correctness, performance, spec compliance. Forms opinion WITHOUT seeing the hunter's scan.
- failure-hunter (Assessment B): silent failure scan using red-flags table. Does NOT see the reviewer's findings.
- Router-owned merge: after both complete, the router writes a merged findings summary into the workflow artifact before verifier handoff. Where both agree → high confidence. Where the hunter caught what the reviewer missed → keep. Where the hunter finding is a false positive → drop with reason. Contradictory verdicts: the blocking verdict is authoritative (
CHANGES_REQUESTEDoverAPPROVE,FAILoverPASS) and is logged instatus_history, except that a re-raised finding whose dispute the verifier upheld (DISPUTE_UPHELD) is dropped by the router and one whose dispute is still in flight continues to the verifier.
Zero-Finding Halt
Zero findings on a non-trivial change → insufficient depth, not perfect code. Re-scan against heuristics and security checklist before reporting zero findings: APPROVE for code-reviewer, CLEAN for failure-hunter. A zero-finding APPROVE also needs at least three positive assertions with file:line evidence, the router's validity check, which triggers fallback inline verification when they are missing.
Code Smells (Fowler Catalog)
Scan for these 16 named smells during review. Each is actionable — not a style preference. "Messy" is not actionable; "Mysterious Name" is. Each smell is a labelled heuristic and always a judgement call ("possible Feature Envy"), never a hard violation:
| Smell | Signal | Fix | | ------ | ------
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobLSPBashВложенные файлы
FAQ
Что делает скилл code-review?
Two-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line evidence; (2) receiving review — verify-before- agreeing discipline for acting on external/human review feedback.
Как установить скилл 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