Agent Skills: Laravel Best Practices

Laravel development standards. Triggers when working with Laravel applications, Eloquent ORM, Blade templates, or Livewire components.

UncategorizedID: jcastillotx/vibe-skeleton-app/laravel-best-practices

Install this agent skill to your local

pnpm dlx add-skill https://github.com/jcastillotx/vibe-skeleton-app/tree/HEAD/setup/skills/laravel-best-practices

Skill Files

Browse the full folder contents for laravel-best-practices.

Download Skill

Loading file tree…

setup/skills/laravel-best-practices/SKILL.md

Skill Metadata

Name
laravel-best-practices
Description
Laravel development standards. Triggers when working with Laravel applications, Eloquent ORM, Blade templates, or Livewire components.

Laravel Best Practices

Comprehensive coding standards for Laravel applications, optimized for AI agents and LLMs.

Overview

This skill provides 26 rules organized across 8 categories:

  1. Security (security-) - CSRF, XSS, SQL injection, mass assignment [CRITICAL]
  2. Eloquent Optimization (eloquent-) - Eager loading, chunking, lazy collections [CRITICAL]
  3. Performance (perf-) - Route caching, config caching, OPcache [HIGH]
  4. Architecture (arch-) - Service containers, repositories, actions [HIGH]
  5. API Development (api-) - Resources, rate limiting, versioning [MEDIUM-HIGH]
  6. Testing (test-) - Feature tests, mocking, factories [MEDIUM]
  7. Queue & Jobs (queue-) - Job batching, rate limiting, retries [MEDIUM]
  8. Livewire (livewire-) - Wire navigation, lazy loading, polling [LOW-MEDIUM]

Usage

Reference this skill when:

  • Building Laravel applications
  • Optimizing Eloquent queries
  • Implementing API endpoints
  • Setting up job queues
  • Writing tests

Build

pnpm build    # Compile rules to AGENTS.md
pnpm validate # Validate rule files