Skip to content

x-multibyte/laravel-dev-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Laravel Dev Skill

AI-powered Laravel development toolkit designed to enhance AI assistants across multiple CLI tools. Provides intelligent Preset system, comprehensive documentation, and automation scripts for rapid Laravel development.

🎯 Core Philosophy

This skill is NOT a replacement for Laravel's official tools.

Laravel Dev Skill enhances AI assistants (Claude Code, Cursor, Windsurf, Continue, etc.) by providing:

  • Intelligent Context: Understands development scenarios and recommends optimal solutions
  • Smart Presets: Out-of-the-box project configurations for common use cases
  • Comprehensive Knowledge: Multi-version Laravel documentation (10.x, 11.x, 12.x)
  • Developer-First: Designed to help developers work faster, not replace their workflow

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  AI CLI Tools Layer                      β”‚
β”‚  Claude Code β”‚ Cursor β”‚ Windsurf β”‚ Continue β”‚ Others  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Laravel Dev Skill (AI Intelligence)         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  Intent Understanding - Analyze requirements     β”‚   β”‚
β”‚  β”‚  Knowledge Retrieval - Search Laravel docs       β”‚   β”‚
β”‚  β”‚  Code Generation - Generate project code         β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Data Layer                            β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  laravel-dev-presets (Remote Repository)        β”‚   β”‚
β”‚  β”‚  - api/10.json, api/11.json, api/12.json     β”‚   β”‚
β”‚  β”‚  - filament/v4.json, filament/v5.json         β”‚   β”‚
β”‚  β”‚  - framework/10.json, framework/11.json, etc. β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  Laravel Documentation (Local Cache)           β”‚   β”‚
β”‚  β”‚  - references/v10/ (Laravel 10.x)              β”‚   β”‚
β”‚  β”‚  - references/v11/ (Laravel 11.x)              β”‚   β”‚
β”‚  β”‚  - references/v12/ (Laravel 12.x)              β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                Tool Layer (Official Tools)              β”‚
β”‚  Laravel Installer β”‚ Composer β”‚ Artisan β”‚ npm/pnpm    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Available Presets

Presets are fetched from the laravel-dev-presets repository.

API Projects (api/)

  • 10.json - Laravel 10.x API project with Sanctum authentication
  • 11.json - Laravel 11.x API project with Sanctum authentication
  • 12.json - Laravel 12.x API project with Sanctum authentication

Filament (filament/)

  • v4.json - Filament v4 admin panel configuration
  • v5.json - Filament v5 admin panel configuration

Framework (framework/)

  • 10.json - Laravel 10.x base framework setup
  • 11.json - Laravel 11.x base framework setup
  • 12.json - Laravel 12.x base framework setup

Laravel Packages (laravel-package/)

  • blade-component.json - Blade component development preset
  • filament-plugin-skeleton.json - Filament plugin skeleton
  • meta-package.json - Meta package template
  • package-skeleton-laravel.json - Laravel package skeleton
  • package.json - Generic package template

Starter Kits (starter-kits/)

  • livewire.json - Livewire starter kit
  • react.json - React starter kit
  • svelte.json - Svelte starter kit
  • vue.json - Vue starter kit

πŸš€ Installation

For AI CLI Tools

This skill is designed to work with various AI CLI tools. Install it according to your tool's documentation:

Claude Code:

# Add to Claude Code project
# File: .claude/skills/laravel-dev/

Cursor:

# Add to Cursor's skills directory
# File: .cursor/skills/laravel-dev/

Windsurf:

# Add to Windsurf's skills directory
# File: .windsurf/skills/laravel-dev/

Continue:

# Add to Continue's skills directory
# File: ~/.continue/skills/laravel-dev/

Manual Installation

  1. Clone this repository:
git clone https://github.com/x-multibyte/laravel-dev-skill.git
  1. Copy to your AI tool's skills directory:
cp -r laravel-dev-skill ~/.your-ai-tool/skills/
  1. Verify installation:
bash laravel-dev-skill/scripts/preset_manager.sh --list

✨ Features

Intelligent Preset System

The Preset system provides out-of-the-box Laravel project configurations. AI assistants can intelligently recommend the best preset based on your development scenario.

