/code-review-leadership:code-review-standardsfrom code-review-leadership
Establishes clear, enforceable code review standards that balance quality with velocity, enabling async review and knowledge sharing. Use when creating or updating review expectations or scaling engineering teams.
Ships in code-review-leadership. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
Before establishing standards, gather:
What requires review?
Fast-track exceptions (lighter review):
Define what "approved" means:
Must have (blocking):
Nice-to-have (not blocking):
Nits (request only, not requirement):
Blockers (must fix):
Review timing:
Review rounds:
Escalation:
Document patterns:
Good review comment (specific, actionable, kind):
The function iterates through the user list for each item, making this O(n²).
Could you optimize using a Set for lookup? Something like:
const userSet = new Set(users.map(u => u.id));
Then check `userSet.has(user.id)` instead of the loop.
Bad review comment (vague, judgmental):
This is inefficient. Rewrite it.
A code review standards document:
# Code Review Standards
## Scope
- All production code requires review
- Config, tests, and docs require review
- Fast-track: Single-line typos, documentation-only
## Acceptance Checklist (Blocking)
- [ ] Tests included and passing
- [ ] No obvious performance regressions
- [ ] Error handling present
- [ ] Security reviewed (if applicable)
- [ ] Documentation updated
- [ ] Follows style guide
## Nits vs. Blockers
**Nits**: Style, naming, comments, log verbosity
**Blockers**: Logic bugs, missing tests, security, performance regression
## Timing
- Review target: 4 business hours
- Approval target: 8 business hours
- One round typical; escalate if stuck
## Approvers
- Any senior engineer can approve
- Tech lead for critical/security changes
## Examples
[Code samples showing good/bad comments]
## Escalation
[Process for disagreements, blocked PRs]
Code Review Standards: Python Backend Team
Must Have:
pytest without errorsnoqa or type: ignore comments unless explicitly approved by tech leadgit grep -E '(API_KEY|PASSWORD|TOKEN)')Example: Good review comment
# This query could be optimized
users = db.session.query(User).all()
for user in users:
if user.email == search_email:
return user
# Suggestion (SQL filter is more efficient):
return db.session.query(User).filter_by(email=search_email).first()
Example: Bad review comment
This query is inefficient. Fix it.
Nits (request, not blocking):
Blockers (must fix):
When reviewing and setting standards:
Description: Reviewer focuses on variable naming and comment style while missing logic bugs.
Guard: Use linters/formatters for style. Reviewers focus on logic, architecture, tests.
Description: Different reviewers have different expectations; PR gets bounced back multiple times.
Guard: Document explicitly. If not in the standards, it's not a blocker.
Description: Junior developer blocks PR from senior engineer over style preference.
Guard: Clear approver tiers. Design decisions reserved for senior/tech lead review.
Description: Insisting on tests, refactoring, perfection before merge; ship cycle becomes months.
Guard: Prioritize shipping. Non-blocking issues can be follow-ups. Perfection is the enemy of good.
Description: Code reviewed with "Fix this in a follow-up" but follow-up never happens.
Guard: Create tracking issue immediately. Link from code review. Revisit quarterly.
Before rolling out standards:
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/automated-review-setupSet up automated code review tools (linters, SAST, dependency scanning) to reduce manual review burden. Use when configuring CI/CD toolchains./constructive-feedbackProvide code review feedback that improves code and team culture. Use when training reviewers or giving feedback guidelines./merge-strategyDefine merge strategies (squash, rebase, merge commits) that balance history clarity with practical workflow. Use when setting CI/CD merge policies.npx claudepluginhub sethdford/claude-skills --plugin tech-lead-code-reviewOther plugins' skills for the same job