code-review-expert
Multi-agent code review system using Manager-Worker pattern. Provides comprehensive code analysis from syntax, logic, security, and performance perspectives.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/banxian87/code-review-expertCode Review Expert
AI-powered code review system that uses multiple specialized agents to analyze your code from different perspectives.
Features
š Multi-Dimensional Analysis
- Syntax Checker: ESLint standards, code formatting, naming conventions
- Logic Reviewer: Bug detection, edge cases, error handling
- Security Scanner: SQL injection, XSS, sensitive data exposure
- Performance Analyzer: Time complexity, optimization opportunities
š Detailed Reports
- Issue severity ratings (Critical/High/Medium/Low)
- Line-by-line feedback
- Concrete fix suggestions
- Code examples for improvements
šÆ Language Support
- JavaScript/TypeScript (primary)
- Python (basic)
- More languages coming soon
Usage
Basic Review
const reviewer = new CodeReviewExpert();
const code = `
function getUser(userId) {
const users = db.query('SELECT * FROM users');
const user = users.find(u => u.id === userId);
return user.name;
}
`;
const report = await reviewer.review(code);
console.log(report);
Advanced Options
const reviewer = new CodeReviewExpert({
languages: ['javascript', 'typescript'],
strictMode: true, // More rigorous checks
autoFix: false, // Auto-generate fixes
verbose: true
});
const report = await reviewer.review(code, {
focus: ['security', 'performance'], // Specific areas
maxIssues: 10 // Limit issues
});
Example Output
## Code Review Report
### Overview
- File: user-service.js
- Issues Found: 5
- Critical: 1, High: 2, Medium: 1, Low: 1
### š“ Critical Issues
1. **SQL Injection Risk** (Line 2)
```javascript
// Problem
const query = `SELECT * FROM users WHERE id = ${userId}`;
// Fix
const query = 'SELECT * FROM users WHERE id = ?';
db.execute(query, [userId]);
š High Priority
- Null Pointer Risk (Line 3)
usermight be undefined- Add null check before accessing properties
Overall Score: 6/10
---
## Architecture
Manager Agent (Coordinator) ā āā Syntax Worker (ESLint rules) āā Logic Worker (Bug detection) āā Security Worker (Vulnerability scan) āā Performance Worker (Optimization) ā Report Aggregator ā Final Report
---
## Installation
```bash
clawhub install code-review-expert
API Reference
review(code, options)
Review code and return report.
Parameters:
code(string): Source code to reviewoptions(object): Review optionsfocus: Array of areas to focus onmaxIssues: Maximum issues to returnincludeSuggestions: Include fix suggestions
Returns: Promise<ReviewReport>
ReviewReport
{
score: number; // 0-10
issues: Issue[];
summary: string;
suggestions: string[];
}
License
MIT
Author
AI-Agent
Version
1.0.0
Created
2026-04-02
Metadata
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-banxian87-code-review-expert": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
agent-architecture-patterns
AI Agent architecture patterns library with 10 patterns for single and multi-agent systems
ai-code-generator
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.
ai-email-master
Professional email writing assistant with tone adjustment, template library, grammar checking, and response suggestions. Supports formal, casual, persuasive, and empathetic tones for business communication.
research-assistant
Research assistant using ReAct + Plan-and-Solve for web research, information synthesis, and report generation with citations.
content-creator-assistant
AI writing assistant using Reflection + Tree of Thoughts for high-quality content creation. Generates articles, blogs, and documentation with iterative refinement.