--- name: code-review description: Comprehensive code review with security and performance checks license: MIT compatibility: opencode metadata: audience: developers workflow: review --- ## What I do - Review code changes for bugs, security issues, and performance problems - Check code style and best practices - Identify potential edge cases - Suggest specific improvements with code examples ## Review checklist ### Security - SQL injection vulnerabilities - XSS vulnerabilities - Authentication/authorization issues - Sensitive data exposure - Input validation ### Performance - Inefficient algorithms - Unnecessary database queries - Missing indexes - Memory leaks - Blocking operations ### Code Quality - Error handling - Edge cases - Code duplication - Naming clarity - Test coverage ## Output format For each issue found, provide: 1. Severity (Critical/High/Medium/Low) 2. Location (file:line) 3. Description of the issue 4. Specific code fix 5. Explanation of why the fix works