Preset Features:

  • βœ… Dual Version Control - File name = Laravel version, JSON version = preset version
  • βœ… Smart Recommendation - AI analyzes requirements and suggests optimal presets
  • βœ… Dependency Management - Auto-install required Composer and NPM packages
  • βœ… Environment Configuration - Pre-configured .env files
  • βœ… Lifecycle Hooks - Support for custom scripts at different stages
  • βœ… Template Injection - Support custom code templates
  • βœ… Git Sync - Dynamically update from remote repository

Quick Start with AI Assistant

Ask your AI assistant:

"Create a Laravel 12 API project with Sanctum authentication" β†’ AI recommends api/12.json preset β†’ Generates project with authentication, API resources, rate limiting

"Build a full-stack app with Filament admin panel" β†’ AI recommends filament/v5.json + fullstack preset β†’ Generates project with admin panel, authentication, real-time features

"Create a Laravel package for blade components" β†’ AI recommends laravel-package/blade-component.json β†’ Generates package skeleton with component templates

Preset Management

# List all available presets
bash scripts/preset_manager.sh --list

# View preset summary
bash scripts/preset_manager.sh --summary api 12

# Check dependency compatibility
bash scripts/preset_manager.sh --check api 12

# Validate preset format
bash scripts/preset_manager.sh --validate api 12

# Parse preset configuration
bash scripts/preset_manager.sh --parse api 12

Documentation Access

AI assistants can query Laravel documentation by topic:

# Database documentation
read_file('references/current/database.md')

# Authentication documentation
read_file('references/current/auth.md')

# Routing documentation
read_file('references/current/routing.md')

# Artisan commands
read_file('references/current/artisan.md')

Version Management

# List available Laravel versions
python scripts/version_manager.py --list

# Switch to Laravel 11.x documentation
python scripts/version_manager.py --set-current 11.x

# Compare versions
python scripts/version_manager.py --compare 11.x 12.x

Ecosystem Configuration

Quick configuration for Laravel ecosystem packages:

# Configure all packages (Sail, Reverb, Echo)
bash scripts/setup-ecosystem.sh --all

# Configure Sail only
bash scripts/setup-ecosystem.sh --sail

# Configure Reverb and Echo
bash scripts/setup-ecosystem.sh --reverb --echo

πŸ“ Project Structure

laravel-dev-skill/
β”œβ”€β”€ SKILL.md                          # Skill documentation for AI assistants
β”œβ”€β”€ README.md                         # This file
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ packages.json                 # Laravel ecosystem package definitions
β”‚   β”œβ”€β”€ preset-schema.json             # Preset JSON Schema for validation
β”‚   └── settings.json                   # Skill configuration
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ preset_manager.sh              # Preset management tool
β”‚   β”œβ”€β”€ setup-ecosystem.sh            # Ecosystem configuration scripts
β”‚   β”œβ”€β”€ fetch_laravel_docs.py         # Documentation fetcher
β”‚   └── version_manager.py             # Version management tool
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ INDEX.md                        # Quick navigation index
β”‚   β”œβ”€β”€ PRESETS.md                      # Preset usage guide
β”‚   β”œβ”€β”€ artisan-quick-reference.md      # Artisan command reference
β”‚   β”œβ”€β”€ ecosystem-config-guide.md       # Detailed ecosystem guide
β”‚   β”œβ”€β”€ config/                         # Configuration templates
β”‚   β”‚   β”œβ”€β”€ broadcasting.reverb.php
β”‚   β”‚   β”œβ”€β”€ docker-compose.yml
β”‚   β”‚   β”œβ”€β”€ echo.bootstrap.js
β”‚   β”‚   └── supervisor-reverb.conf
β”‚   └── presets/                        # Cache directory (empty)
β”‚       └── .gitkeep                    # Presets fetched from remote repo
└── references/
    β”œβ”€β”€ current/                         # Symlink to current version
    β”œβ”€β”€ v10/                            # Laravel 10.x documentation
    β”œβ”€β”€ v11/                            # Laravel 11.x documentation
    └── v12/                            # Laravel 12.x documentation

🎯 Use Cases

1. Rapid API Development

Developer: "I need to build a REST API for a mobile app"

AI Assistant:

  1. Analyzes requirement β†’ Recommends api/12.json
  2. Applies preset with Sanctum authentication
  3. Configures API resources, rate limiting
  4. Sets up testing infrastructure

