Blade components and layouts

From jpcaparas/superpowers-laravel · View interactive version

Blade components and layouts is an AI agent skill from the GitHub repository jpcaparas/superpowers-laravel. Compose UIs with Blade components, slots, and layouts; keep templates pure and testable

How to use this skill

Skill file

Blade Components and Layouts

Encapsulate markup and behavior with components; prefer slots over includes.

Commands

sail artisan make:component Alert              # or: php artisan make:component Alert

// Use component
<x-alert type="warning" :message="$msg" class="mb-4" />

// Layouts + stacks
@extends('layouts.app')
@push('scripts')
    <script>/* page script */</script>
@endpush

Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.