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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-review-leadership:code-review-standardsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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:
npx claudepluginhub sethdford/claude-skills --plugin tech-lead-code-reviewDesigns or improves a team code review workflow to reduce bottlenecks and catch quality issues before production.
Provides principles and process for effective code reviews: constructive feedback, systematic analysis, and collaborative improvement. Use for PR reviews, establishing standards, or mentoring.
Provides structured code review processes, conventional comments patterns, language-specific checklists, and feedback templates for PR reviews and standardizing practices.