laravel
Skill15 starsChanged 8 months agoApache-2.0View on GitHub
Laravel 12 API development — API-only, Actions pattern, Sanctum/Passport auth, Eloquent strict mode, Redis caching/queues, Horizon, Filament admin, Pest testing. Also covers Laravel AI ecosystem: AI SDK (agents, embeddings, image/audio generation), Boost (AI-assisted development), and MCP (exposing your app to AI clients). Use when working on any Laravel route, controller, model, action, migration, job, notification, test, API endpoint, AI agent, or MCP server task.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- hmj1026/dhpktheir own version, first seen Nov 13, 2026
- reisi007/agents-skillstheir own version, first seen Nov 9, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 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 react.
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
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 6 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
- AnyOrgName/php-skills★ 4same name
- turkeryildirim/ai-skills★ 4same name
- dafaalz/agent-skills★ 2same 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 repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- ast-grepSkill
- branch-review-before-prSkill
- browse-qaSkill
- browser-useSkill
- browseSkill
- bugfixSkill
- build-dmgSkill
- claude-reviewSkill
- codemapSkill
- code-simplifySkill
- codex-reviewSkill
- commitSkill
- cost-estimateSkill
- create-prSkill
- find-agentsSkill
- find-bugsSkill
- frontend-design-ui-uxSkill
- git-merge-expertSkill
- git-merge-expert-worktreeSkill
- kiro-reviewSkill
- laravel-filamentSkill
- lokeiSkill
- map-project-monorepoSkill
- map-projectSkill
- nextjsSkill
- plan-founder-reviewSkill
- plan-to-task-list-with-dagSkill
- pr-retroSkill
- run-parallel-agents-feature-buildSkill
- run-parallel-agents-feature-debugSkill
- rustSkill
- secretsSkill
- startSkill
- update-agent-learningsSkill
- update-claude-learningsSkill
- update-claude-settingsSkill
- update-skill-learningsSkill
- ast-grepSkill
- branch-review-before-prSkill
- codemapSkill
- code-simplifySkill
- commitSkill
- cost-estimateSkill
- create-prSkill
- find-bugsSkill
- frontend-design-ui-uxSkill
- git-merge-expertSkill
- git-merge-expert-worktreeSkill
- map-project-monorepoSkill
- map-projectSkill
- plan-founder-reviewSkill
- plan-to-task-list-with-dagSkill
- pr-retroSkill
- run-parallel-agents-feature-buildSkill
- run-parallel-agents-feature-debugSkill
- startSkill
- update-agent-learningsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
No returning Eloquent models directly: Every response goes through an API Resource.
- Very specific: line 21
No inline validation: All validation lives in Form Request classes.
- Very specific: line 22
No
$guarded = []: Every model uses explicit $fillable. - Distinctive: line 23
No raw queries: Use Eloquent or the query builder with parameter bindings.
- Very specific: line 24
No bare
queue:work: All queue processing uses Horizon — in development and production. - Distinctive: line 32
Before writing ANY code, you MUST complete this checklist:
- Very specific: line 34
Read references/stack.md to understand locked decisions (runtime, packages, patterns)
- Distinctive: line 36
Read the matching reference file(s) — they contain the patterns, code examples, and anti-patterns
- Distinctive: line 37
Only then begin implementation
- Very specific: line 79
All mutations in Actions wrapped in DB::transaction().
- Distinctive: line 80
All list endpoints paginated — never return unbounded collections.
- Distinctive: line 81
All responses via API Resources — never return Eloquent models directly.
“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
<EXTREMELY-IMPORTANT>
These rules apply to ALL Laravel code you write. Violating any of them produces broken, insecure, or unmaintainable output.- No business logic in controllers. Controllers validate (Form Request), delegate (Action), return (API Resource). Nothing else.
- No returning Eloquent models directly. Every response goes through an API Resource. Never
return $user. - No inline validation. All validation lives in Form Request classes. Never
$request->validate([...])in controllers. - No
$guarded = []. Every model uses explicit$fillable. Mass-assignment protection is non-negotiable. - No raw queries. Use Eloquent or the query builder with parameter bindings. Never concatenate user input into SQL.
- No bare
queue:work. All queue processing uses Horizon — in development and production. Model::shouldBeStrict()must be enabled inAppServiceProvider::boot(). This prevents lazy loading, silently discarded attributes, and access to missing attributes.</EXTREMELY-IMPORTANT>
Laravel 12 API
MANDATORY FIRST RESPONSE PROTOCOL
Before writing ANY code, you MUST complete this checklist:
- Read
references/stack.mdto understand locked decisions (runtime, packages, patterns) - Identify the task type from the routing table below
- Read the matching reference file(s) — they contain the patterns, code examples, and anti-patterns
- Only then begin implementation
Writing code without reading the reference = wrong patterns, wasted time, rework.
Routing Table
| Task | Read |
| Starting a session / understanding the stack | references/stack.md |
| Creating or modifying files, folder conventions | references/folder-structure.md |
| API routes, versioning, middleware | references/routing.md |
| Creating or editing a controller | references/controller-pattern.md |
| Adding validation to a request | references/form-requests.md |
| Creating or editing a model, relationships, scopes | references/eloquent-models.md |
| API response transformation, pagination, filtering | references/api-resources.md |
| Business logic, Actions, DTOs, service providers | references/service-layer.md |
| Authentication, tokens, roles, policies | references/auth.md |
| Migrations, seeders, factories, query optimization | references/database.md |
| Error responses, exception handling | references/error-handling.md |
| Logging configuration, structured logging | references/logging.md |
| Redis caching, cache invalidation, TTL strategy | references/caching.md |
| Jobs, queues, events, Horizon, broadcasting | references/queues-jobs.md |
| Writing tests (feature or unit) | references/testing.md |
| Security hardening, CORS, rate limiting, webhooks | references/security.md |
| API documentation generation | references/api-docs.md |
| Telescope, Horizon dashboard, Pulse, health checks | references/observability.md |
| Filament admin panel, resources, pages, widgets | references/filament.md |
| Docker setup, CI/CD, deployment | references/docker.md |
| Notifications, email, SMS | references/notifications-mail.md |
| File uploads, S3, media library | references/file-storage.md |
| Task scheduling, cron jobs | references/scheduling.md |
| AI agents, text/image/audio generation, embeddings, RAG | references/ai-sdk.md |
| AI-assisted development, Boost setup, guidelines, skills | references/boost.md |
| MCP servers, exposing app to AI clients, tools/resources/prompts | references/mcp.md |
Multiple tasks? Read multiple files. The references are self-contained — no need to consult external docs.
Quick Rules
These repeat the critical guardrails for context-window resilience:
- Controllers are thin — validate via Form Request, delegate to Action, return API Resource.
- All mutations in Actions wrapped in
DB::transaction(). - All list endpoints paginated — never return unbounded collections.
- All responses via API Resources — never return Eloquent models directly.
$fillableon every model — never$guarded = [].Model::shouldBeStrict()inAppServiceProvider::boot().- Horizon for all queue processing — never bare
queue:work.
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.

