skills/standards-laravel/SKILL.md
Use when building or modifying Laravel applications, including routes, controllers, models, migrations, jobs, actions, and API resources.
npx skillsauth add paulund/ai standards-laravelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
./vendor/bin/sail composer run test (Pint + PHPStan level 8 + Pest)| Topic | Reference | Load When |
|-------|-----------|-----------|
| Models | references/models.md | Eloquent models, relationships, scopes, casts |
| Routes | references/routes.md | Route definitions, naming, grouping, middleware |
| Controllers | references/controllers.md | Invokable controllers, route model binding, return types |
| Actions | references/actions.md | Business logic, record creation/update/delete |
| Form Requests | references/form-requests.md | Validation, authorization |
| API Resources | references/api-resources.md | Model transformation, nested resources, Inertia props |
| Services | references/services.md | External I/O, third-party API clients, DTOs |
| Jobs & Events | references/jobs-events.md | Queued jobs, event dispatching, listeners |
| Policies | references/policies.md | Authorization policies, gates |
| Migrations | references/migrations.md | Schema changes, indexes, foreign keys |
| Configuration | references/configuration.md | #[Config] attribute injection, view data passing |
| Current User | references/current-user.md | #[CurrentUser] attribute, authenticated user injection |
$request->validate() in controllersrules()) for actions with no request body (show, edit, destroy)resource_id (UUID) as public id — never expose internal database IDs#[Config] attribute for configuration injection#[CurrentUser] attribute for authenticated user injection in controller constructorsGate::authorize() in controllers — use Form Request authorize() methodAuth::user() inside controller methods — use #[CurrentUser] constructor injection insteadtesting
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
development
TypeScript project conventions. Auto-load when editing *.ts or *.tsx files.
development
Use when writing or fixing PHP code, implementing classes, traits, or interfaces, applying PSR standards, or working with PHP 8.3+ patterns like readonly properties, enums, named arguments, match expressions, and union types.
tools
Next.js 15 App Router project conventions. Auto-load when working in app/, src/app/, components/, server actions, or route handlers.