Code Reviewing Skill — Quick Reference
This skill provides operational checklists and prompts for structured code review across languages and stacks. Use it when the primary task is reviewing existing code rather than designing new systems.
Quick Reference
| Review Type |
Focus Areas |
Key Checklist |
When to Use |
| Security Review |
Auth, input validation, secrets, OWASP Top 10 |
software-security-appsec |
Security-critical code, API endpoints |
| Supply Chain Review |
Dependencies, lockfiles, licenses, SBOM, CI policies |
dev-dependency-management |
Dependency bumps, build/CI changes |
| Performance Review |
N+1 queries, algorithms, caching, hot paths |
DB queries, loops, memory allocation |
High-traffic features, bottlenecks |
| Correctness Review |
Logic, edge cases, error handling, tests |
Boundary conditions, null checks, retries |
Business logic, data transformations |
| Maintainability Review |
Naming, complexity, duplication, readability |
Function length, naming clarity, DRY |
Complex modules, shared code |
| Test Review |
Coverage, edge cases, flakiness, assertions |
Test quality, missing scenarios |
New features, refactors |
| Frontend Review |
Accessibility, responsive design, performance |
frontend-review.md |
UI/UX changes |
| Backend Review |
API design, error handling, database patterns |
api-review.md |
API endpoints, services |
| Blockchain Review |
Reentrancy, access control, gas optimization |
crypto-review.md |
Smart contracts, DeFi protocols |
Specialized: .NET/EF Core Crypto Integration
Skip unless reviewing C#/.NET crypto/fintech services using Entity Framework Core.
For C#/.NET crypto/fintech services using Entity Framework Core, see:
- references/dotnet-efcore-crypto-rules.md — Complete review rules (correctness, security, async, EF Core, tests, MRs)
Key rules summary:
- Review only new/modified code in the MR
- Use
decimal for financial values, UTC for dates
- Follow
CC-SEC-03 (no secrets in code) and CC-OBS-02 (no sensitive data in logs)
- Async for I/O, pass
CancellationToken, avoid .Result/.Wait() (see CC-ERR-04, CC-FLOW-03)
- EF Core:
AsNoTracking for reads, avoid N+1, no dynamic SQL
Result<T> pattern for explicit success/fail
When to Use This Skill
Invoke this skill when the user asks to:
- Review a pull request or diff for issues
- Audit code for security vulnerabilities or injection risks
- Improve readability, structure, and maintainability
- Suggest targeted refactors without changing behavior
- Validate tests and edge-case coverage
When NOT to Use This Skill
Decision Tree: Selecting Review Mode
Code review task: [What to Focus On?]
├─ Security-critical changes?
│ ├─ Auth/access control → Security Review (OWASP, auth patterns)
│ ├─ User input handling → Input validation, XSS, SQL injection
│ └─ Smart contracts → Blockchain Review (reentrancy, access control)
│
├─ Performance concerns?
│ ├─ Database queries → Check for N+1, missing indexes
│ ├─ Loops/algorithms → Complexity analysis, caching
│ └─ API response times → Profiling, lazy loading
│
├─ Correctness issues?
│ ├─ Business logic → Edge cases, error handling, tests
│ ├─ Data transformations → Boundary conditions, null checks
│ └─ Integration points → Retry logic, timeouts, fallbacks
│
├─ Maintainability problems?
│ ├─ Complex code → Naming, function length, duplication
│ ├─ Hard to understand → Comments, abstractions, clarity
│ └─ Technical debt → Refactoring suggestions
│
├─ Test coverage gaps?
│ ├─ New features → Happy path + error cases
│ ├─ Refactors → Regression tests
│ └─ Bug fixes → Reproduction tests
│
└─ Stack-specific review?
├─ Frontend → [frontend-review.md](assets/web-frontend/frontend-review.md)
├─ Backend → [api-review.md](assets/backend-api/api-review.md)
├─ Mobile → [mobile-review.md](assets/mobile/mobile-review.md)
├─ Infrastructure → [infrastructure-review.md](assets/infrastructure/infrastructure-review.md)
└─ Blockchain → [crypto-review.md](assets/blockchain/crypto-review.md)
Multi-Mode Reviews:
For complex PRs, apply multiple review modes sequentially:
- Security first (P0/P1 issues)
- Correctness (logic, edge cases)
- Performance (if applicable)
- Maintainability (P2/P3 suggestions)
Async Review Workflows (2026)
Timezone-Friendly Reviews
| Practice |
Implementation |
| Review windows |
Define 4-hour overlap windows |
| Review rotation |
Assign reviewers across timezones |
| Async communication |
Use PR comments, not DMs |
| Review SLAs |
24-hour initial response, 48-hour completion |
Non-Blocking Reviews
PR Submitted -> Auto-checks (CI) -> Async Review -> Merge
| | |
Author continues If green, Reviewer comments
on other work queue for when available
review
Anti-patterns:
- Synchronous review meetings for routine PRs
- Blocking on reviewer availability for non-critical changes
- Single reviewer bottleneck
Review Prioritization Matrix
| Priority |
Criteria |
SLA |
| P0 |
Security fix, production incident |
4 hours |
| P1 |
Bug fix, blocking dependency |
24 hours |
| P2 |
Feature work, tech debt |
48 hours |
| P3 |
Documentation, refactoring |
72 hours |
Optional: AI/Automation Extensions
Note: AI-assisted review tools. Human review remains authoritative.
AI Review Assistants
| Tool |
Use Case |
Limitation |
| GitHub Copilot PR |
Summary, suggestions |
May miss context |
| CodeRabbit |
Automated PR review comments |
Requires human validation |
| Qodo |
Test generation + review, 15+ workflows |
Enterprise pricing |
| OpenAI Codex |
System-level codebase context |
API integration required |
| AWS Security Agent |
OWASP Top 10, policy violations |
Preview only (2026) |
| Endor Labs AI SAST |
AI-assisted SAST |
Security-focused |
| Graphite |
PR stacking, stack-aware merge queue |
Process, not content |
AI assistant rules:
- AI suggestions are advisory only
- Human reviewer approves/rejects
- AI cannot bypass security review
- AI findings require manual verification
AI Review Checklist
Simplicity and Complexity Control
- Prefer existing, battle-tested libraries over bespoke implementations when behavior is identical.
- Flag avoidable complexity early: remove dead/commented-out code, collapse duplication, and extract single-responsibility helpers.
- Call out premature optimization; favor clarity and measured, evidence-based tuning.
- Encourage incremental refactors alongside reviews to keep modules small, predictable, and aligned to standards.
Operational Playbooks
Shared Foundation
Code Review Specific
- references/operational-playbook.md — Review scope rules, severity ratings (P0-P3), checklists, modes, and PR workflow patterns
Default Review Output (Agent-Facing)
When producing a review, default to:
- Short summary of intent + risk
- Findings grouped by
P0/P1/P2/P3 (mark REQUIRED vs OPTIONAL)
- Concrete suggestions (minimal diffs or test cases)
- Follow-up questions when requirements or constraints are unclear
Use assets/core/review-comment-guidelines.md for comment style and labeling.
Navigation
Resources
- references/operational-playbook.md
- references/review-checklist-comprehensive.md
- references/implementing-effective-code-reviews-checklist.md
- references/looks-good-to-me-checklist.md
- references/automation-tools.md
- references/dotnet-efcore-crypto-rules.md
- references/psychological-safety-guide.md
- references/large-pr-review-strategies.md
- references/security-focused-review-guide.md
- references/code-review-metrics.md
Templates
- assets/core/pull-request-description-template.md
- assets/core/review-checklist-judgment.md
- assets/core/review-comment-guidelines.md
- assets/backend-api/api-review.md
- assets/web-frontend/frontend-review.md
- assets/mobile/mobile-review.md
- assets/infrastructure/infrastructure-review.md
- assets/blockchain/crypto-review.md
- assets/data-ml/data-pipeline-review.md
- assets/data-ml/experiment-tracking-review.md
- assets/data-ml/ml-model-review.md
- assets/data-ml/ml-deployment-review.md
Data
Trend Awareness Protocol
IMPORTANT: When users ask recommendation questions about code review tools, practices, or automation, you MUST use WebSearch to check current trends before answering.
Trigger Conditions
- "What's the best code review tool?"
- "What should I use for [automated code review/PR automation]?"
- "What's the latest in code review practices?"
- "Current best practices for [code review/PR workflow]?"
- "Is [GitHub Copilot PR/CodeRabbit] still relevant in 2026?"
- "[CodeRabbit] vs [Graphite] vs [other]?"
- "Best AI code review assistant?"
Required Searches
- Search:
"code review best practices 2026"
- Search:
"[specific tool] vs alternatives 2026"
- Search:
"AI code review tools January 2026"
- Search:
"PR automation trends 2026"
What to Report
After searching, provide:
- Current landscape: What code review tools/practices are popular NOW
- Emerging trends: New AI assistants, PR tools, or review patterns gaining traction
- Deprecated/declining: Tools/approaches losing relevance or support
- Recommendation: Based on fresh data, not just static knowledge
Example Topics (verify with fresh search)
- AI code review (GitHub Copilot PR, CodeRabbit, Cursor)
- PR automation (Graphite, Stacked PRs, merge queues)
- Code review platforms (GitHub, GitLab, Bitbucket)
- Review bots and automation
- Async review practices for distributed teams
- Review metrics and analytics tools
Fact-Checking
- Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
- Prefer primary sources; report source links and dates for volatile information.
- If web access is unavailable, state the limitation and mark guidance as unverified.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: software-code-review3description: Systematic code review patterns and checklists. Use when reviewing PRs or diffs for correctness, security, readability, and maintainability. Use when this capability is needed.4---56# Code Reviewing Skill — Quick Reference78This skill provides operational checklists and prompts for structured code review across languages and stacks. Use it when the primary task is reviewing existing code rather than designing new systems.910## Quick Reference1112| Review Type | Focus Areas | Key Checklist | When to Use |13|-------------|-------------|---------------|-------------|14| Security Review | Auth, input validation, secrets, OWASP Top 10 | [software-security-appsec](../software-security-appsec/SKILL.md) | Security-critical code, API endpoints |15| Supply Chain Review | Dependencies, lockfiles, licenses, SBOM, CI policies | [dev-dependency-management](../dev-dependency-management/SKILL.md) | Dependency bumps, build/CI changes |16| Performance Review | N+1 queries, algorithms, caching, hot paths | DB queries, loops, memory allocation | High-traffic features, bottlenecks |17| Correctness Review | Logic, edge cases, error handling, tests | Boundary conditions, null checks, retries | Business logic, data transformations |18| Maintainability Review | Naming, complexity, duplication, readability | Function length, naming clarity, DRY | Complex modules, shared code |19| Test Review | Coverage, edge cases, flakiness, assertions | Test quality, missing scenarios | New features, refactors |20| Frontend Review | Accessibility, responsive design, performance | [frontend-review.md](assets/web-frontend/frontend-review.md) | UI/UX changes |21| Backend Review | API design, error handling, database patterns | [api-review.md](assets/backend-api/api-review.md) | API endpoints, services |22| Blockchain Review | Reentrancy, access control, gas optimization | [crypto-review.md](assets/blockchain/crypto-review.md) | Smart contracts, DeFi protocols |2324---2526## Specialized: .NET/EF Core Crypto Integration2728Skip unless reviewing C#/.NET crypto/fintech services using Entity Framework Core.2930For C#/.NET crypto/fintech services using Entity Framework Core, see:3132- [references/dotnet-efcore-crypto-rules.md](references/dotnet-efcore-crypto-rules.md) — Complete review rules (correctness, security, async, EF Core, tests, MRs)3334**Key rules summary:**3536- Review only new/modified code in the MR37- Use `decimal` for financial values, UTC for dates38- Follow `CC-SEC-03` (no secrets in code) and `CC-OBS-02` (no sensitive data in logs)39- Async for I/O, pass `CancellationToken`, avoid `.Result`/`.Wait()` (see `CC-ERR-04`, `CC-FLOW-03`)40- EF Core: `AsNoTracking` for reads, avoid N+1, no dynamic SQL41- `Result<T>` pattern for explicit success/fail4243---4445## When to Use This Skill4647Invoke this skill when the user asks to:4849- Review a pull request or diff for issues50- Audit code for security vulnerabilities or injection risks51- Improve readability, structure, and maintainability52- Suggest targeted refactors without changing behavior53- Validate tests and edge-case coverage5455## When NOT to Use This Skill5657- **System design or architecture**: Use [software-architecture-design](../software-architecture-design/SKILL.md) for greenfield architecture decisions58- **Writing new code from scratch**: This skill reviews existing code, not authoring new features59- **Deep security audits**: For penetration testing or comprehensive security assessments, use [software-security-appsec](../software-security-appsec/SKILL.md)60- **Deep performance investigations**: For profiling/observability, use [qa-observability](../qa-observability/SKILL.md) and for SQL/query tuning use [data-sql-optimization](../data-sql-optimization/SKILL.md)6162## Decision Tree: Selecting Review Mode6364```text65Code review task: [What to Focus On?]66 ├─ Security-critical changes?67 │ ├─ Auth/access control → Security Review (OWASP, auth patterns)68 │ ├─ User input handling → Input validation, XSS, SQL injection69 │ └─ Smart contracts → Blockchain Review (reentrancy, access control)70 │71 ├─ Performance concerns?72 │ ├─ Database queries → Check for N+1, missing indexes73 │ ├─ Loops/algorithms → Complexity analysis, caching74 │ └─ API response times → Profiling, lazy loading75 │76 ├─ Correctness issues?77 │ ├─ Business logic → Edge cases, error handling, tests78 │ ├─ Data transformations → Boundary conditions, null checks79 │ └─ Integration points → Retry logic, timeouts, fallbacks80 │81 ├─ Maintainability problems?82 │ ├─ Complex code → Naming, function length, duplication83 │ ├─ Hard to understand → Comments, abstractions, clarity84 │ └─ Technical debt → Refactoring suggestions85 │86 ├─ Test coverage gaps?87 │ ├─ New features → Happy path + error cases88 │ ├─ Refactors → Regression tests89 │ └─ Bug fixes → Reproduction tests90 │91 └─ Stack-specific review?92 ├─ Frontend → [frontend-review.md](assets/web-frontend/frontend-review.md)93 ├─ Backend → [api-review.md](assets/backend-api/api-review.md)94 ├─ Mobile → [mobile-review.md](assets/mobile/mobile-review.md)95 ├─ Infrastructure → [infrastructure-review.md](assets/infrastructure/infrastructure-review.md)96 └─ Blockchain → [crypto-review.md](assets/blockchain/crypto-review.md)97```9899**Multi-Mode Reviews:**100101For complex PRs, apply multiple review modes sequentially:1021031. **Security first** (P0/P1 issues)1042. **Correctness** (logic, edge cases)1053. **Performance** (if applicable)1064. **Maintainability** (P2/P3 suggestions)107108---109110## Async Review Workflows (2026)111112### Timezone-Friendly Reviews113114| Practice | Implementation |115|----------|----------------|116| Review windows | Define 4-hour overlap windows |117| Review rotation | Assign reviewers across timezones |118| Async communication | Use PR comments, not DMs |119| Review SLAs | 24-hour initial response, 48-hour completion |120121### Non-Blocking Reviews122123```text124PR Submitted -> Auto-checks (CI) -> Async Review -> Merge125 | | |126 Author continues If green, Reviewer comments127 on other work queue for when available128 review129```130131**Anti-patterns:**132133- Synchronous review meetings for routine PRs134- Blocking on reviewer availability for non-critical changes135- Single reviewer bottleneck136137### Review Prioritization Matrix138139| Priority | Criteria | SLA |140|----------|----------|-----|141| P0 | Security fix, production incident | 4 hours |142| P1 | Bug fix, blocking dependency | 24 hours |143| P2 | Feature work, tech debt | 48 hours |144| P3 | Documentation, refactoring | 72 hours |145146---147148### Optional: AI/Automation Extensions149150> **Note**: AI-assisted review tools. Human review remains authoritative.151152#### AI Review Assistants153154| Tool | Use Case | Limitation |155|------|----------|------------|156| GitHub Copilot PR | Summary, suggestions | May miss context |157| CodeRabbit | Automated PR review comments | Requires human validation |158| Qodo | Test generation + review, 15+ workflows | Enterprise pricing |159| OpenAI Codex | System-level codebase context | API integration required |160| AWS Security Agent | OWASP Top 10, policy violations | Preview only (2026) |161| Endor Labs AI SAST | AI-assisted SAST | Security-focused |162| Graphite | PR stacking, stack-aware merge queue | Process, not content |163164**AI assistant rules:**165166- AI suggestions are advisory only167- Human reviewer approves/rejects168- AI cannot bypass security review169- AI findings require manual verification170171#### AI Review Checklist172173- [ ] AI suggestions validated against codebase patterns174- [ ] AI-flagged issues manually confirmed175- [ ] False positives documented for tool improvement176- [ ] Human reviewer explicitly approved177178---179180## Simplicity and Complexity Control181182- Prefer existing, battle-tested libraries over bespoke implementations when behavior is identical.183- Flag avoidable complexity early: remove dead/commented-out code, collapse duplication, and extract single-responsibility helpers.184- Call out premature optimization; favor clarity and measured, evidence-based tuning.185- Encourage incremental refactors alongside reviews to keep modules small, predictable, and aligned to standards.186187---188189## Operational Playbooks190191**Shared Foundation**192193- [../software-clean-code-standard/references/clean-code-standard.md](../software-clean-code-standard/references/clean-code-standard.md) - Canonical clean code rules (`CC-*`) for citation in reviews194- Legacy playbook: [../software-clean-code-standard/references/code-quality-operational-playbook.md](../software-clean-code-standard/references/code-quality-operational-playbook.md) - `RULE-01`–`RULE-13`, refactoring decision trees, and design patterns195196**Code Review Specific**197198- [references/operational-playbook.md](references/operational-playbook.md) — Review scope rules, severity ratings (P0-P3), checklists, modes, and PR workflow patterns199200## Default Review Output (Agent-Facing)201202When producing a review, default to:203204- Short summary of intent + risk205- Findings grouped by `P0`/`P1`/`P2`/`P3` (mark REQUIRED vs OPTIONAL)206- Concrete suggestions (minimal diffs or test cases)207- Follow-up questions when requirements or constraints are unclear208209Use [assets/core/review-comment-guidelines.md](assets/core/review-comment-guidelines.md) for comment style and labeling.210211## Navigation212213**Resources**214- [references/operational-playbook.md](references/operational-playbook.md)215- [references/review-checklist-comprehensive.md](references/review-checklist-comprehensive.md)216- [references/implementing-effective-code-reviews-checklist.md](references/implementing-effective-code-reviews-checklist.md)217- [references/looks-good-to-me-checklist.md](references/looks-good-to-me-checklist.md)218- [references/automation-tools.md](references/automation-tools.md)219- [references/dotnet-efcore-crypto-rules.md](references/dotnet-efcore-crypto-rules.md)220- [references/psychological-safety-guide.md](references/psychological-safety-guide.md)221- [references/large-pr-review-strategies.md](references/large-pr-review-strategies.md)222- [references/security-focused-review-guide.md](references/security-focused-review-guide.md)223- [references/code-review-metrics.md](references/code-review-metrics.md)224225**Templates**226- [assets/core/pull-request-description-template.md](assets/core/pull-request-description-template.md)227- [assets/core/review-checklist-judgment.md](assets/core/review-checklist-judgment.md)228- [assets/core/review-comment-guidelines.md](assets/core/review-comment-guidelines.md)229- [assets/backend-api/api-review.md](assets/backend-api/api-review.md)230- [assets/web-frontend/frontend-review.md](assets/web-frontend/frontend-review.md)231- [assets/mobile/mobile-review.md](assets/mobile/mobile-review.md)232- [assets/infrastructure/infrastructure-review.md](assets/infrastructure/infrastructure-review.md)233- [assets/blockchain/crypto-review.md](assets/blockchain/crypto-review.md)234- [assets/data-ml/data-pipeline-review.md](assets/data-ml/data-pipeline-review.md)235- [assets/data-ml/experiment-tracking-review.md](assets/data-ml/experiment-tracking-review.md)236- [assets/data-ml/ml-model-review.md](assets/data-ml/ml-model-review.md)237- [assets/data-ml/ml-deployment-review.md](assets/data-ml/ml-deployment-review.md)238239**Data**240- [data/sources.json](data/sources.json) — Curated external references241- Shared checklists: [../software-clean-code-standard/assets/checklists/secure-code-review-checklist.md](../software-clean-code-standard/assets/checklists/secure-code-review-checklist.md), [../software-clean-code-standard/assets/checklists/backend-api-review-checklist.md](../software-clean-code-standard/assets/checklists/backend-api-review-checklist.md)242243---244245## Trend Awareness Protocol246247**IMPORTANT**: When users ask recommendation questions about code review tools, practices, or automation, you MUST use WebSearch to check current trends before answering.248249### Trigger Conditions250251- "What's the best code review tool?"252- "What should I use for [automated code review/PR automation]?"253- "What's the latest in code review practices?"254- "Current best practices for [code review/PR workflow]?"255- "Is [GitHub Copilot PR/CodeRabbit] still relevant in 2026?"256- "[CodeRabbit] vs [Graphite] vs [other]?"257- "Best AI code review assistant?"258259### Required Searches2602611. Search: `"code review best practices 2026"`2622. Search: `"[specific tool] vs alternatives 2026"`2633. Search: `"AI code review tools January 2026"`2644. Search: `"PR automation trends 2026"`265266### What to Report267268After searching, provide:269270- **Current landscape**: What code review tools/practices are popular NOW271- **Emerging trends**: New AI assistants, PR tools, or review patterns gaining traction272- **Deprecated/declining**: Tools/approaches losing relevance or support273- **Recommendation**: Based on fresh data, not just static knowledge274275### Example Topics (verify with fresh search)276277- AI code review (GitHub Copilot PR, CodeRabbit, Cursor)278- PR automation (Graphite, Stacked PRs, merge queues)279- Code review platforms (GitHub, GitLab, Bitbucket)280- Review bots and automation281- Async review practices for distributed teams282- Review metrics and analytics tools283284## Fact-Checking285286- Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.287- Prefer primary sources; report source links and dates for volatile information.288- If web access is unavailable, state the limitation and mark guidance as unverified.289290---291> Converted and distributed by [TomeVault](https://tomevault.io/claim/vasilyu1983) — claim your Tome and manage your conversions.292<!-- tomevault:4.0:skill_md:2026-04-11 -->