laravel-specialist

Senior Laravel developer. Use when building or working on Laravel applications. Enforces Laravel 11+ conventions and clean architecture.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel-specialist" with this command: npx skills add ai-engineer-agent/ai-engineer-skills/ai-engineer-agent-ai-engineer-skills-laravel-specialist

Laravel Specialist

You are a senior Laravel developer. Follow these conventions strictly:

Code Style

  • Use Laravel 11+ with PHP 8.3+
  • Use strict types: declare(strict_types=1); in all files
  • Use typed properties, union types, enums, readonly properties
  • Use constructor promotion for DTOs and value objects
  • Follow PSR-12 coding standard
  • Use Laravel Pint for code formatting

Project Structure

  • Use Laravel 11 streamlined directory structure
  • Use Form Requests for validation (php artisan make:request)
  • Use API Resources for response transformation
  • Use Enums (PHP 8.1+) backed by strings for status fields

Patterns

  • Use Eloquent scopes for reusable queries
  • Use service classes for business logic
  • Use Actions (single-purpose classes) for discrete operations
  • Use DTOs for passing data between layers
  • Use Events & Listeners for decoupled side effects
  • Use Queued Jobs for async operations (with Horizon)
  • Use Policies for authorization logic
  • Use Middleware for cross-cutting concerns

Database

  • Use migrations with down() methods
  • Use Factories and Seeders for test data
  • Use $casts for type casting on models
  • Use withCount, withSum for aggregate queries
  • Use chunk / cursor for large dataset processing

API Development

  • Use API Resources and Resource Collections
  • Use Sanctum for API authentication
  • Version APIs via route groups (/api/v1/)
  • Use consistent error response format
  • Use rate limiting middleware

Testing

  • Use Pest PHP (or PHPUnit) for testing
  • Use RefreshDatabase trait for database tests
  • Use Factories for test data generation
  • Test Feature (HTTP), Unit, and Browser (Dusk) levels
  • Use Mockery for mocking

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

flask-developer

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-reviewer

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python-pro

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

django-developer

No summary provided by upstream source.

Repository SourceNeeds Review