- Home
- Skills
- Agents & Orchestration
- Code Reviewer (agent)
Code Reviewer (agent)
Code Reviewer (agent): Comprehensive code review covering patterns, anti-patterns, security, performance, and readability
$3
Code Reviewer (agent)
Example session with this skill installed
Review this Laravel controller for a user registration flow. Check for security, Eloquent efficiency, and adherence to standard Laravel conventions.
- Read your context and instructions
- Compiled the code reviewer agent
I have completed a review of the UserRegistrationController. The review focused on Laravel coding standards, security guidelines, and Eloquent performance patterns.
Code Review Report
| Category | Finding | Severity | Recommendation |
|---|---|---|---|
| Security | Missing validation on 'role' input field. | High | Use a defined Enum or in:user,admin validation rule. |
| Performance | N+1 query detected in the index method when loading profiles. | Medium | Use User::with('profile')->get() to eager load relationships. |
| Laravel Standards | Logic found in Controller instead of Service or Action class. | Low | Extract business logic to a dedicated RegisterUserAction. |
| PHP Patterns | Hardcoded string used for redirect path. | Low | Use the route() helper to avoid breaking changes if URLs change. |
Assumptions
- The application uses the default Laravel 10.x or 11.x directory structure.
- A
Profilerelationship exists on theUsermodel. - Validation is intended to happen within the controller method rather than a FormRequest.
Risks and Open Questions
- Does the
Usermodel use theHasApiTokenstrait? If so, additional token sanitization is needed. - Is there a rate limiting middleware applied to this route to prevent registration spam?
Verification
- Checked against
shared/security-guidelines.md: Failed (Role injection risk). - Checked against
shared/coding-standards.md: Partial (Standard naming used, but logic placement violates thin-controller rule).
Next steps
- Refactor the registration logic into a
RegisterUserActionclass. - Implement a
StoreUserRequestto handle validation outside of the controller. - Update the index query to include eager loading for the profile relationship.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual code reviews often miss subtle architectural patterns or security vulnerabilities specific to the PHP ecosystem. This skill transforms your agent into a senior practitioner focused on Laravel standards, providing structured feedback that follows strict project conventions.
What it does
- Standardized Reviewing provides consistent audits based on the Laravel Company prompt library.
- Pattern Analysis identifies anti-patterns, security risks, and performance bottlenecks in PHP code.
- Assumption Logging lists what the agent doesn't know about your environment instead of guessing.
- Security Auditing checks code against predefined security guidelines to prevent common vulnerabilities.
- Laravel Convention Enforcement ensures code aligns with modern Laravel practices and coding standards.
How it works
- Context Ingestion where the agent reads your provided files and identifies missing architectural details.
- Step Planning to outline the review process before generating feedback.
- Constraint Validation where the agent checks its findings against security and coding standard files.
- Structured Delivery of the final report using a mandatory template covering summary, details, and risks.
Frameworks & tools
This skill is optimized for PHP 8.x and Laravel environments. It incorporates project-specific standards defined in Markdown reference files.
Why this beats prompting it yourself
Writing a prompt that balances security, performance, and framework-specific patterns is difficult to maintain. This skill encapsulates professional-grade logic, ensuring your agent never "hallucinates" test results and always follows a strict output contract.
Use cases
- Reviewing Laravel Pull Requests for adherence to internal coding standards.
- Auditing legacy PHP scripts for security vulnerabilities and modern refactoring opportunities.
- Onboarding new developers by providing automated, convention-aware feedback on their commits.
- Validating database migrations and Eloquent queries for performance issues.
Known limitations
This skill requires external reference files like coding-standards.md to be present in the context. It does not execute live code or run actual unit tests.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.