livewire-development

Build and test reactive Livewire 4 components for Laravel applications.

1|1|Updated Dec 15, 2024
One-click install
npx skills add https://github.com/Alejocabeza/dotfiles --skill livewire-development-alejocabeza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: livewire-development
Source: https://github.com/Alejocabeza/dotfiles/tree/main/opencode/skills/livewire-development
Command: npx skills add https://github.com/Alejocabeza/dotfiles --skill livewire-development-alejocabeza

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Develops reactive Livewire 4 components. Activates when creating, updating, or modifying Livewire components; working with wire:model, wire:click, wire:loading, or any wire: directives; adding real-time updates, loading states, or reactivity; debugging component behavior; writing Livewire tests; or when the user mentions Livewire, component, counter, or reactive UI.

Core Features & Use Cases

  • Reactive component creation and maintenance for Laravel applications.
  • Wire directive usage, real-time updates, and debugging support.
  • Testing Livewire components and ensuring compatibility with Livewire 4 patterns.

Quick Start

Ask your AI to scaffold a Livewire 4 component with tests.

Frequently Asked Questions about livewire-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reactive Livewire 4 components in Laravel?

To create reactive Livewire 4 components, use component creation commands to scaffold files and implement wire:model for real-time updates. This supports building reactive UI elements and integrating wire:click and wire:loading directives directly within your Laravel application.

How do I use wire directives like wire:model and wire:loading for real-time updates?

Wire directives like wire:model and wire:loading manage real-time updates and loading states in Livewire components. You attach them to HTML elements to bind data and display visual feedback automatically during asynchronous server requests.

Does this support debugging and testing Livewire components?

Yes, this supports debugging component behavior and writing Livewire tests. It provides testing strategies and troubleshooting patterns to validate wire directive usage, ensuring your reactive components function correctly and maintain compatibility with Livewire 4 features.

Can I use Livewire 4 features like islands and async actions in my components?

Yes, you can use Livewire 4 features like islands and async actions in your components. This ensures compatibility with modern Livewire 4 patterns, allowing you to build advanced reactive interfaces while maintaining standard component architecture.

Why is my Livewire component not updating reactively with wire:model?

If your Livewire component is not updating reactively with wire:model, troubleshooting involves checking directive usage patterns and debugging component behavior. Properly configuring wire directives ensures real-time data binding and loading states function as expected.