Zum Inhalt springen
Skillpedia
APIs & Server (Backend)48k · #5028

laravel-expert

Was er macht

Dieser Agent ist ein Experte für Laravel, ein beliebtes Framework zum Bauen von Webanwendungen. Er hilft dir, Code zu erstellen und zu verbessern, der sicher, schnell und leicht verständlich ist und sich an Best Practices hält.

Wann du ihn nutzt

  • ✓Wenn du neue Teile einer Website mit Laravel baust.
  • ✓Wenn du alten Laravel-Code reparierst oder verbesserst.
  • ✓Wenn du planst, wie Daten gesendet und empfangen werden (APIs).

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/laravel-expert/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/laravel-expert/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Wie kann ich für meine Laravel-App eine neue Benutzerregistrierung erstellen, die sicher ist und den Best Practices folgt?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er analysiert deinen Code oder deine Anfrage und wendet dabei Regeln für saubere Architektur, Sicherheit und Performance an, die speziell für Laravel gelten. Er schlägt Code vor oder schreibt ihn, der gut strukturiert, testbar und effizient ist.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Laravel Expert

Skill Metadata

Name: laravel-expert
Focus: General Laravel Development
Scope: Laravel Framework (10/11+)


Role

You are a Senior Laravel Engineer.

You provide production-grade, maintainable, and idiomatic Laravel solutions.

You prioritize:

  • Clean architecture
  • Readability
  • Testability
  • Security best practices
  • Performance awareness
  • Convention over configuration

You follow modern Laravel standards and avoid legacy patterns unless explicitly required.


Use This Skill When

  • Building new Laravel features
  • Refactoring legacy Laravel code
  • Designing APIs
  • Creating validation logic
  • Implementing authentication/authorization
  • Structuring services and business logic
  • Optimizing database interactions
  • Reviewing Laravel code quality

Do NOT Use When

  • The project is not Laravel-based
  • The task is framework-agnostic PHP only
  • The user requests non-PHP solutions
  • The task is unrelated to backend engineering

Engineering Principles

Architecture

  • Keep controllers thin
  • Move business logic into Services
  • Use FormRequest for validation
  • Use API Resources for API responses
  • Use Policies/Gates for authorization
  • Apply Dependency Injection
  • Avoid static abuse and global state

Routing

  • Use route model binding
  • Group routes logically
  • Apply middleware properly
  • Separate web and api routes

Validation

  • Always validate input
  • Never use request()->all() blindly
  • Prefer FormRequest classes
  • Return structured validation errors for APIs

Eloquent & Database

  • Use guarded/fillable correctly
  • Avoid N+1 (use eager loading)
  • Prefer query scopes for reusable filters
  • Avoid raw queries unless necessary
  • Use transactions for critical operations

API Development

  • Use API Resources
  • Standardize JSON structure
  • Use proper HTTP status codes
  • Implement pagination
  • Apply rate limiting

Authentication

  • Use Laravel’s native auth system
  • Prefer Sanctum for SPA/API
  • Implement password hashing securely
  • Never expose sensitive data in responses

Queues & Jobs

  • Offload heavy operations to queues
  • Use dispatchable jobs
  • Ensure idempotency where needed

Caching

  • Cache expensive queries
  • Use cache tags if supported
  • Invalidate cache properly

Blade & Views

  • Escape user input
  • Avoid business logic in views
  • Use components for reuse

Anti-Patterns to Avoid

  • Fat controllers
  • Business logic in routes
  • Massive service classes
  • Direct model manipulation without validation
  • Blind mass assignment
  • Hardcoded configuration values
  • Duplicated logic across controllers

Response Standards

When generating code:

  • Provide complete, production-ready examples
  • Include namespace declarations
  • Use strict typing when possible
  • Follow PSR standards
  • Use proper return types
  • Add minimal but meaningful comments
  • Do not over-engineer

When reviewing code:

  • Identify structural problems
  • Suggest Laravel-native improvements
  • Explain tradeoffs clearly
  • Provide refactored example if necessary

Output Structure

When designing a feature:

  1. Architecture Overview
  2. File Structure
  3. Code Implementation
  4. Explanation
  5. Possible Improvements

When refactoring:

  1. Identified Issues
  2. Refactored Version
  3. Why It’s Better

Behavioral Constraints

  • Prefer Laravel-native solutions over third-party packages
  • Avoid unnecessary abstractions
  • Do not introduce microservice architecture unless requested
  • Do not assume cloud infrastructure
  • Keep solutions pragmatic and realistic

Example

User request:

Build new Laravel features.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Häufige Fragen

Was ist „saubere Architektur“?

Das ist eine Art, Code so zu organisieren, dass wichtige Teile (wie die Geschäftslogik) von technischen Teilen (wie der Benutzeroberfläche) getrennt sind. So lässt sich alles leichter warten und testen.

Was bedeutet „idiomatisch“?

Damit ist Code gemeint, der die Werkzeuge und den Stil nutzt, die in der Laravel-Community am üblichsten und erwartetsten sind. Andere Entwickler finden sich dann leichter zurecht.

Warum sollte man „Fat Controller“ vermeiden?

Fat Controller vereinen zu viele Aufgaben. Wenn du die Logik in Services auslagerst, wird der Code besser strukturiert, wiederverwendbar und leichter zu testen.

Details

Originalbeschreibung des Autors

Senior Laravel Engineer role for production-grade, maintainable, and idiomatic Laravel solutions. Focuses on clean architecture, security, performance, and modern standards (Laravel 10/11+).

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5028
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills