Review code changes for correctness, security, performance, and maintainability. Use for PR reviews, code audits, pre-merge checks, or quality validation of Laravel + React code...
Exclusive to: reviewer agent
Before completing any review, verify the codebase passes all checks:
composer test # All PHP tests pass
npm run types # No TypeScript errors
npm run lint # No linting errors
./vendor/bin/pint --test # PHP style OK
Report any failures as Critical findings.
docs/code-standards.mdany unless justified)with())docs/code-standards.md| Check | Verify |
|---|---|
| Mass assignment | $fillable or $guarded defined |
| Authorization | Policy or Gate used |
| Validation | FormRequest with rules |
| CSRF | @csrf in forms |
| SQL injection | No raw queries with user input |
| Check | Verify |
|---|---|
| XSS | No dangerouslySetInnerHTML |
| Props | TypeScript interfaces used |
| Secrets | No sensitive data in client |
| Level | Criteria | Action |
|---|---|---|
| 🚨 Critical | Security flaw, data loss, breaks functionality | Block merge |
| ⚠️ Warning | Performance issue, code smell, missing test | Request fix |
| 💡 Suggestion | Style improvement, better pattern | Optional |
## 🔍 Review Summary
[One paragraph overview]
## 🚨 Critical (must fix)
1. [Issue]: [File:Line] — [Why critical]
## ⚠️ Warnings (should fix)
1. [Issue]: [File:Line] — [Recommendation]
## 💡 Suggestions (nice to have)
1. [Suggestion]: [File:Line] — [Improvement]
## ✅ What's Good
- [Positive observation]