laravel-best-practices

Analyze Laravel PHP code for best practices, performance, and security.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thnakon/babybib-v2 --skill laravel-best-practices-thnakon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-best-practices
Source: https://github.com/thnakon/babybib-v2/tree/main/.agents/.crush/skills/laravel-best-practices
Command: npx skills add https://github.com/thnakon/babybib-v2 --skill laravel-best-practices-thnakon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write, review, and refactor Laravel PHP code by applying best practices, improving performance, and ensuring security.

Core Features & Use Cases

  • Code Quality: Provides guidelines for consistent code style, naming conventions, and best practices.
  • Performance: Offers strategies for database performance, caching, and query optimization.
  • Security: Ensures secure coding practices and prevention of common security vulnerabilities.
  • Use Case: When developing a Laravel application, use this Skill to check your code against best practices and optimize performance.

Quick Start

Apply this skill to your Laravel project to ensure adherence to best practices.

Frequently Asked Questions about laravel-best-practices

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

FAQPage Schema
How do I optimize Eloquent queries for better Laravel performance?

This Skill analyzes your Laravel codebase for performance optimization, checking Eloquent queries and caching strategies to resolve issues like the N+1 query problem.

What are the best practices for securing Laravel controllers and form requests?

Securing Laravel controllers and form requests involves analyzing your codebase to enforce secure coding practices and prevent common security vulnerabilities across all application tasks.

How do I refactor Laravel code to follow standard naming conventions?

Refactoring Laravel code for naming conventions involves applying consistent code style guidelines across models, migrations, and service classes to improve overall code quality.

Can I use this to review scheduled commands and jobs in my Laravel application?

Yes, this applies to all Laravel codebase tasks including scheduled commands, jobs, and service classes, analyzing them for adherence to best practices and performance optimization.

Do I need deep PHP framework knowledge to apply Laravel performance optimization?

Yes, applying Laravel performance optimization requires knowledge of the Laravel framework and PHP programming to properly analyze and refactor controllers, models, and Eloquent queries.