Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add AsyrafHussin/agent-skills --skill laravel-best-practicesgit clone --depth 1 https://github.com/AsyrafHussin/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-best-practices)<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.02160 |
| Opus 5 | $0.00027 | $0.01080 |
| Sonnet 5 | $0.00011 | $0.00432 |
| Haiku 4.5 | $0.00005 | $0.00216 |
Grade A, and why
laravel-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel 13 Best Practices
Comprehensive best practices guide for Laravel 13 applications. Contains 31 rules across 7 categories for building scalable, maintainable Laravel applications.
When to Apply
Reference these guidelines when:
- Creating controllers, models, and services
- Writing migrations and database queries
- Implementing validation and form requests
- Building APIs with Laravel
- Structuring Laravel applications
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Architecture & Structure | CRITICAL | arch- |
| 2 | Eloquent & Database | CRITICAL | eloquent- |
| 3 | Controllers & Routing | HIGH | controller-, ctrl- |
| 4 | Validation & Requests | HIGH | validation-, valid- |
| 5 | Security | HIGH | sec- |
| 6 | Performance | MEDIUM | perf- |
| 7 | API Design | MEDIUM | api- |
Quick Reference
1. Architecture & Structure (CRITICAL)
arch-service-classes- Extract business logic to servicesarch-action-classes- Single-purpose action classesarch-repository-pattern- When to use repositoriesarch-dto-pattern- Data transfer objectsarch-value-objects- Encapsulate domain conceptsarch-event-driven- Decouple with events and listenersarch-feature-folders- Organize by domain/featurearch-queue-routing- Centralized job queue routing (Laravel 13+)
2. Eloquent & Database (CRITICAL)
eloquent-eager-loading- Prevent N+1 querieseloquent-chunking- Process large datasetseloquent-query-scopes- Reusable query logiceloquent-model-events- Use observers for side effectseloquent-relationships- Define relationships properlyeloquent-casts- Automatic attribute castingeloquent-accessors-mutators- Transform attributeseloquent-soft-deletes- Safe deletion with recoveryeloquent-pruning- Automatic cleanup of old recordseloquent-vector-search- Semantic search with pgvector (Laravel 13+)
What ships with it
36 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 155 KB
- metadata.json 3.1 KB
- README.md 2.0 KB
- rules/_sections.md 2.4 KB
- rules/_template.md 1.5 KB
- rules/arch-action-classes.md 3.7 KB
- rules/arch-dto-pattern.md 5.3 KB
- rules/arch-event-driven.md 5.6 KB
- rules/arch-feature-folders.md 6.0 KB
- rules/arch-queue-routing.md 2.9 KB
- rules/arch-repository-pattern.md 5.9 KB
- rules/arch-service-classes.md 6.9 KB
- rules/arch-value-objects.md 6.1 KB
- rules/controller-api-resources.md 6.8 KB
- rules/controller-dependency-injection.md 5.1 KB
- rules/controller-form-requests.md 5.9 KB
- rules/controller-middleware.md 5.4 KB
- rules/controller-resource-controllers.md 5.8 KB
- rules/controller-resource-methods.md 4.8 KB
- rules/controller-single-action.md 3.9 KB
- rules/eloquent-accessors-mutators.md 4.5 KB
- rules/eloquent-casts.md 5.3 KB
- rules/eloquent-chunking.md 3.4 KB
- rules/eloquent-eager-loading.md 2.8 KB
- rules/eloquent-model-events.md 5.1 KB
- rules/eloquent-pruning.md 5.1 KB
- rules/eloquent-query-scopes.md 4.6 KB
- rules/eloquent-relationships.md 4.9 KB
- rules/eloquent-soft-deletes.md 4.1 KB
- rules/eloquent-vector-search.md 4.2 KB
- rules/sec-mass-assignment.md 4.5 KB
- rules/validation-after-hooks.md 7.4 KB
- rules/validation-array-validation.md 6.5 KB
- rules/validation-conditional-rules.md 6.4 KB
- rules/validation-custom-rules.md 6.6 KB
- rules/validation-form-requests.md 5.9 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 357 lines · 54 tokens per session scan A 8bf2d5087d2c
laravel-best-practices is a skill published in the GitHub repository AsyrafHussin/agent-skills (75 stars, last pushed 16d ago), licensed MIT. It adds 54 tokens to every session and 2,160 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
laravel-specialist
Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…
designing-data-intensive-applications
Apply Martin Kleppmann-inspired data-system rules when designing reliability, scalability, consistency, replication, transactions, streams, or schema evolution.
implementing-domain-driven-design
Apply Vaughn Vernon-inspired implementation DDD rules when building aggregates, domain events, repositories, application services, or context integrations.
patterns-of-enterprise-application-architecture
Apply Martin Fowler-inspired enterprise architecture rules when choosing layers, service layers, transaction scripts, domain models, repositories, mappers, or DTOs.
owl-admin-devtools-generator
A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.
llamaindex-development
Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.