laravel-filamentlisted
Install: claude install-skill majdghithan/agent-skills
# Laravel Filament (v1 - v5)
Filament is a collection of TALL-stack (Tailwind, Alpine, Laravel, Livewire) packages for building admin panels and app UIs. Its API has changed substantially across major versions, so **the same code is right on one version and wrong on another**. This skill's core discipline: **find out which version is installed, then apply only that version's rules.**
## Step 1 - Detect the installed version FIRST (do not skip)
Never write or review Filament code before you know the major version. Determine it, in order of preference:
```bash
# Most reliable - the resolved installed version:
composer show filament/filament | grep -i '^versions'
# or
php artisan about | grep -i filament
# From the constraint (tells you the intended major):
grep '"filament/filament"' composer.json # e.g. "^3.2", "^4.0", "^5.0"
# Fallback - read the locked version directly:
grep -A2 '"name": "filament/filament"' composer.lock | grep version
```
Map the result to a major: `1.x`, `2.x`, `3.x`, `4.x`, or `5.x`. If Filament is not yet installed and the user is starting fresh, default to the **latest stable** and confirm with them. If you truly cannot determine the version, ask - do not guess.
## Step 2 - Load the matching reference
Read the reference file for the detected major before giving version-specific syntax. Each file has that version's real namespaces, class names, method signatures, patterns, and gotchas.
| Version | Era (one-liner) | Reference |
|---|---