Skip to content
  • AI Toolkit plugin
  • v0.1.4
  • 16 skills
  • 1 agent
  • 4 rules

laravel: Laravel backend skills

Have an agent write Laravel backend code with thin controllers, DTOs in place of loose values and query builders in place of scopes, then audit what you have against the OWASP Top 10.

  1. /plugin marketplace add noppu-labs/ai-toolkit
  2. /plugin install laravel@ai-toolkit

01 — What it does

What the laravel plugin gives a Laravel project.

  • layers

    Skills for each layer of a request

    laravel-routing and laravel-controllers cover the edge, laravel-validation and laravel-dtos the input, laravel-services external APIs, laravel-models and laravel-query-builders the data, laravel-policies access.

  • conventions

    Conventions the skills pick for you

    Controllers handle HTTP concerns only and hand the work to action classes. Models get custom query builders in place of local scopes. Data that would travel as several primitive values goes into a DTO.

  • detection

    Testing and PHP advice that checks the project first

    laravel-testing reads require-dev and tests/Pest.php to pick Pest or PHPUnit syntax, prefers Pest when both are present, and asks you when it cannot tell. php-best-practices reads the PHP version from composer.json before suggesting syntax.

  • audit

    A security audit with a result per item

    laravel-owasp-security runs an OWASP Top 10 checklist over the codebase or the files you name, with React and Inertia checks added when it detects them. Each item is PASS, FAIL or N/A.

  • agent

    A backend agent written for Laravel 13

    laravel-backend-specialist assumes Laravel 13 on PHP 8.5, with Inertia v3, Wayfinder, Pest 4, Larastan, Rector and Duster. It asks before it changes dependencies or adds a top-level directory.

  • rules

    Rules that load only for matching files

    code-quality-php covers Duster, PHP style, thin controllers and a folder per domain in app/Services. The others cover container resolution in app/Providers, test layout under tests/, and validation attributes on DTOs in paths such as app/**/Dtos.

02 — Skills

The laravel skills.

03 — How it works

What a backend task looks like.

  1. Each skill's description names the work it applies to, such as policies, permissions and ability checks for laravel-policies. Installed from the marketplace, the skills are namespaced, as in laravel:laravel-dtos.
  2. The agent keeps to one order: activate the relevant skills, search the docs with Boost's search-docs tool, inspect the schema and sibling files, generate files with artisan, write or update a Pest test, then run vendor/bin/duster fix --dirty.
  3. Where existing code mixes concerns, for example business logic in a controller, the agent follows the existing pattern and briefly flags the problem to you.
  4. /laravel:install-rules copies the rule files into .claude/rules/. A file already there with identical content is skipped. One with different content is reported as a conflict, shown as a diff and left for you to decide.
  5. Some rules embed project commands, such as docker compose exec cli vendor/bin/duster. After copying, the command lists them, asks whether they match your project and offers to adjust the copies.

04 — Requirements

What you need.

  • A Laravel application. The skills and the agent are written for Laravel 13.
  • Duster, which the copied code-quality-php rule runs through docker compose exec cli. Change that command in the copy if your project runs Duster another way.

05 — Questions

Before you install.

Which Laravel and PHP versions do the skills target?

Laravel 13. laravel-testing, laravel-owasp-security and laravel-database-optimization are written for Laravel 13.x on PHP 8.3 or later, and the agent assumes PHP 8.5. php-best-practices covers PHP 8.0 to 8.5. laravel-models marks which model attributes need Laravel 12 and which need 13.

Which packages do the skills assume?

laravel-dtos builds on Spatie Laravel Data, laravel-services on Saloon, laravel-activity-logging on spatie/laravel-activitylog v5 and laravel-quality on PHPStan and Pint. laravel-testing covers Pest 4 and PHPUnit 12.

Does the laravel plugin work in OpenCode?

Not as a package. The skills CLI can install its skills for other coding agents, and that route brings the skill folders only, without the agent, the rules or /laravel:install-rules.

How does it differ from the inertia-react plugin?

laravel covers the PHP side of a Laravel app and inertia-react the React pages Inertia renders. They meet where the server hands data to the page: laravel-owasp-security adds checks for an Inertia and React frontend when it detects one, such as secrets passed as page props, and the agent writes lazy props with Inertia v3's Inertia::optional().

What does the OWASP audit report?

A result for each checklist item. A FAIL names the file:line, describes the vulnerability and recommends a fix, without reproducing code, keys, tokens or .env contents from the file.

Does the backend agent remember my project?

Yes. laravel-backend-specialist runs with project memory and keeps its notes in .claude/agent-memory/laravel-backend-specialist/ inside your project, so later sessions start from what it learned and the team can share the notes through version control.

More plugins

All plugins