Review code for quality, security, and best practices. Use when analyzing code, suggesting improvements, or conducting code reviews.
Provides comprehensive code review capabilities covering quality, security, and best practices analysis.
When conducting a code review, follow these steps in order:
Read the code thoroughly and identify:
Evaluate the code against best practices. Load the best practices guide for comprehensive checks:
references/best_practices.md - Comprehensive coding standards and practicesKey areas to check:
Check for security vulnerabilities. Load the security checklist for detailed guidance:
references/security_checklist.md - Security review checklist based on OWASP guidelinesKey security areas:
Identify code smells and antipatterns. Load the antipatterns guide for reference:
references/common_antipatterns.md - Common antipatterns and how to fix themCommon issues to look for:
Compile findings into a structured report:
## Code Review Summary
**File/Module**: [name]
**Language**: [language]
**Overall Assessment**: [Excellent/Good/Needs Improvement/Critical Issues]
### Strengths
- [List positive aspects]
### Issues Found
#### Critical (Must Fix)
- [Security vulnerabilities, bugs]
#### Major (Should Fix)
- [Significant antipatterns, bad practices]
#### Minor (Consider Fixing)
- [Style issues, small improvements]
### Recommendations
1. [Specific actionable recommendations]
2. [...]
### Resources Referenced
- [List which reference files were consulted]
Reference these files for detailed guidance during reviews:
references/best_practices.md - Comprehensive coding best practices covering organization, naming, error handling, testing, and documentationreferences/security_checklist.md - Security review checklist covering OWASP Top 10, input validation, authentication, and common vulnerabilitiesreferences/common_antipatterns.md - Guide to detecting and fixing common antipatterns like god classes, spaghetti code, and resource leaksUser asks: "Can you review this function?"
Response approach:
references/best_practices.md if needed)User asks: "Check this code for security vulnerabilities"
Response approach:
references/security_checklist.md for comprehensive security checksUser asks: "I need a thorough code review of my authentication module"
Response approach:
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