Enforce Laravel Best Practices when generating code, reviewing code, and writing tests (SRP, skinny controllers, FormRequests, service/action classes, DRY, Eloquent/Collections, Blade query avoidance, eager loading, chunking).
Install with Tessl CLI
npx tessl i github:masterfermin02/laravel-agent-skill --skill laravel-best-practices73
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
This skill guides an AI coding agent to:
Use references/rulebook.json as the source of truth for:
When you flag an issue, always include:
When reviewing or generating Inertia React code, apply rules INRT-001–INRT-008 from the rulebook.
See references/inertia-react.md for the annotated directory structure and conventions.
common (shared primitives), modules (feature code), pages (Inertia-rendered), shadcn (generated components).Page, use a default export (e.g. PostsIndexPage.tsx)..tsx file, PascalCase filenames, function declarations.usePage<SharedProps>() for globally shared data.useForm from @inertiajs/react; avoid raw fetch/axios for Inertia-driven forms.usePage() rather than prop-drilling auth/flash data through every component layer.When asked to review code:
Return a JSON object:
When asked to implement a feature:
Prefer Pest if repository uses Pest (presence of pestphp/pest in composer.json); otherwise PHPUnit.
019b761
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.