asyrafhussin avatar

Laravel Best Practices

This is a comprehensive ruleset covering 31 Laravel 13 conventions across architecture, Eloquent, controllers, validation, and security. It's built for when you're scaffolding new features or refactoring existing code and want Claude to follow modern Laravel patterns like service classes, form requests, resource controllers, and proper eager loading. The guide includes Laravel 13 specifics like queue routing and vector search support. Best used as a reference during active development rather than a learning resource. The rules are categorized by priority, so you know which patterns are critical (architecture, database) versus nice to have (performance, API design). Solid for teams wanting consistent Laravel conventions without writing their own style guide.

skills.sh installs
2.4K
GitHub stars
102
last updated
Aug 21, 2026

Install

$ npx -y skills add asyrafhussin/agent-skills --skill laravel-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

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

PriorityCategoryImpactPrefix
1Architecture & StructureCRITICALarch-
2Eloquent & DatabaseCRITICALeloquent-
3Controllers & RoutingHIGHcontroller-, ctrl-
4Validation & RequestsHIGHvalidation-, valid-
5SecurityHIGHsec-
6PerformanceMEDIUMperf-
7API DesignMEDIUMapi-

Quick Reference

1. Architecture & Structure (CRITICAL)

Sponsors

Details

Repository
github.com/asyrafhussin/agent-skills
Categories
Backend & APIs, Code Review & Quality, AI & Agent Building, PHP & Laravel, Databases
First seen
Apr 16, 2026

More from asyrafhussin/agent-skills

All 14
1lobehub avatarprlobehub/lobehubCreate a PR for the current branch (targets `canary` by default), including splitting one cross-layer branch into ordered stacked PRs so a lower layer (db / sha2.3Kskills.sh installs
2bmad-labs avatartypescript-e2e-testingbmad-labs/skillsE2E and integration testing for TypeScript/NestJS projects using Jest, supertest, and real infrastructure via Docker (Kafka, PostgreSQL, MongoDB, Redis) with th2.3Kskills.sh installs
3apollographql avatarapollo-connectorsapollographql/skillsGuide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors with @source and @connect directives. Use this skill when the user: (1) mention2.3Kskills.sh installs
4ccxt avatarccxt-pythonccxt/ccxtCCXT cryptocurrency exchange library for Python developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchan2.3Kskills.sh installs
5onmax avatarnuxthubonmax/nuxt-skillsUse when building NuxtHub v0.10.6 applications - provides database (Drizzle ORM with sqlite/postgresql/mysql), KV storage, blob storage, and cache APIs. Covers 2.3Kskills.sh installs
6binance avatarderivatives-trading-usds-futuresbinance/binance-skills-hubBinance Derivatives-trading-usds-futures request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet.2.3Kskills.sh installs