resources/boost/skills/design/SKILL.md
Component-first design system for Blade views. Use when creating UI components, designing responsive layouts, or implementing accessible interfaces.
npx skillsauth add codebar-ag/coding-guidelines designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/styleguide first.config/styleguide.php./styleguide before creating a new component.$attributes and merge defaults with $attributes->merge([...]).@props defaults for composable APIs.min-h-[44px] and often min-w-[44px]).focus-visible) and disabled/hover states.aria-label or sr-only text for icon-only controls.config/styleguide.php.{{-- Anonymous component with $attributes and @props --}}
@props([
'variant' => 'primary',
'size' => 'md',
])
<button
{{ $attributes->merge(['class' => 'min-h-[44px] rounded-lg px-4 transition ease-in-out duration-150 focus-visible:ring-2 focus-visible:ring-accent-500']) }}
>
{{ $slot }}
</button>
{{-- Bad -> Good: raw button replaced by design-system component --}}
{{-- Bad: <button class="px-4 py-2 bg-blue-600">Save</button> --}}
<x-button variant="primary">Save</x-button>
{{-- Composable layout with named slots --}}
<x-card>
<x-slot:header>
<x-heading level="2">{{ $title }}</x-heading>
</x-slot:header>
<x-slot:content>
{{ $slot }}
</x-slot:content>
</x-card>
{{-- Visual conventions: shadows, radius, color system --}}
<div class="rounded-lg shadow-sm p-6 transition ease-in-out duration-150">
<span class="rounded-full bg-green-100 text-green-800 px-3 py-1">Active</span>
</div>
{{-- Icon-only button with ARIA label for screen readers --}}
<button type="button" aria-label="Close dialog" class="min-h-[44px] min-w-[44px] rounded-lg focus-visible:ring-2">
<x-icon name="x" />
</button>
{{-- Mobile table-to-card fallback mini pattern --}}
<table class="hidden md:table w-full">...</table>
<div class="grid gap-3 md:hidden">
<x-card>{{-- same row content as stacked key/value pairs --}}</x-card>
</div>
{{-- Prefer token classes instead of arbitrary values --}}
{{-- Good: bg-accent-600 text-on-accent rounded-md --}}
{{-- Avoid: bg-[#1248ff] text-white rounded-[7px] unless token is unavailable --}}
/styleguide component options were checked first.config/styleguide.php.config/styleguide.phparia-label or sr-only alternative textfocus-visible rings on interactive elements<h1>-<h6> instead of <x-heading>resources/boost/skills/blade/SKILL.md (required for Blade syntax and composition)resources/boost/skills/tailwind/SKILL.md (supplementary for utility class conventions)testing
Translation and localization conventions for Laravel. Use when adding user-facing strings, creating translation files, or working with lang/ directory.
tools
Reusable behaviour shared across multiple unrelated classes. Traits provide shared Eloquent scopes, accessors, lifecycle hooks, and small stateless helper methods.
development
Tailwind CSS v4 styling conventions. Use when working with CSS, Tailwind utilities, or customizing the theme in Laravel projects.
development
Orchestration classes that coordinate multiple Actions, external APIs, or domain operations into a cohesive workflow. Services own transaction boundaries and third-party API integrations.