- 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.
/plugin marketplace add noppu-labs/ai-toolkit/plugin install laravel@ai-toolkit
npx skills add noppu-labs/ai-toolkit/laravel
01 — What it does
What the laravel plugin gives a Laravel project.
- layers
Skills for each layer of a request
laravel-routingandlaravel-controllerscover the edge,laravel-validationandlaravel-dtosthe input,laravel-servicesexternal APIs,laravel-modelsandlaravel-query-buildersthe data,laravel-policiesaccess. - 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-testingreadsrequire-devandtests/Pest.phpto pick Pest or PHPUnit syntax, prefers Pest when both are present, and asks you when it cannot tell.php-best-practicesreads the PHP version fromcomposer.jsonbefore suggesting syntax. - audit
A security audit with a result per item
laravel-owasp-securityruns 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 isPASS,FAILorN/A. - agent
A backend agent written for Laravel 13
laravel-backend-specialistassumes 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-phpcovers Duster, PHP style, thin controllers and a folder per domain inapp/Services. The others cover container resolution inapp/Providers, test layout undertests/, and validation attributes on DTOs in paths such asapp/**/Dtos.
02 — Skills
The laravel skills.
- laravel-activity-loggingAudit trails with spatie/laravel-activitylog: who did what, and when.
- laravel-controllersThin HTTP controllers with no domain logic.
- laravel-database-optimizationFaster queries, indexes, caching and eager loading.
- laravel-dtosData transfer objects with Spatie Laravel Data.
- laravel-enumsBacked enums with labels and behaviour.
- laravel-modelsEloquent model patterns and the database layer.
- laravel-owasp-securityAn OWASP Top 10 audit for Laravel + Inertia apps.
- laravel-policiesAuthorization policies for resource access.
- laravel-qualityPHPStan, Pint and strict types.
- laravel-query-buildersCustom, composable, type-safe query builders.
- laravel-routingRoutes, model binding and authorization.
- laravel-servicesService layer for external APIs with Saloon.
- laravel-testingTests with Pest 4 or PHPUnit 12.
- laravel-validationForm requests and validation tests.
- laravel-value-objectsImmutable value objects for domain values.
- php-best-practicesModern PHP 8 patterns, PSR and SOLID.
03 — How it works
What a backend task looks like.
- 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 inlaravel:laravel-dtos. - The agent keeps to one order: activate the relevant skills, search the docs with Boost's
search-docstool, inspect the schema and sibling files, generate files withartisan, write or update a Pest test, then runvendor/bin/duster fix --dirty. - 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.
/laravel:install-rulescopies 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.- 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-phprule runs throughdocker 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
- reviewCode review skills for PHP, TypeScript, and Python: comment audit, writing comments, type-safety review, correctness review, a three-stage PR review orchestrator, and PR comments
- investigateDeterministic structural briefs and two-pass code investigations: brief, module, and spec review skills
- inertia-reactFrontend skills, a specialist agent and path-scoped rules for Inertia v3 + React 19 + TypeScript: shadcn, Tailwind, state management and Vite performance.