laravel
Skill2 starsChanged 53 days agoMITView on GitHub
Use when building, modifying, reviewing, testing, or debugging Laravel applications, Eloquent queries, Artisan commands, Blade or Livewire components, Inertia adapters, Form Requests, migrations, or queue jobs. Don't use for non-PHP stacks (author stack-specific code directly), static sites (use frontend-design), or plain WordPress themes (author WordPress theme code directly).
- Reads credentials
14 other projects use a version of this.
Adopted by
Most recently taken up by
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- hmj1026/dhpktheir own version, first seen Nov 6, 2026
- reisi007/agents-skillstheir own version, first seen Nov 5, 2026
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use wordpress and nextjs.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
iamandrewpetersSkillwordpress
Use this skill when working on WordPress development tasks including plugins, themes, shortcodes, hooks, WP-CLI commands, multisite, custom post types, meta boxes, the REST API, or debugging WordPress issues.
Also in 3 projects that use this
OpenAISkillnextjs
Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- Mindrally/skills★ 275same name
- youlaitech/youlai-skills★ 63same name
- rawveg/skillsforge-marketplace★ 40same name
- G1Joshi/Agent-Skills★ 15same name
- ulpi-io/browse★ 15same name
- AnyOrgName/php-skills★ 4same name
- turkeryildirim/ai-skills★ 4same name
- gingerminds/claude-skills★ 2same name
- hmj1026/dhpk★ 2same name
- hawk-digital-environments/ai-skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- agent-planningSkill
- brainstormingSkill
- codebase-designSkill
- code-reviewSkill
- conventional-commitSkill
- copy-web-designSkill
- executing-plansSkill
- frontend-designSkill
- i18nSkill
- prototypeSkill
- pull-requestSkill
- reactSkill
- recursive-researchSkill
- reflect-to-skillSkill
- review-a-skillSkill
- s13nSkill
- schema-migrationSkill
- security-auditSkill
- skill-testingSkill
- summarizeSkill
- systematic-debuggingSkill
- t3-operational-guardrailSkill
- technical-writingSkill
- testing-patternsSkill
- ui-motionSkill
- ui-ux-reviewSkill
- unslopSkill
- upsert-codebase-docsSkill
- verification-before-completionSkill
- vibe-wiseSkill
- web-advisor-promptSkill
- wizardSkill
- workspace-onboardingSkill
- writing-for-agentsSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 11
Write-Target Boundary. Write only inside the Laravel application tree (app/, routes/, resources/, database/, tests/, config/).
- Distinctive: line 26
Follow these four steps in sequence:
- Distinctive: line 32
Check the Laravel version and PHP runtime:
- Very specific: line 37
When search-docs is present, query it for version-specific documentation and package contracts.
- Very specific: line 38
When search-docs is absent, inspect framework behavior with native Artisan commands in references/cli-introspection.md or read vendor …
- Distinctive: line 75
Run automated verification commands before finishing work:
- Distinctive: line 81
Check code style with Laravel Pint when installed in the repository:
- Very specific: line 85
If vendor/bin/pint does not exist, record pint: absent in .agents/state/laravel/verification.txt and skip the style check.
- Distinctive: line 93
Prefer native framework utilities over custom helper functions or external packages.
- Distinctive: line 101
Keep vendor packages, generated migration timestamps, Composer lock files, and core Laravel framework files untouched.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Laravel
Deterministic, test-driven workflows for Laravel applications.
<HARD-GATE>
Write-Target Boundary. Write only inside the Laravel application tree (`app/`, `routes/`, `resources/`, `database/`, `tests/`, `config/`). Never modify `vendor/`, `composer.lock`, generated migration timestamps, or framework core files. Never run `php artisan migrate` against non-local databases without explicit user approval recorded in `.agents/state/laravel/migrate-approval.md`.
</HARD-GATE>Overview
Build, refactor, and debug Laravel applications using native Artisan inspection and established repository conventions. Delegate architectural scoping to superpower skills, write tests before implementation, and verify changes with automated test suites and Pint formatting.
Modes
Select an execution mode before Step 1:
- Feature mode (default). Follow test-driven development to build new routes, Eloquent models, and components.
- Diagnostic mode. Inspect logs, reproduce exceptions with minimal scripts, and resolve failures without adding architectural scaffolding.
Workflow
Follow these four steps in sequence:
Step 1. Environment and runtime probe
Probe framework version, configuration, and database state before modifying application files:
- Check the Laravel version and PHP runtime:
php artisan --version - Detect the
laravel/boostMCP server in available tools:- When
search-docsis present, query it for version-specific documentation and package contracts. - When
search-docsis absent, inspect framework behavior with native Artisan commands inreferences/cli-introspection.mdor read vendor source directly.
- When
- Inspect affected database tables and route definitions:
php artisan model:show <ModelName> php artisan route:list --name=<routeName>
Completion criterion. Command output confirms Laravel version, runtime settings, affected database schemas, and route mappings.
Step 2. Convention mapping and reference selection
Audit sibling controllers, models, migrations, and test files for established project patterns. Match affected application layers to the reference index below:
| Concern | Reference guide |
| CLI introspection, runtime discovery, logs | references/cli-introspection.md |
| Eloquent queries, N+1 prevention, migrations, casts | references/eloquent-and-database.md |
| Controllers, Form Requests, route binding, resources | references/routing-and-controllers.md |
| Pest and PHPUnit tests, HTTP assertions, service fakes | references/testing-patterns.md |
| Authorization policies, SQL injection safety, mass assignment | references/security-and-hardening.md |
Completion criterion. .agents/state/laravel/edit-plan.md exists on disk and lists every file to create or modify with its matching reference guide and section anchor.
Step 3. Implementation and boundary isolation
Apply minimal, isolated modifications using test-first development:
- For new features or bug fixes, coordinate with the
testing-patternsskill to establish failing tests before writing production code. - For error diagnosis, coordinate with the
systematic-debuggingskill to inspectstorage/logs/laravel.logand verify reproducing steps first. - Confine database queries to Eloquent models, repositories, or query scopes, and leave Blade templates, Inertia controllers, and JsonResource classes free of direct queries.
- Extract validation into Form Request classes and pass only
$request->validated()into models. - Eager load relationships using
with()orloadMissing()to eliminate N+1 queries.
Completion criterion. Implementation passes input validation, eagerly loads database relations, keeps business logic separated from HTTP controllers, and records targeted test failure command in .agents/state/laravel/red-test.txt.
Step 4. Verification pass
Run automated verification commands before finishing work:
- Execute the narrowest relevant test suite:
php artisan test --filter=<TestClassOrMethod> - Check code style with Laravel Pint when installed in the repository:
Ifvendor/bin/pint --testvendor/bin/pintdoes not exist, recordpint: absentin.agents/state/laravel/verification.txtand skip the style check. - Inspect the git diff of modified files. Confirm that input passes through validation, migrations declare explicit constraints, and queries load relationships eagerly.
Completion criterion. Targeted tests pass with exit code 0. If Pint is present, Pint reports zero style violations. If Pint is absent, .agents/state/laravel/verification.txt contains pint: absent and the test exit code.
Decision rules
- Audit sibling files before introducing patterns. Consistent project conventions take precedence over alternate architectures.
- Prefer native framework utilities over custom helper functions or external packages.
- Pass raw SQL through parameterized bindings with positional placeholders.
- Maintain CSRF protection, route middleware, and model authorization policies during tests. Fix test fixtures rather than disabling security middleware.
- Store credentials and private keys in
.envandconfig/files, and never hardcode secrets in application code.
Boundary isolation
Confine framework modifications strictly to application architecture and test assertions:
- Keep vendor packages, generated migration timestamps, Composer lock files, and core Laravel framework files untouched.
- Preserve database column names, environment variable keys, and CLI command signatures in their exact schema formats.
Quick audit checklist
Review this table before completing Laravel tasks:
| Check | Passing condition |
| Query confinement | Queries confined to Eloquent models, scopes, or repositories |
| Validation | Request input extracted via Form Requests and validated |
| N+1 prevention | Relations eager-loaded via with() or loadMissing() |
| Security | Input parameterized, policies enforced, zero hardcoded secrets |
| Code style | Automated tests pass and Laravel Pint passes with zero violations |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

