Install
openclaw skills install code111Comprehensive code review assistant that analyzes code quality, identifies bugs, suggests improvements, and ensures adherence to best practices. Use when reviewing pull requests, analyzing code changes, or performing code quality audits.
openclaw skills install code111This skill helps you perform thorough code reviews by analyzing code quality, identifying potential issues, and suggesting improvements. It follows industry best practices and can adapt to different programming languages and coding standards.
When reviewing code, start by understanding:
Check for common vulnerabilities:
Input Validation
Authentication & Authorization
Data Handling
Readability
Maintainability
Performance
Test Coverage
Test Quality
When providing review feedback, use this structure:
## Code Review Summary
**Overall Assessment**: [Brief overview]
### 🔴 Critical Issues
- [Issue 1 with location and severity]
- [Issue 2 with location and severity]
### 🟡 Improvements Suggested
- [Suggestion 1 with reasoning]
- [Suggestion 2 with reasoning]
### 🟢 Positive Aspects
- [What was done well]
- [Good practices observed]
### 📝 Additional Notes
- [Any other observations or recommendations]
File: user_controller.py:45
# ❌ Problematic
query = f"SELECT * FROM users WHERE email = '{email}'"
cursor.execute(query)
Issue: SQL injection vulnerability. User input is directly interpolated into SQL query.
Suggested Fix:
# ✅ Better
query = "SELECT * FROM users WHERE email = %s"
cursor.execute(query, (email,))
File: data_processor.js:120
// ❌ Problematic
for (let item of items) {
result += processItem(item); // String concatenation in loop
}
Issue: Inefficient string concatenation in loop causes O(n²) performance.
Suggested Fix:
// ✅ Better
const parts = items.map(item => processItem(item));
result = parts.join('');
Use this skill when: