Automated code review with focus on best practices, security, and performance.
--- name: code-review description: Automated code review for best practices version: 2.0.0 --- # Code Review Skill Performs comprehensive code review on provided code or diffs. ## What It Checks ### 1. Code Quality - Readability and clarity - Naming conventions - Code structure - DRY principles - SOLID adherence ### 2. Security - Input validation - SQL injection risks - XSS vulnerabilities - Authentication issues - Sensitive data exposure ### 3. Performance - Algorithm efficiency - Memory usage - Database queries - Unnecessary computations ### 4. Best Practices - Error handling - Logging practices - Testing coverage - Documentation ## Output Format For each issue: | Severity | Location | Issue | Suggestion | |----------|----------|-------|------------| | 🔴 Critical | line 42 | SQL injection | Use parameterized queries | | 🟡 Warning | line 87 | No error handling | Add try-catch | | 🔵 Info | line 12 | Magic number | Extract to constant | ## Usage ``` review <file_path> review --diff HEAD~1 ```
AI Agent Skills are reusable workflow packages that extend your AI coding assistant with multi-step capabilities. Install code-review by following these steps.
.cursor/skills/ or .codex/skills/ directory