بنقرة واحدة
laravel-strict
Use Nuno Maduro's essentials and related Laravel best practices to review and improve PHP/Laravel code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use Nuno Maduro's essentials and related Laravel best practices to review and improve PHP/Laravel code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | laravel-strict |
| description | Use Nuno Maduro's essentials and related Laravel best practices to review and improve PHP/Laravel code |
Laravel Strict is a way of thinking: first understand the project and the real task, then find weak spots, and only then pull a recipe from recipes/ as a tool.
Use the recipes, but do not limit yourself to them.
This skill is rooted in the nunomaduro/essentials package — better defaults for Laravel (strict models, auto eager loading, immutable dates, fake sleep, prevent stray requests) — plus nunomaduro/larastan, Dandy Style, Laravel core team practices, and Livewire security patterns. Recipes may combine and extend these sources. When in doubt, prefer Laravel-way over custom architecture.
Do not look for code to fit a recipe.
First find a real problem in the project, diff, file, or code fragment. Then choose the smallest set of recipes that helps solve that problem.
Workflow:
AGENTS.md, README.md, composer.json, configs).#[Locked], mutable Carbon, missing tests, etc.).recipe-map.md./laravel-strictUse when the user invokes the skill or asks to improve the project without naming a file, module, or diff.
Start with a shallow project scan:
AGENTS.md, README.md, composer.json, phpstan.neon, phpunit.xml, pint.json, rector.php;bootstrap/app.php and app/Providers/AppServiceProvider.php for essentials configuration;app/Models/, app/Livewire/, app/Services/, tests/ for patterns;This is not a full audit. The goal is to find 3–5 likely improvement areas.
Return:
recipes/ files).If the best next step is obvious, suggest it. If several options are equally useful, ask the user where to start.
Use when the skill is mentioned inside another task or when the user provides a specific code fragment.
16-point-checklist.md).Use recipe-map.md only after finding concrete signs of a problem in the code.
Do not load all recipes "just in case". Context window is the budget.
recipe-map.md, then recipes after detecting smells.final readonly on services and Actions beats mutable shared state.#[Locked] and ownership-scoped lookups in Livewire beat IDOR.mount() on every request).Laravel Strict is not limited to these recipes. The recipes highlight frequent problems and common fixes. If another best-practice recipe fits better — Dandy Style, Spatie, Pest, Laravel core team guidance — suggest it and label it as an extra recommendation.
For a broad review (mode 1):
1. What I understood about the project
2. Essentials readiness (X/16)
3. Main improvement points (P0/P1/P2)
4. Why they matter
5. What I suggest doing first
6. Which recipes may help (links to recipes/*.md)
For a contextual task (mode 2):
1. Solution for the main task
2. What was considered from essentials
3. Trade-offs
4. Next safe step
Project first. Pain second. Recipe third. Small safe action last.
When in doubt: do less, but always run the project's formatter and test suite before claiming the work is done (Pint + Rector + PHPUnit/Pest + PHPStan, or whatever the project uses).