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

Quality

Content

72%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is a well-structured, highly concise skill that serves as an effective index/overview for Laravel best practices. Its greatest strength is the progressive disclosure pattern — a scannable quick reference with clear pointers to detailed rule files. The main weakness is the lack of any inline executable code examples, which reduces immediate actionability, though the specific method names and anti-patterns partially compensate. The workflow guidance is adequate but could benefit from explicit validation checkpoints for destructive operations like migrations.

Suggestions

Add 1-2 inline executable code examples for the most critical patterns (e.g., N+1 prevention with eager loading, Form Request usage) to improve actionability without sacrificing conciseness.

Expand the 'How to Apply' workflow with a concrete example showing the full process (e.g., 'When creating a new controller: read rules/routing.md, check existing controllers in app/Http/Controllers/, verify route model binding syntax with search-docs').

DimensionReasoningScore

Conciseness

Extremely lean and efficient. Every bullet point is a concrete rule or pattern name, not an explanation of what Laravel is or how PHP works. No unnecessary preamble or concept explanations. The 'Consistency First' section is valuable project-specific guidance, not filler.

3 / 3

Actionability

The skill provides specific method names, patterns, and anti-patterns (e.g., 'Cache::remember() over manual get/put', '$request->validated() only — never $request->all()'), which is concrete guidance. However, there are no executable code examples in the main file — everything is delegated to rule files. The bullets are actionable directives but lack copy-paste-ready code snippets.

2 / 3

Workflow Clarity

The 'How to Apply' section provides a 3-step workflow for using the skill, which is clear. However, for the actual development workflows (e.g., creating a migration, building a controller), there are no sequenced steps with validation checkpoints. The skill is more of a reference index than a guided workflow.

2 / 3

Progressive Disclosure

Excellent progressive disclosure structure. The main file is a well-organized quick reference index with 19 clearly labeled sections, each pointing to a dedicated rule file (e.g., 'rules/db-performance.md'). References are one level deep and clearly signaled. The overview is scannable and navigable. Note: bundle files were not provided, but the structure and referencing pattern is exemplary.

3 / 3

Total

10

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is a strong skill description that comprehensively covers the Laravel PHP domain with specific, concrete actions and artifacts. It provides explicit trigger guidance at the start and includes excellent coverage of natural terms developers would use. The description is well-scoped to Laravel backend code, making it clearly distinguishable from other skills.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions and artifacts: controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, Eloquent queries, N+1 issues, caching strategies, authorization patterns, validation, error handling, queue configuration, route definitions, and architectural decisions.

3 / 3

Completeness

Clearly answers both 'what' (writing, reviewing, refactoring Laravel PHP code across many specific areas) and 'when' with explicit triggers ('Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code', 'Also use for Laravel code reviews and refactoring existing Laravel code'). The opening sentence serves as an explicit 'Use when' clause.

3 / 3

Trigger Term Quality

Excellent coverage of natural terms a user would say: 'Laravel', 'PHP', 'controllers', 'models', 'migrations', 'Eloquent', 'N+1', 'caching', 'authorization', 'validation', 'queue', 'route', 'code review', 'refactoring'. These are all terms developers naturally use when working with Laravel.

3 / 3

Distinctiveness Conflict Risk

Clearly scoped to Laravel backend PHP code specifically, with distinct triggers like 'Laravel', 'Eloquent', 'migrations', 'form requests', 'policies'. Unlikely to conflict with generic PHP skills or frontend skills due to the strong Laravel-specific terminology throughout.

3 / 3

Total

12

/

12

Passed

Validation

90%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

10

/

11

Passed

Repository
laravel/boost
Reviewed

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.