laravel
Skill2 starsChanged 2 months 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, static sites, or plain WordPress themes.
- Reads credentials
7 other projects use a version of this.
Adopted by
Most recently taken up by
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- hawk-digital-environments/ai-skillstheir own version, first seen Aug 13, 2026
- gingerminds/claude-skillstheir own version, first seen Jul 24, 2026
- youlaitech/youlai-skillstheir own version, first seen Jul 14, 2026
- nguyenchilong/claude-skills-fullstackstheir own version, first seen May 22, 2026
- rawveg/skillsforge-marketplacetheir own version, first seen Feb 19, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Mindrally/skills★ 266same name
- youlaitech/youlai-skills★ 56same name
- rawveg/skillsforge-marketplace★ 40same name
- gingerminds/claude-skills★ 2same name
- hawk-digital-environments/ai-skills★ 1same name
- nguyenchilong/claude-skills-fullstacks★ 1same name
- conjure-3301/skills★ 0same name
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 repository24 other files it gives its agents.
- brainstormingSkill
- codebase-designSkill
- code-reviewSkill
- conventional-commitSkill
- copy-web-designSkill
- executing-plansSkill
- frontend-designSkill
- i18nSkill
- prototypeSkill
- reactSkill
- s13nSkill
- security-auditSkill
- summarizeSkill
- systematic-debuggingSkill
- technical-writingSkill
- testing-patternsSkill
- ui-motionSkill
- ui-ux-reviewSkill
- unslopSkill
- upsert-codebase-docsSkill
- verification-before-completionSkill
- workspace-onboardingSkill
- writing-for-agentsSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Follow these four steps in sequence:
- Distinctive: line 22
Check the Laravel version and PHP runtime:
- Very specific: line 27
When search-docs is present, query it for version-specific documentation and package contracts.
- Very specific: line 28
When search-docs is absent, inspect framework behavior with native Artisan commands in references/cli-introspection.md or read vendor …
- Distinctive: line 57
Keep database queries inside Eloquent models, repositories, or query scopes, keeping Blade templates, Inertia controllers, and JsonResource …
- Distinctive: line 65
Run automated verification commands before finishing work:
- Distinctive: line 71
Check code style with Laravel Pint when installed in the repository:
- Distinctive: line 82
Prefer native framework utilities over custom helper functions or external packages.
“Common” is measured: kept by at least 6 in 10 of the 5 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.
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.
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. Every modified file adheres to conventions observed in sibling files and matches its corresponding reference guide.
Step 3. Implementation and boundary isolation
Apply minimal, isolated modifications using test-first development:
- For new features or bug fixes, coordinate with the
tddskill 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. - Keep database queries inside Eloquent models, repositories, or query scopes, keeping Blade templates, Inertia controllers, and JsonResource classes free of 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, and keeps business logic separated from HTTP controllers.
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:
vendor/bin/pint --test - 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 and Pint reports zero code style violations.
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. Application code must never contain hardcoded secrets.
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.

