Command Palette

Search for a command to run...

Назад к скиллам
скилл № 70392

code-review-standards

Establish clear, enforceable code review standards that balance quality with velocity, enabling asynchronous review and knowledge sharing. Use when creating…

БесплатноБез исполняемых скриптов
sethdfordот sethdford★ 51 звезда на GitHub

Установить code-review-standards в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Code Review Standards

Define explicit code review criteria that scale with your team, enabling reviewers to approve confidently without author present while catching bugs, knowledge gaps, and architectural issues.

Context

You are helping an engineering leader establish or improve code review standards. Good standards enable async review, spread knowledge, and catch bugs early. Poor standards waste time (nitpicking) or miss issues (insufficient depth).

Code review is an investment: 15 min review per PR catches bugs that might take days to debug in production. But inefficient review (bike-shedding, lack of clear criteria) frustrates teams and slows shipping.

Domain Context

  • High-performing teams have explicit standards: Clear criteria remove guesswork; reviewers approve without author present
  • Research (McKinsey): Teams with clear code review standards ship 40% faster AND have fewer production defects
  • Code review is about code, not author: Separate design feedback ("Consider using factory pattern") from style/preference
  • Standards evolve: As team skill increases, standards can become more ambitious
  • Async review requires clarity: If criteria are vague, reviewers block waiting for clarification
  • Knowledge sharing: Code review is a teaching opportunity, not gatekeeping

When to Use This Skill

  • You're establishing standards for a new team
  • Code review comments are inconsistent (different standards for different PRs)
  • Shipping is slow due to review delays
  • Bugs are slipping into production that review should have caught
  • You want to scale team size without review becoming a bottleneck

Prerequisites

Before establishing standards, gather:

  1. Maturity level of the team: Junior developers (need more hands-on), mid-level (more independence), senior (can own large features)
  2. Code health baseline: What bugs are slipping through? What's the bug escape rate?
  3. Current review process: How long does review take? How many rounds?
  4. Team values: Speed vs. perfection? Risk tolerance?
  5. Business context: Are you shipping fast (early-stage) or optimizing stability (mature product)?

Instructions

1. Define Review Scope

What requires review?

  • All production code changes: Yes (including configuration)
  • Documentation: Yes (README, docs; typos don't need review)
  • Test changes: Yes (including test infrastructure)
  • Dependency updates: Yes (new dependencies reviewed; patch updates may be auto-merged)
  • Config/infrastructure: Yes (even "small" config changes can have big impact)

Fast-track exceptions (lighter review):

  • Single-line typo fixes
  • Documentation corrections
  • Reverts of broken code
  • Emergency hotfixes during outage (post-mortem review later)

2. Create the Review Acceptance Checklist

Define what "approved" means:

Must have (blocking):

  • Code compiles/runs without errors
  • Tests included for new logic; all tests passing
  • No obvious performance regressions (e.g., O(n²) where O(n) exists)
  • Error handling present (don't ignore exceptions; handle edge cases)
  • Security review passed (if code touches auth, payment, data access)
  • Documentation updated (README, comments, API docs if applicable)
  • Follows team style guide (enforced via linter if possible)
  • Minimal complexity increase (no unnecessary abstractions; KISS principle)

Nice-to-have (not blocking):

  • Refactoring opportunities noted (for future work)
  • Performance optimizations suggested (if not critical path)
  • Test coverage >80% (aim for 80%; don't obsess over 100%)

3. Clarify Nits vs. Blockers

Nits (request only, not requirement):

  • Style/formatting (should be auto-enforced by prettier/eslint)
  • Naming preferences (code is clear; author's name is reasonable)
  • Code comments (code is self-documenting; comment would be nice but not required)
  • Unused imports (nice-to-have cleanup)
  • Log verbosity (does it log too much/too little? nice-to-have improvement)

Blockers (must fix):

  • Logic bugs (code doesn't do what it claims)
  • Missing tests (no tests for new behavior)
  • Security issues (injection, auth bypass, exposed secrets)
  • Architectural violations (doesn't fit system design)
  • Performance regression (measurable slowdown on critical path)
  • Missing error handling (exception could crash service)

4. Set Expectations on Time & Process

Review timing:

  • Target: Code reviewed within 4 business hours
  • Approved: Within 8 business hours
  • If no response after 8h, author can merge with second reviewer approval

Review rounds:

  • First pass: Reviewer returns comments
  • Author responds: Shows fixes or explains reasoning
  • Final approval: No second round needed for trivial fixes; one round typical

Escalation:

  • If author disagrees with reviewer: Tech lead as tiebreaker
  • If reviewer is blocking for subjective reasons: Escalate to tech lead

5. Define Who Ca

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Grep
  3. 03Glob
  4. 04Write
  5. 05Edit

Вложенные файлы

  • examples/example-output.md
  • template.md

FAQ

Что делает скилл code-review-standards?

Establish clear, enforceable code review standards that balance quality with velocity, enabling asynchronous review and knowledge sharing. Use when creating or updating review expectations, scaling engineering teams, or improving code quality metrics.

Как установить скилл code-review-standards?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-review-standards запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить code-review-standards с