lc:livewire-optimize

Analyze Livewire and Volt components for performance anti-patterns in PHP and Blade templates.

12|2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/edulazaro/laraclaude --skill lc-livewire-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lc:livewire-optimize
Source: https://github.com/edulazaro/laraclaude/tree/main/skills/livewire-optimize
Command: npx skills add https://github.com/edulazaro/laraclaude --skill lc-livewire-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses performance degradation in Laravel Livewire applications caused by inefficient rendering, excessive server requests, and bloated component state.

Core Features & Use Cases

  • Performance Auditing: Detects expensive database queries running inside render methods and identifies excessive public property serialization.
  • Automated Refactoring: Safely applies performance improvements like adding Computed attributes, lazy loading for child components, and debouncing live bindings.
  • Use Case: Use this to scan a complex dashboard component to identify why it triggers multiple database queries on every keystroke and automatically apply fixes to reduce server load.

Quick Start

Run the livewire-optimize skill to scan all components in the project and report performance issues.

Frequently Asked Questions about lc:livewire-optimize

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

FAQPage Schema
How do I optimize Laravel Livewire components to reduce server load?

To optimize Livewire components, scan PHP class structures and Blade templates to detect render-time queries, excessive public properties, and inefficient polling, then apply architectural refactoring to reduce server requests and bloated component state.

Why does my Livewire dashboard trigger multiple database queries on every keystroke?

Your Livewire dashboard triggers multiple database queries on every keystroke due to render-time queries inside the component lifecycle, which can be detected through performance auditing and resolved by adding computed attributes and debouncing live bindings.

What is the best way to fix excessive public property serialization in Livewire?

The best way to fix excessive public property serialization in Livewire is to perform static analysis on your component lifecycle and data binding, identifying bloated state and safely applying architectural optimizations like lazy loading child components.

Can I use automated refactoring to resolve Volt component performance bottlenecks?

Yes, you can use automated refactoring to resolve Volt component performance bottlenecks by scanning the Livewire view directory to identify anti-patterns and safely apply improvements like debouncing live bindings and adding computed attributes.

How do I stop inefficient polling from degrading Laravel Livewire performance?

To stop inefficient polling from degrading Laravel Livewire performance, conduct a performance audit across your view directory to detect polling anti-patterns and apply targeted refactoring to optimize the component lifecycle and data binding.