laravel-best-practices

Enforce Laravel coding standards across Eloquent, Blade, and Livewire projects.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/jcastillotx/vibe-skeleton-app --skill laravel-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-best-practices
Source: https://github.com/jcastillotx/vibe-skeleton-app/tree/main/setup/skills/laravel-best-practices
Command: npx skills add https://github.com/jcastillotx/vibe-skeleton-app --skill laravel-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes Laravel development practices to reduce security risks, improve performance, and enhance code quality. It helps teams align on conventions for Eloquent usage, Blade templates, and Livewire components, making AI-assisted development more reliable.

Core Features & Use Cases

  • Comprehensive rule set: 26 rules spanning Security, Eloquent optimization, Performance, Architecture, API development, Testing, Queues, and Livewire.
  • Consistent code quality: Enforces patterns that prevent common mistakes such as N+1 queries, mass assignment vulnerabilities, and slow route loading.
  • Use Case: A development team wants to apply a standardized Laravel coding standard across multiple services to accelerate onboarding and maintain consistency.

Quick Start

Audit your Laravel project against the 26 rules and apply the recommended changes to improve security, performance, and maintainability.

Frequently Asked Questions about laravel-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent N+1 query problems and mass assignment vulnerabilities in Laravel Eloquent?

To prevent N+1 queries and mass assignment vulnerabilities in Laravel Eloquent, apply standardized coding rules that enforce eager loading and restrict fillable attributes. Auditing your project against these 26 Laravel best practices improves both security and performance.

What are the best practices for securing Laravel Livewire components and Blade templates?

Securing Laravel Livewire components and Blade templates requires enforcing specific architecture and security rules. By applying a standardized rule set across 8 categories, teams can reduce security risks and maintain consistent code quality during AI-assisted development.

How can I standardize Laravel code quality across multiple services for my development team?

Standardizing Laravel code quality across multiple services involves enforcing 26 rules spanning security, performance, architecture, API, testing, queues, and Livewire. This alignment accelerates onboarding and makes AI-assisted development more reliable.

Does this Laravel coding standard cover API development and queue performance?

Yes, this Laravel coding standard covers API development and queue performance. It enforces 26 rules across 8 categories including API, queue, performance, and architecture, targeting slow route loading and other common mistakes.

Why should I audit my Laravel project against standardized coding rules?

Auditing your Laravel project against standardized coding rules reduces security risks, improves performance, and enhances maintainability. Applying the recommended changes across Eloquent, Blade, and Livewire ensures consistent code quality.

What is the best way to enforce Laravel coding standards for AI-assisted coding?

The best way to enforce Laravel coding standards for AI-assisted coding is applying a comprehensive rule set covering security, Eloquent, performance, architecture, API, testing, queues, and Livewire to prevent common mistakes and enhance maintainability.