All skills
asyrafhussin avatar

/laravel-best-practices

@ef59186

Laravel 13 conventions and best practices. Use when creating controllers, models, migrations, validation, services, or structuring Laravel applications. Triggers on tasks involving Laravel architecture, Eloquent, database, API development, or PHP patterns.

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/laravel-best-practices

This session only. Nothing lands on disk.

rules_template.md

≈372 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Rule Title Here

Impact: MEDIUM (optional impact description)

Brief explanation of the rule and why it matters in Laravel 13 applications. This should be clear and concise, explaining the performance, maintainability, or security implications. Focus on Laravel-specific context and patterns.

Bad Example

<?php

// Bad code example here
// Shows the antipattern or incorrect approach
class BadExample
{
    public function badMethod()
    {
        // This demonstrates what NOT to do
    }
}

Good Example

<?php

// Good code example here
// Shows the recommended Laravel 13 pattern
class GoodExample
{
    public function __construct(
        private readonly DependencyService $service,
    ) {}

    public function goodMethod(): ReturnType
    {
        // This demonstrates the correct approach
        // Using modern PHP 8.3 and Laravel 13 features
    }
}

Additional context or variations (optional):

<?php

// Alternative patterns or edge cases
// Advanced usage examples
// Laravel 13 specific features

Why It Matters

  • Benefit 1: Specific advantage
  • Benefit 2: Performance/security/maintainability improvement
  • Benefit 3: How it helps in real-world Laravel applications

Reference: Laravel 13 Documentation

Source: SKILL.md on GitHub

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive guide to Laravel 13 best practices, providing safe and standard architectural, database, and security patterns for PHP development. No malicious behavior or security risks were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    1/37 files flagged

  • ZeroLeaks5mo

    2 findings · Score: 80/100

Signed by skilld at ef59186. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
Other metadata
metadata
{
  "author": "Laravel Community",
  "version": "2.1.0",
  "laravelVersion": "13.x",
  "phpVersion": "8.3+"
}

README badge

README badge for asyrafhussin/agent-skills/laravel-best-practices