add-livewire

Scaffold Livewire components with class, view, and config registration.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-livewire
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-livewire
Source: https://github.com/bespoke-uk/bespoke-mono/tree/main/.claude/skills/add-livewire
Command: npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-livewire

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a ready-to-use Livewire component scaffold within a Bespoke package, saving time and ensuring consistency with established patterns.

Core Features & Use Cases

  • Component Class: Generates the PHP Livewire class under src/Livewire/{ComponentName}.php with a standard lifecycle and render method.
  • Blade View: Creates the corresponding Blade view at resources/views/livewire/{component-kebab}.blade.php.
  • Config Registration: Updates config/{package-name}.php to register the livewire component.

Quick Start

Provide the package path and the component name to generate the Livewire component scaffold.

Frequently Asked Questions about add-livewire

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

FAQPage Schema
How do I scaffold a Livewire component inside a Laravel package?

Scaffolding a Livewire component inside a Laravel package requires providing the package path and component name to generate the PHP class, Blade view, and config registration. This bundles the creation steps into a repeatable workflow for Bespoke packages.

What files are generated when creating a Livewire component for Bespoke packages?

Creating a Livewire component generates a PHP class at src/Livewire/{ComponentName}.php, a Blade view at resources/views/livewire/{component-kebab}.blade.php, and updates config/{package-name}.php to register the component.

Do I need to manually register Livewire components in a Laravel module package?

You do not need to manually register Livewire components in a Laravel module package. The scaffolding process automatically updates config/{package-name}.php to register the component while generating the class and view.

Can I use this scaffolding for any Laravel-based module package?

You can use this scaffolding for Laravel-based module packages where a component class, Blade view, and config registration are needed. It applies established naming conventions to ensure consistency within Bespoke packages.

What inputs are required to generate a Livewire component scaffold?

Generating a Livewire component scaffold requires two specific inputs: the target package path and the desired component name. These inputs ensure the PHP class, Blade view, and config registration are placed correctly.

Why does my Livewire component naming convention matter in a Bespoke package?

Livewire component naming conventions matter in a Bespoke package to ensure the PHP class and Blade view align correctly. The scaffolding enforces kebab-case for views and PascalCase for classes to maintain predictable rendering.