From grimoire
Designs or improves a team code review workflow to reduce bottlenecks and catch quality issues before production.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:design-code-review-processThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Establish a code review process that catches defects, spreads knowledge, and maintains velocity without creating bottlenecks.
Establish a code review process that catches defects, spreads knowledge, and maintains velocity without creating bottlenecks.
Adopted by: Google (mandatory for all commits), Microsoft, Amazon, Meta — all require code review before merge; codified in Google Engineering Practices public documentation Impact: SmartBear study: code review finds 60% of defects before testing; DORA research shows teams with effective code review deploy 46x more frequently with 5x lower change failure rate; review sessions >60 minutes lose effectiveness Why best: Humans write code with blind spots that fresh eyes catch; code review distributes knowledge, enforces standards, and prevents technical debt accumulation
Sources: Google "Engineering Practices Documentation" (2019, opensource.google); Cohen et al. "Best Kept Secrets of Peer Code Review" SmartBear (2006); Forsgren, Humble & Kim "Accelerate" (2018)
Define review scope and SLA — Specify what requires review (all merges to main, not experimental branches), who must approve (1 reviewer for low-risk, 2 for high-risk), and the SLA (respond within 1 business day, resolve within 2). Without SLAs, reviews become bottlenecks. Google's standard: first response within 1 business day. Critically: fast individual responses matter more than fast overall process. A reviewer who responds in hours — even to say "I'll look at this fully tomorrow" — eliminates most developer frustration with code review. A reviewer who responds every 2 days while requesting major changes each time produces legitimate complaints about review being too slow, even if their standards are correct. Most complaints about "strict reviewers" disappear when those same reviewers respond quickly.
Set PR size guidelines — Maximum 400 lines changed per PR (SmartBear data: review effectiveness drops sharply above 400 lines). Enforce this via PR description templates or CI checks. Large PRs should be decomposed into a stack of smaller PRs with a feature flag. Smaller PRs get faster, more thorough reviews.
Write PR descriptions that enable review — Structure: First line = short, focused summary of what changed (imperative mood, ≤72 chars); Body = why this change was made, the problem it solves, the approach chosen and its tradeoffs, any limitations, links to tickets/design docs. The first line is what appears in git log — it must stand alone. The body provides the context reviewers need to evaluate the approach rather than just the implementation. A PR without a body receives surface-level review; a PR with a clear body enables reviewers to focus on the right questions.
Distinguish blocking from non-blocking feedback — Use explicit prefixes: [blocking] must be fixed before merge, [nit] stylistic preference the author may ignore, [question] genuine question (not critique), [suggestion] optional improvement. This prevents nit-picking from blocking merges on correctness.
Establish reviewer assignment policy — Define: who must review (code owner), who may review (anyone), and load balancing (rotate reviewers, maximum 3 PRs assigned simultaneously). Use CODEOWNERS files to auto-assign. Unassigned PRs sit in a queue no one feels responsible for.
Checklist for reviewers — Review for: correctness (does it do what it claims?), tests (are edge cases covered?), security (injection, auth bypass, secrets in code), performance (N+1 queries, missing indexes), maintainability (naming, complexity, dead code). Not aesthetics (handled by linter).
Automate what automation handles — Lint, format, style, and test coverage checks must run in CI before human review begins. Reviewers should never comment on formatting that a linter catches. Configure auto-merge for dependabot when CI passes. Humans review logic, not style.
Handle disagreements with a clear escalation path — When author and reviewer disagree after one round of discussion: author explains rationale; if still disagreed, escalate to tech lead within 24 hours. Unresolved disagreements that block merge for > 2 days indicate a process problem.
Measure review health — Track: median time-to-first-review, median time-to-merge, average PR size, and number of review rounds per PR. Review health correlates directly with team velocity. Alert when time-to-first-review exceeds SLA. Review these metrics monthly.
Conduct periodic process retrospectives — Quarterly: ask the team what's working and what's frustrating about the review process. Adjust SLAs, size guidelines, or reviewer rotation based on feedback. Code review process that doesn't evolve becomes a bureaucratic friction point.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireProvides structured code review processes, conventional comments patterns, language-specific checklists, and feedback templates for PR reviews and standardizing practices.
Systematically evaluates pull requests for correctness, design, readability, and tests, delivering actionable and kind feedback based on Google's engineering practices.
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.