Back to Commands
review
Get an AI-powered code review on a pull request. Receive structured feedback on code quality, bugs, security, and performance.
Syntax
@Smart Workflow review <PR_link>
@Smart Workflow review <PR_link> <focus_area>
@Smart Workflow review <repo> <PR#>Examples
Basic review
@Smart Workflow review https://github.com/org/repo/pull/123Focused review
@Smart Workflow review https://github.com/org/repo/pull/123 focus on securityShorthand syntax
@Smart Workflow review api-service 45How it works
1
Fetches PR changes
Retrieves all diffs and modified files from the pull request.
2
Analyzes code
Examines code quality, potential bugs, security, and performance.
3
Provides feedback
Returns structured feedback with severity levels and suggestions.
Review Categories
Code Quality
- Readability
- Maintainability
- Naming conventions
- Code organization
Potential Bugs
- Logic errors
- Edge cases
- Null handling
- Race conditions
Security
- Injection vulnerabilities
- Auth issues
- Data exposure
- Input validation
Performance
- Inefficient algorithms
- Unnecessary operations
- Memory leaks
- N+1 queries
Example Output
📝 Code Review for PR #123
Critical
Missing null check in handleUserData()
Line 45: user.profile could be undefined
Warning
SQL query may be vulnerable to injection
Line 23: Use parameterized queries instead
Suggestion
Consider memoizing the expensive filter operation
Line 78: useMemo would prevent re-computation
💡 Pro Tips
- •Specify a focus area for deeper analysis: "focus on security" or "focus on performance"
- •Use before merging to catch issues early
- •Combine with
fixto quickly fix identified issues