CtrlK
BlogDocsLog inGet started
Tessl Logo

laravel-best-practices

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

1.13x
Quality

86%

Does it follow best practices?

Impact

100%

1.13x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

8%

Third-Party Sync Service Integration

Queue job robustness patterns

Criteria
Without context
With context

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%

100%

7%

Blog Dashboard API Endpoint

N+1 and memory-efficient queries

Criteria
Without context
With context

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%

100%

20%

Payment Integration Model and API Endpoint

Secure model with validation patterns

Criteria
Without context
With context

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%

Repository
laravel/boost
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.