mcpField
L
laravel-specialist

laravel-specialist

github.com/404kidwizDevelopment120 installs
Repository

About laravel-specialist

laravel-specialist is a guidance skill for Laravel developers, covering Laravel 11+, Livewire 3, and PHP 8.3 for web apps, APIs, and performance work. It includes development workflows, practices, and anti-patterns.

Key features

  1. 01Laravel app and API guidance
  2. 02Livewire 3 reactive components
  3. 03Eloquent models and relationships
  4. 04Queues, jobs, and real-time features
  5. 05Octane performance optimization
  6. 06Testing and security practices

Use cases

  1. 01Build a Laravel web app or API
  2. 02Create interactive Livewire 3 interfaces
  3. 03Optimize queries and application performance
  4. 04Configure queues and background jobs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill laravel-specialist

After installing, type/laravel-specialistin Claude Code to confirm it loaded.

Details

From the project README

Laravel Specialist

Purpose

Provides expert guidance on Laravel framework development using modern Laravel 11+ features, Livewire 3, and PHP 8.3. Specializes in building scalable web applications, APIs, real-time features, and performance optimization with Octane.

When to Use

  • Building new Laravel applications or APIs
  • Implementing Livewire 3 reactive components
  • Optimizing Laravel performance with Octane
  • Designing Eloquent models and relationships
  • Creating custom Artisan commands
  • Implementing Laravel queues and jobs
  • Building real-time features with Broadcasting
  • Setting up Laravel Sail or deployment

Quick Start

Invoke this skill when:

  • Developing Laravel web applications or APIs
  • Building reactive UIs with Livewire 3
  • Optimizing performance with Octane or caching
  • Working with Eloquent ORM patterns
  • Implementing Laravel ecosystem packages

Do NOT invoke when:

  • Generic PHP without Laravel → use /php-pro
  • WordPress development → use /wordpress-master
  • Frontend JavaScript frameworks → use /vue-expert or /react-specialist
  • Database design independent of Laravel → use /database-administrator

Decision Framework

Feature Type?
├── Interactive UI
│   ├── Complex SPA → Inertia.js + Vue/React
│   └── Reactive components → Livewire 3
├── API
│   ├── Simple REST → Laravel API Resources
│   └── Complex → Laravel + Sanctum/Passport
├── Background Processing
│   └── Laravel Queues with Redis/SQS
└── Real-time
    └── Laravel Echo + Pusher/Soketi

Core Workflows

1. Laravel 11 Application Setup
  1. Create project with laravel new --using=sail
  2. Configure environment and database
  3. Set up authentication (Breeze/Jetstream)
  4. Define models with migrations
  5. Implement routes and controllers
  6. Add middleware and policies
2. Livewire 3 Component Development
  1. Create Livewire component class
  2. Define public properties and methods
  3. Build Blade template with wire directives
  4. Implement validation and actions
  5. Add Alpine.js for client-side enhancements
  6. Test with Livewire testing utilities
3. Performance Optimization
  1. Enable Octane with Swoole/RoadRunner
  2. Implement query caching and eager loading
  3. Use Redis for session and cache
  4. Optimize Composer autoloader
  5. Configure OPcache settings
  6. Set up queue workers for async tasks

Best Practices

  • Use strict types and PHP 8.3 features (readonly, enums)
  • Eager load relationships to avoid N+1 queries
  • Implement form requests for validation
  • Use Laravel Pint for consistent code style
  • Write feature tests with Laravel's testing utilities
  • Leverage Laravel's built-in security features

Anti-Patterns

Anti-PatternProblemCorrect Approach
Fat controllersHard to test and maintainMove logic to Actions/Services
N+1 queriesPerformance degradationEager loading with with()
Raw SQL everywhereLoses Eloquent benefitsUse Eloquent, raw only when needed
Ignoring queuesSlow user responsesQueue slow operations
No cachingUnnecessary DB loadCache expensive queries

Comments

Markdown supported