$ recombobulate _
home / tips / generate-livewire-components-from-a-feature-description
0

Generate Livewire Components from a Feature Description

bagwaa @bagwaa · Mar 26, 2026 · Workflows
generate-livewire-components-from-a-feature-description

Livewire components have a predictable structure, which makes them a great fit for Claude to generate end-to-end from a description.

claude "Create a Livewire v3 component called InvoiceTable that lists invoices with live search, sortable columns, and pagination. Invoices belong to the authenticated user."

Claude will produce both the PHP class and the Blade view, with #[Url] attributes for browser-history-friendly filtering, and properly typed properties:

class InvoiceTable extends Component
{
    #[Url]
    public string $search = '';

    #[Url]
    public string $sortBy = 'created_at';

    public function invoices(): LengthAwarePaginator
    {
        return auth()->user()->invoices()
            ->when($this->search, fn($q) => $q->where('number', 'like', "%{$this->search}%"))
            ->orderBy($this->sortBy)
            ->paginate(15);
    }
}

For form components, ask explicitly for validation rules and success feedback:

claude "Create a Livewire v3 form component for updating account settings. Include real-time validation and a success toast after saving."

From description to deployable component — skip the scaffolding ceremony.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Scan Pending Changes for Security Issues with /security-review

The /security-review command scans your uncommitted changes for injection vectors, auth gaps, hardcoded secrets, and other common vulnerabilities.

bagwaa @bagwaa · 1 hour ago
0
Run Setup Scripts on Every Session with the SessionStart Hook

The SessionStart hook fires when any session begins or resumes, making it ideal for loading environment variables and running one-time setup scripts.

bagwaa @bagwaa · 1 hour ago
0
Write Property-Based Tests with fast-check and Claude

Ask Claude to write property-based tests for your functions using fast-check — it identifies the mathematical invariants in your code and generates tests that cover inputs you'd never enumerate by hand.

bagwaa @bagwaa · 2 hours ago