Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
90
86%
Does it follow best practices?
Impact
100%
1.13xAverage score across 3 eval scenarios
Passed
No known issues
Queue job robustness patterns
retry_after > timeout
100%
100%
Exponential backoff
91%
100%
ShouldBeUnique interface
100%
100%
uniqueId() method
100%
100%
failed() method
91%
100%
RateLimited middleware
100%
100%
tries = 0 with retryUntil
40%
100%
ShouldQueue interface
100%
100%
Dependency injection
100%
100%
N+1 and memory-efficient queries
Eager load author
100%
100%
withCount for comments
71%
100%
Conditional withCount
70%
100%
Column selection
100%
100%
Eager load column constraint
100%
100%
chunk or cursor for export
100%
100%
No queries in views/templates
100%
100%
preventLazyLoading in dev
100%
100%
Default descending order
100%
100%
Secure model with validation patterns
Encrypted cast for api_key
0%
100%
Encrypted cast for webhook_secret
0%
100%
$hidden for sensitive fields
100%
100%
$fillable defined
100%
100%
Form Request class
100%
100%
validated() only
100%
100%
Conditional validation
100%
100%
Authorization in Form Request or controller
100%
100%
env() only in config
100%
100%
Array rule notation
100%
100%
9c28875
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.