/filament-ai-skills:livewire-developmentfrom filament-ai-skills
Develops reactive Livewire 4 components with Filament v5. Covers component creation, wire: directives, Alpine.js integration, lifecycle hooks, testing, and v3-to-v4 migration patterns.
Ships in filament-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Works with Livewire v4 (Filament v5). Some patterns changed from v3 — see "Livewire v4 — Changes" below.
Activate this skill when:
wire:* directivesUse search-docs for detailed Livewire 4 patterns.
php artisan make:livewire Posts\\CreatePost
{{-- v3 --}}
<livewire:component>
{{-- v4 --}}
<livewire:component />
.deep for child events{{-- v3 — responded to child events automatically --}}
<input wire:model="name">
{{-- v4 — needs .deep --}}
<input wire:model.deep="name">
{{-- v3 --}}
<div wire:transition.opacity.duration.300ms>
{{-- v4 — no modifiers --}}
<div wire:transition>
// v3
'layout' => 'layouts.app',
// v4
'component_layout' => 'layouts.app',
wire:model.live for real-time reactivity (non-live is deferred)App\Livewire (not App\Http\Livewire)$this->dispatch() for events (not emit or dispatchBrowserEvent)components.layouts.appwire:show, wire:transition, wire:cloak, wire:offline, wire:target, wire:loading, wire:dirty.
wire:loading and wire:dirty for delightful loading states.@foreach ($items as $item)
<div wire:key="item-{{ $item->id }}">
{{ $item->name }}
</div>
@endforeach
Prefer lifecycle hooks like mount(), updatedFoo() for initialization and reactive side effects:
public function mount(User $user) { $this->user = $user; }
public function updatedSearch() { $this->resetPage(); }
document.addEventListener('livewire:init', function () {
Livewire.hook('request', ({ fail }) => {
if (fail && fail.status === 419) {
alert('Your session expired');
}
});
Livewire.hook('message.failed', (message, component) => {
console.error(message);
});
});
Livewire::test(Counter::class)
->assertSet('count', 0)
->call('increment')
->assertSet('count', 1)
->assertSee(1)
->assertStatus(200);
$this->get('/posts/create')
->assertSeeLivewire(CreatePost::class);
wire:key in loops causes unexpected behaviorwire:model expecting real-time (use wire:model.live)<livewire:component />)wire:model expecting to respond to child events (needs .deep)wire:transition (removed in v4)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub felipearnold/filament-ai-skills --plugin filament-ai-skills18 skills in this plugin
/deep-code-reviewAnálise técnica profunda de código PHP/Laravel já implementado (não staged). 3 dimensões: segurança (OWASP), qualidade (SOLID, CC, DRY), padrões (PHP 8.4, Laravel 12, Filament v5). Foco em "como melhorar" — refactor, design, arquitetura. Gera relatório com scores e plano de ação. **Use pre-commit-review pra checklist rápido antes de commit.** Ativa: analisar implementação em profundidade, revisar feature pronta, audit de segurança, refatorar código existente, melhorar arquitetura, review profundo, análise completa, avaliar qualidade de feature, scoring de código./eloquent-query-checkVerifies and fixes direct static calls on Eloquent models, ensuring they always go through ::query() before methods like find, where, create, all, etc. Activate when: query(), Model::find, Model::create, Model::where, Model::all, eloquent query, static model call, model without query, fix model./error-detective