Review code for quality, best practices, and maintainability. Use when user wants code review or quality check.
Reviews code for quality, best practices, and maintainability across multiple dimensions.
/plugin marketplace add adelabdelgawad/fullstack-agents/plugin install adelabdelgawad-fullstack-agents-plugins-fullstack-agents@adelabdelgawad/fullstack-agentsReview code for quality, best practices, clean code principles, and maintainability.
/review quality [target]Check for:
x, temp, data without context)Report format:
### Naming Issues
| Location | Current | Suggestion | Severity |
|----------|---------|------------|----------|
| `api/v1/users.py:45` | `d` | `user_data` | Warning |
| `api/services/order.py:23` | `process` | `process_order` | Info |
Check for:
Report format:
### Function Quality Issues
| Function | Issue | Recommendation |
|----------|-------|----------------|
| `get_all_data()` | 120 lines | Break into smaller functions |
| `process(a, b, c, d, e, f, g)` | 7 parameters | Use parameter object |
| `calculate_total()` | Missing return type | Add `-> Decimal` |
Check for:
Detection:
# Find similar code blocks (manual review needed)
grep -rn "same pattern" --include="*.py" | head -20
Check for:
except: clausesAnti-patterns:
# Bad: Bare except
try:
do_something()
except:
pass
# Bad: Generic exception without logging
try:
call_api()
except Exception:
return None
Check for:
Any typeCheck for:
## Code Quality Review Report
**Target:** {file/directory}
**Reviewed:** {timestamp}
### Summary
| Category | Issues | Severity |
|----------|--------|----------|
| Naming | 5 | 2 Warning, 3 Info |
| Functions | 3 | 1 Error, 2 Warning |
| Duplication | 2 | 2 Warning |
| Error Handling | 4 | 2 Error, 2 Warning |
| Type Safety | 6 | 6 Info |
| Documentation | 3 | 3 Info |
### Critical Issues (fix immediately)
1. **Bare except clause in `api/services/order.py:78`**
```python
# Current
except:
pass
# Fix
except OrderProcessingError as e:
logger.error(f"Order processing failed: {e}")
raise
api/v1/sync.py:45
process_all_orders() (156 lines)
validate_orders()calculate_totals()apply_discounts()finalize_orders()utils/helpers.py
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences