This is your go-to reference for keeping Laravel database queries fast. It covers the usual suspects: eliminating N+1 queries with eager loading, adding the right indexes, using Redis caching effectively, and handling large datasets with cursor pagination. The 33 rules are organized by impact level, so you tackle critical performance issues first. It's built for Laravel 13 and includes practical patterns like preventing lazy loading in development, using withCount instead of loading full relations, and writing zero-downtime migrations. The rule categories are well structured, from query optimization and indexing to transactions and naming conventions. Solid for both fixing existing bottlenecks and writing performant code from the start.
npx skills add https://github.com/asyrafhussin/agent-skills --skill laravel-database-optimization