2. Admin Panel Creation

Developer: "I need an admin panel for content management"

AI Assistant:

  1. Analyzes requirement β†’ Recommends filament/v5.json
  2. Applies preset with Filament v5
  3. Generates CRUD resources, forms, tables
  4. Configures permissions and roles

3. Package Development

Developer: "I want to create a Laravel package"

AI Assistant:

  1. Analyzes requirement β†’ Recommends laravel-package/package.json
  2. Generates package skeleton
  3. Sets up service providers, facades
  4. Configures testing and documentation

4. Full-stack Application

Developer: "I need a complete web application with real-time features"

AI Assistant:

  1. Analyzes requirement β†’ Recommends combination of presets
  2. Applies framework/12.json + realtime-app.json
  3. Configures Reverb for WebSocket
  4. Sets up Laravel Echo client
  5. Generates frontend and backend

πŸŽ“ AI Assistant Integration

How AI Assistants Use This Skill

  1. Intent Understanding: Parse developer's natural language requirements
  2. Preset Recommendation: Match requirements to optimal presets
  3. Configuration Application: Apply preset configurations
  4. Code Generation: Generate project code based on preset
  5. Documentation Lookup: Provide relevant Laravel documentation
  6. Best Practices: Suggest improvements and optimizations

Example Interaction

Developer: "Create a Laravel 12 project with Filament admin panel"
    
AI Assistant: "I'll create a Laravel 12 project with Filament v5 admin panel.
            
    Recommended preset: filament/v5.json
    Version: 2.0.0
    Features: Admin panel, authentication, resources, permissions
    
    Steps:
    1. Create Laravel project using official installer
    2. Apply filament/v5.json preset
    3. Install dependencies (Filament v5, Spatie Permission)
    4. Generate admin resources
    5. Configure authentication and permissions
    
    Shall I proceed?"

πŸ”— Related Projects

🌟 Roadmap

Completed βœ…

  • Preset JSON Schema with validation
  • Remote Presets repository
  • 6 Preset categories (API, Filament, Framework, Laravel Package, Starter Kits)
  • Multi-version documentation (10.x, 11.x, 12.x)
  • Ecosystem configuration guides
  • AI assistant integration patterns

In Progress 🚧

  • Preset sync script (sync_presets.sh)
  • Enhanced preset_manager.sh with remote fetching
  • Environment compatibility checker

Planned πŸ“‹

  • More preset categories (e-commerce, CMS, microservices)
  • Community preset contribution system
  • Preset validation and testing automation
  • AI-powered preset recommendation engine

πŸ’‘ Value Proposition

For Developers

  • Faster Development - Start with pre-configured projects
  • Fewer Errors - Validated configurations from experts
  • Consistency - Standardized project structures
  • Flexibility - Create and share custom presets
  • Learning - Understand best practices through examples

For AI Assistants

  • Intelligent Context - Understand development scenarios deeply
  • Smart Recommendations - Suggest optimal solutions automatically
  • Simplified Interaction - Natural language β†’ working project
  • Programmability - Structured data for easy processing
  • Dynamic Updates - Always access latest presets from remote

🀝 Contributing

Contributions are welcome! Please:

  1. For Presets: Fork laravel-dev-presets and add your preset
  2. For Documentation: Improve this skill's documentation
  3. For Scripts: Enhance automation scripts

Adding a New Preset

  1. Fork laravel-dev-presets
  2. Choose the appropriate category folder
  3. Create a new JSON file following the schema
  4. Validate against preset-schema.json
  5. Submit a pull request

πŸ“„ License

MIT License - see LICENSE file for details

πŸ“ž Support

For issues, questions, or suggestions:

  • Open an issue on GitHub
  • Check laravel-dev-presets for preset-related issues
  • Consult the documentation in templates/ directory

Important: This skill enhances AI assistants' capabilities for Laravel development. It does NOT replace Laravel's official tools or documentation. Always refer to laravel.com for official documentation and github.com/laravel/laravel for the framework source code.

About

AI-powered Laravel development toolkit with Preset system, comprehensive documentation, and automation scripts for rapid development. Designed to enhance AI assistants across multiple CLI tools.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors