Code Reviewer (agent)

    by Laravel Company

    1

    Code Reviewer (agent): Comprehensive code review covering patterns, anti-patterns, security, performance, and readability

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    CategoryFindingSeverityRecommendation
    SecurityMissing validation on 'role' input field.HighUse a defined Enum or in:user,admin validation rule.
    PerformanceN+1 query detected in the index method when loading profiles.MediumUse User::with('profile')->get() to eager load relationships.
    Laravel StandardsLogic found in Controller instead of Service or Action class.LowExtract business logic to a dedicated RegisterUserAction.
    PHP PatternsHardcoded string used for redirect path.LowUse 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 Profile relationship exists on the User model.
    • Validation is intended to happen within the controller method rather than a FormRequest.

    Risks and Open Questions

    • Does the User model use the HasApiTokens trait? 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

    1. Refactor the registration logic into a RegisterUserAction class.
    2. Implement a StoreUserRequest to handle validation outside of the controller.
    3. 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

    1. Context Ingestion where the agent reads your provided files and identifies missing architectural details.
    2. Step Planning to outline the review process before generating feedback.
    3. Constraint Validation where the agent checks its findings against security and coding standard files.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This skill is optimized for PHP 8.x and Laravel environments. It works best when provided with your local `coding-standards.md` or security reference files to ensure feedback matches your team's specific architecture.

    No, the agent does not execute code or run PHPUnit tests. It performs deep static analysis and pattern matching to identify architectural flaws, security risks, and convention deviations before you ever hit 'deploy'.

    Unlike basic prompts, this skill uses a multi-step 'Assumption Logging' and 'Step Planning' process. This prevents the agent from guessing about your environment and forces it to validate every finding against your specific project constraints.

    You will receive the specialized agent skill configuration, including the structured review logic and the mandatory reporting templates. It also includes documentation on how to set up your external reference files for optimal results.

    The skill is designed to work with any major LLM (like GPT-4 or Claude 3.5) that supports system instructions and file context. It excels in environments where you can provide repository files as context for the agent to analyze.

    The agent is designed to identify common PHP/Laravel vulnerabilities such as SQL injection in Eloquent, unsafe mass assignment, and improper authorization checks. It audits code against the security guidelines provided in your project context.

    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.