Code Review Skill
Performs comprehensive code review on provided code snippets or files.
Usage
/code-review [file_path or code snippet]
What This Skill Analyzes
Code Quality
- Variable naming conventions
- Function/method complexity
- Code duplication
Best Practices
- Error handling
- Input validation
- Security considerations
Style
- Formatting consistency
- Comment quality
- Documentation
Performance
- Obvious inefficiencies
- Memory usage patterns
- Algorithm complexity
Output Format
The review will include:
- Summary of findings
- List of issues with severity (critical/warning/info)
- Specific recommendations with code examples
- Overall code quality score (1-10)
Examples
Review a specific file:
/code-review src/main/database.js
Review inline code:
/code-review
function foo(x) {
return x * 2;
}