What problem does it solve?
This Skill helps you build interactive, server-driven WordPress interfaces with Livewire components using the Roots Acorn/Sage workflow, without writing custom JavaScript for UI reactivity.
Core Features & Use Cases
- Livewire component creation & conventions: Generates properly named Livewire PHP classes and Blade views in the correct locations for Sage/Acorn (e.g., PascalCase → kebab-case view tags), including guidance for use in templates.
- Real-time and state-safe UI patterns: Uses wire:model variants (including wire:model.live and debounced live bindings), computed properties, and lifecycle hooks like mount/hydrate to keep payloads small and behavior predictable.
- Sage integration & required layout directives: Ensures @livewireStyles and @livewireScripts are correctly placed in app layouts so Livewire endpoints and hydration work reliably.
- Optional advanced topics: Covers Alpine.js interop (including $wire.entangle), file uploads via WithFileUploads, and common error recovery like hydration and missing root element issues.
Quick Start
Generate a Livewire component named ContactForm by running this instruction to your agent: "Create a Livewire component ContactForm in my Sage theme using Acorn, and update my layout with @livewireStyles in the head and @livewireScripts before </body>."