Code Review Checklist
Systematic code review combining quality gates, security audit (OWASP Top 10), and parallel checks for comprehensive validation.
Review Scope
- Review ONLY changed files (check diff, not entire file)
- Check related commits
- Link to related PRs/issues
Automated Quality Checks (Run FIRST)
Before any manual review, run automated checks:
# Python
ruff check src/ --fix && black --check src/ && isort --check-only src/
# TypeScript/JavaScript
eslint src/ --fix && prettier --check src/
Block review if checks fail. Return NEEDS_REVISION with specific violations.
Review Checklist
Correctness
Code Quality
Testing
Security (OWASP Top 10)
Documentation
Feedback Format
## Verdict: APPROVED | NEEDS_REVISION | FAILED
### Issues
- CRITICAL: X | HIGH: Y | MEDIUM: Z | LOW: W
### Details
- [CRITICAL] file.py:42 — SQL injection risk, use parameterized queries
- [HIGH] component.tsx:15 — Missing input validation
- [MEDIUM] test_utils.py:8 — Edge case not covered
### 🔍 Human Review Focus
1. [Item AI cannot fully validate — e.g., business logic correctness]
2. [Item 2 — e.g., UX flow matches requirements]
Parallel Review Pattern
For comprehensive reviews, run 5 checks simultaneously:
| Check |
Focus |
Agent |
| Goal |
Does it meet requirements? |
Themis |
| Quality |
Code quality, SOLID, DRY |
Themis |
| Security |
OWASP Top 10, secrets |
Themis |
| QA |
Tests, coverage, edge cases |
Themis |
| Context |
Fits architecture, no regressions |
Themis |
Severity Definitions
| Level |
Action |
Example |
| CRITICAL |
Block merge |
Security vulnerability, data loss risk |
| HIGH |
Must fix before merge |
Missing auth, broken error handling |
| MEDIUM |
Should fix soon |
Missing tests, code duplication |
| LOW |
Nice to have |
Naming, formatting, minor docs |
SOLID Principles Check
- Single Responsibility: Each class/function does one thing
- Open/Closed: Extensible without modification
- Liskov Substitution: Subtypes behave like base types
- Interface Segregation: Small, focused interfaces
- Dependency Inversion: Depend on abstractions, not concretions
Anti-Patterns
- ❌ Reviewing entire file instead of diff
- ❌ Approving without running tests
- ❌ Ignoring security implications
- ❌ Vague feedback ("looks good", "needs work")
- ❌ Nitpicking style over substance
Source: ils15/pantheon — distributed by TomeVault.
1---2name: code-review-checklist3description: Systematic code review with quality gates, security audit, and parallel checks. Use for structured feedback on pull requests. Use when this capability is needed.4---56# Code Review Checklist78Systematic code review combining quality gates, security audit (OWASP Top 10), and parallel checks for comprehensive validation.910---1112## Review Scope1314- Review **ONLY changed files** (check diff, not entire file)15- Check related commits16- Link to related PRs/issues1718---1920## Automated Quality Checks (Run FIRST)2122**Before any manual review, run automated checks:**2324```bash25# Python26ruff check src/ --fix && black --check src/ && isort --check-only src/2728# TypeScript/JavaScript29eslint src/ --fix && prettier --check src/30```3132**Block review if checks fail.** Return NEEDS_REVISION with specific violations.3334---3536## Review Checklist3738### Correctness39- [ ] Logic is correct and complete40- [ ] Edge cases handled41- [ ] Error handling appropriate42- [ ] Performance acceptable4344### Code Quality45- [ ] No duplication (DRY principle)46- [ ] Single responsibility functions47- [ ] Clear and descriptive naming48- [ ] Reasonable complexity (no god functions)49- [ ] Proper file sizes (<300 lines)5051### Testing52- [ ] Unit tests written53- [ ] Coverage ≥80%54- [ ] Integration tests for workflows55- [ ] Edge cases tested56- [ ] Error conditions tested5758### Security (OWASP Top 10)59- [ ] Input validation present60- [ ] No hardcoded secrets/credentials61- [ ] No XXE, CSRF, XSS vulnerabilities62- [ ] Authentication/authorization proper63- [ ] Sensitive data encrypted64- [ ] Rate limiting on sensitive endpoints65- [ ] Audit logging for security events6667### Documentation68- [ ] Public functions documented69- [ ] Comments explain WHY not WHAT70- [ ] README/guides accurate71- [ ] API documentation complete7273---7475## Feedback Format7677```78## Verdict: APPROVED | NEEDS_REVISION | FAILED7980### Issues81- CRITICAL: X | HIGH: Y | MEDIUM: Z | LOW: W8283### Details84- [CRITICAL] file.py:42 — SQL injection risk, use parameterized queries85- [HIGH] component.tsx:15 — Missing input validation86- [MEDIUM] test_utils.py:8 — Edge case not covered8788### 🔍 Human Review Focus891. [Item AI cannot fully validate — e.g., business logic correctness]902. [Item 2 — e.g., UX flow matches requirements]91```9293---9495## Parallel Review Pattern9697For comprehensive reviews, run 5 checks simultaneously:9899| Check | Focus | Agent |100|-------|-------|-------|101| **Goal** | Does it meet requirements? | Themis |102| **Quality** | Code quality, SOLID, DRY | Themis |103| **Security** | OWASP Top 10, secrets | Themis |104| **QA** | Tests, coverage, edge cases | Themis |105| **Context** | Fits architecture, no regressions | Themis |106107---108109## Severity Definitions110111| Level | Action | Example |112|-------|--------|---------|113| **CRITICAL** | Block merge | Security vulnerability, data loss risk |114| **HIGH** | Must fix before merge | Missing auth, broken error handling |115| **MEDIUM** | Should fix soon | Missing tests, code duplication |116| **LOW** | Nice to have | Naming, formatting, minor docs |117118---119120## SOLID Principles Check121122- **S**ingle Responsibility: Each class/function does one thing123- **O**pen/Closed: Extensible without modification124- **L**iskov Substitution: Subtypes behave like base types125- **I**nterface Segregation: Small, focused interfaces126- **D**ependency Inversion: Depend on abstractions, not concretions127128---129130## Anti-Patterns131132- ❌ Reviewing entire file instead of diff133- ❌ Approving without running tests134- ❌ Ignoring security implications135- ❌ Vague feedback ("looks good", "needs work")136- ❌ Nitpicking style over substance137138---139> Source: [ils15/pantheon](https://github.com/ils15/pantheon) — distributed by [TomeVault](https://tomevault.io).140<!-- tomevault:4.0:skill_md:2026-05-22 -->