/laravel-team:laravel-conventionsfrom Laravel Guild
Guides Laravel developers toward idiomatic conventions across HTTP, Eloquent, validation, authorization, config, queues, and testing. Use when choosing between approaches or reviewing code.
Ships in Laravel Guild. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pick the primitive the framework already gives you. Follow the grain; don't fight it. When two approaches both "work," the idiomatic one wins — it's what the next maintainer expects.
This skill is the up-front guide (what to reach for while writing). For after-the-fact refinement of code that already works, defer to the official laravel-simplifier agent from laravel/agent-skills.
| You're about to… | Reach for | Not |
|---|---|---|
| Validate request input | Form Request (StoreOrderRequest) | inline $request->validate() in a non-trivial controller |
| Return JSON | API Resource (OrderResource) | the Eloquent model directly |
| Authorize an action | Policy + Gate::authorize() or L13 #[Authorize('update', 'post')] attribute | ad-hoc if ($order->user_id === auth()->id()); $this->authorize() assumes a trait L11+ controllers don't have |
| Controller-scoped middleware (L13) | #[Middleware('auth')] on class or method (only:/except:) | re-declaring per-route in routes/* |
| Hold domain logic | Action / Service (App\Actions\…) | a fat controller or a model method that mutates many rows |
| Read config / secrets | config('services.x.key') | env() outside config/*.php (breaks under config:cache) |
| Branch on many cases | match (true) / if-else chain | nested ternaries |
| Long-running work | queued Job — retry controls via L13 #[Tries]/#[Backoff]/#[Timeout] attributes (property forms still work) + failed(); rapid re-dispatch → #[DebounceFor]; central routing → Queue::route() | doing it in the request |
| Feature toggle | Pennant | app()->environment() checks |
| Schedule a task (L11+) | routes/console.php | the legacy app/Console/Kernel.php |
| Wire middleware / exceptions (L11+) | bootstrap/app.php | the legacy HTTP/Console Kernels |
declare(strict_types=1); in every new PHP file. Type every parameter and return. Avoid mixed.Model::preventLazyLoading() in non-prod. Use with, withCount, withExists, withAggregate.make:resource --json-api when spec compliance matters).$fillable set deliberately (or L13 #[Fillable([...])]). No bare $guarded = [] — and no #[Unguarded] — on user input.Gate::authorize() / #[Authorize]; #[UsePolicy] on the model when auto-discovery doesn't apply.env() only inside config/*.php. Everywhere else: config().DB::transaction, queue with ->afterCommit().dd(), dump(), ray() committed.Detect from composer.json rather than assuming: livewire/livewire → Livewire; inertiajs/inertia-laravel (+ @inertiajs/vue3|react) → Inertia; filament/filament → Filament (first-class, not a Blade add-on); otherwise server-rendered Blade. Don't mix paradigms in one feature without a stated reason.
it('refunds the order when the webhook arrives').Mail::fake(), Queue::fake()/Bus::fake(), Notification::fake(), Http::fake(), Storage::fake(), Event::fake([Explicit::class]).RefreshDatabase vs transactions) — don't introduce a new one.php artisan about and read composer.json to learn the stack (queue driver, runtime, auth, search, first-party packages) before deciding.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hamzaalayed/laravel-claude-agents --plugin laravel-team8 skills in this plugin
/accessibility-designThe WCAG 2.2 AA audit cookbook for Laravel front-ends and mobile — concrete thresholds (contrast, target size, focus), Livewire / Inertia focus-management specifics, screen-reader semantics, reduced motion, mobile a11y (VoiceOver / TalkBack, dynamic type). Use when designing screens, auditing UI for accessibility, or reviewing frontend / mobile work for the accessibility part of done./delivery-templatesArtifact templates for the planning + coordination roles — requirements doc, user story + acceptance criteria, RICE / WSJF scoring, sprint plan, retro, team-health report, stakeholder update, delivery log. Use when producing any docs/requirements, docs/backlog, docs/roadmap, or docs/sprints artifact, so every document lands in the same shape at the expected path./docs-authoringDocumentation templates + style rules — changelog (Keep a Changelog), release notes, runbook (Symptoms → Triage → Resolve), API endpoint reference block, onboarding guide. Use when writing or restructuring any docs surface so every page lands in a proven shape with tested examples and cited sources./eloquent-performanceThe query-performance cookbook — reading EXPLAIN plans, diagnosing + fixing N+1 without overfetching, pagination and chunking choices, the caching decision tree (remember vs flexible vs lock), measurement discipline. Use when an endpoint or query is slow, before adding an index or cache, or when reviewing query-shape changes. Diagnosis recipes — the fix lands with the owning builder (backend / database developer)./laravel-deployThe Laravel deployment cookbook — platform detection, zero-downtime release checklist, queue-worker + scheduler topology, rollback drill, post-deploy smoke, and production performance audit. Use for deployments, worker changes, release readiness, incident runbooks, and production performance baselines./laravel-securityThe Laravel security-review cookbook — STRIDE, application security checks, advisory lookup, finding format, and production readiness. Use for threat modeling, sensitive PR review, production security audits, or vulnerability triage. Findings only — fixes land with the owning builder after human awareness.Other plugins' skills for the same job