Perform systematic code reviews following best practices and team standards
Conduct thorough, systematic code reviews following industry best practices.
This skill guides you through performing comprehensive code reviews that improve code quality, catch bugs, maintain standards, and facilitate knowledge sharing.
Before diving into code:
Read the PR/MR description
Review the change overview
Verify CI/Build Status
Examine code for quality issues:
Readability
Code Structure
Naming Conventions
Code Smells
Verify the implementation:
Logic Review
Potential Bugs
Algorithm Efficiency
Evaluate test coverage:
Test Presence
Test Quality
Test Organization
Check for security issues:
Input Validation
Common Vulnerabilities
Authentication & Authorization
Data Protection
Verify documentation:
Code Documentation
README Updates
API Documentation
Structure your review comments effectively:
Use these severity indicators:
[SEVERITY] [Category]: Brief title
Line XX: Specific issue
Reason: Why this matters
Suggestion: How to fix
Example:
[code example if helpful]
🔴 CRITICAL: SQL Injection Risk
Line 45: `query = "SELECT * FROM users WHERE id = " + userId`
Reason: Direct string concatenation allows SQL injection attacks
Suggestion: Use parameterized queries
Example:
query = "SELECT * FROM users WHERE id = @userId"
command.Parameters.AddWithValue("@userId", userId)
🟠 MAJOR: Off-by-One Error
Line 67: `for (int i = 0; i <= array.Length; i++)`
Reason: Loop will throw IndexOutOfRangeException on last iteration
Suggestion: Change to `i < array.Length`
🟡 MINOR: Magic Number
Line 89: `if (count > 100) { ... }`
Reason: Unclear what 100 represents
Suggestion: Extract to named constant
Example:
private const int MaxItemsPerPage = 100;
if (count > MaxItemsPerPage) { ... }
✅ PRAISE: Error Handling
Lines 120-135: Excellent error handling with specific messages
This makes debugging much easier. Great work!
Request changes when:
Approve when:
If a review is taking too long:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer
Tags:code-review, quality, workflow