← Zurück zu Website-Bauer

Skill · Version 1.0.0

Laravel-Codebasis erkunden

Erfasst installierten Laravel-Stack und tatsächliche Projektstruktur vor API-, Muster- und Prüfbefehlsauswahl.

laravel-codebase-discovery

Teammitglieder mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze diesen Skill in unbekannten Anwendungen oder zur Prüfung von Upgradeannahmen.

Wobei hilft er dir?

  • Liest Composer-Versionen sowie Test-, Formatierungs- und Analysekonfiguration.
  • Unterscheidet vorhandenes Anwendungsskelett von neueren Standardlayouts.
  • Lernt benachbarte Controller-, Modell-, Request- und Policymuster.

Das könntest du fragen

Erkunde Kundenverwaltung, installierte Pakete und Prüfbefehle vor dem Vorschlag eines neuen Endpunkts. Verfolge eine bestehende Kundenänderung durch Route, Request, Policy und Action. Nutze diese Konventionen zur Aufwandsschätzung und Auswahl gezielter Tests.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

Laravel Codebase & Version Discovery

Verify the project's actual Laravel, PHP, package versions and structure before proposing or writing code.

1. Versions, packages and tooling

  • Read composer.json and composer.lock for the installed php constraint, laravel/framework version and first-party or ecosystem packages (Sanctum, Horizon, Cashier, Pennant,Octane, Reverb, Inertia, Livewire, Filament, Spatie packages).
  • Check composer.json scripts, phpunit.xml / phpunit.xml.dist, pest.php, pint.json, phpstan.neon* and rector.php to see how the project runs tests, formatting and static analysis.
  • When version-specific behavior is uncertain, inspect the installed source in vendor/laravel/framework or the official docs for that exact major version. Never assume a newer Laravel feature exists without checking.

2. Skeleton and lifecycle structure

  • Check whether the app uses the Laravel 11+ streamlined skeleton (bootstrap/app.php with Application::configure(), withRouting(), withMiddleware(), withExceptions(), bootstrap/providers.php, Console Commands auto-discovery in app/Console/Commands/ and schedules in routes/console.php) or the Laravel 10 structure (app/Http/Kernel.php, app/Console/Kernel.php, app/Exceptions/Handler.php).
  • An upgraded Laravel 11 or 12 app may intentionally keep its Laravel 10 Kernel and Handler classes. Follow the structure that actually exists in the repository.

3. Infer local conventions from sibling files

  • Read 2–3 sibling files in each directory you will touch (app/Models, app/Http/Controllers, app/Http/Requests, app/Policies, app/Jobs, tests/Feature) before creating or editing code.
  • Note how business logic is organized (thin controllers with Form Requests, Action classes, Services, Events/Jobs, or domain folders) and match it; do not introduce a new layer (such as a Repository or Service layer) unless the codebase already uses it or the task genuinely requires it.
  • Trace the full lifecycle for the affected path across HTTP requests, CLI commands and long-running queue workers, including how tenant or customer context is resolved in each environment.

Enthaltene Dateien 2

  • LICENSE.txt
  • SKILL.md