Skip to content

Commit aba5e9d

Browse files
committed
boost
1 parent ace093b commit aba5e9d

28 files changed

Lines changed: 455 additions & 401 deletions

.github/instructions/laravel-boost.instructions.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ This application is a Laravel application and its main Laravel ecosystems packag
2424

2525
## Skills Activation
2626

27-
This project has domain-specific skills available. You MUST activate the relevant skill whenever you work in that domain—don't wait until you're stuck.
28-
29-
- `laravel-best-practices` — Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
30-
- `fluxui-development` — Use this skill for Flux UI development in Livewire applications only. Trigger when working with <flux:*> components, building or customizing Livewire component UIs, creating forms, modals, tables, or other interactive elements. Covers: flux: components (buttons, inputs, modals, forms, tables, date-pickers, kanban, badges, tooltips, etc.), component composition, Tailwind CSS styling, Heroicons/Lucide icon integration, validation patterns, responsive design, and theming. Do not use for non-Livewire frameworks or non-component styling.
31-
- `livewire-development` — Use for any task or question involving Livewire. Activate if user mentions Livewire, wire: directives, or Livewire-specific concepts like wire:model, wire:click, wire:sort, or islands, invoke this skill. Covers building new components, debugging reactivity issues, real-time form validation, drag-and-drop, loading states, migrating from Livewire 3 to 4, converting component formats (SFC/MFC/class-based), and performance optimization. Do not use for non-Livewire reactive UI (React, Vue, Alpine-only, Inertia.js) or standard Laravel forms without Livewire.
32-
- `tailwindcss-development` — Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3/v4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML/CSS component, CSS file audits, build tool configuration, and vanilla CSS.
27+
This project has domain-specific skills available in `**/skills/**`. You MUST activate the relevant skill whenever you work in that domain—don't wait until you're stuck.
3328

3429
## Conventions
3530

@@ -89,7 +84,6 @@ This project has domain-specific skills available. You MUST activate the relevan
8984
- Run Artisan commands directly via the command line (e.g., `php artisan route:list`). Use `php artisan list` to discover available commands and `php artisan [command] --help` to check parameters.
9085
- Inspect routes with `php artisan route:list`. Filter with: `--method=GET`, `--name=users`, `--path=api`, `--except-vendor`, `--only-vendor`.
9186
- Read configuration values using dot notation: `php artisan config:show app.name`, `php artisan config:show database.default`. Or read config files directly from the `config/` directory.
92-
- To check environment variables, read the `.env` file directly.
9387

9488
## Tinker
9589

@@ -108,6 +102,12 @@ This project has domain-specific skills available. You MUST activate the relevan
108102
- Prefer PHPDoc blocks over inline comments. Only add inline comments for exceptionally complex logic.
109103
- Use array shape type definitions in PHPDoc blocks.
110104

105+
=== deployments rules ===
106+
107+
# Deployment
108+
109+
- Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications.
110+
111111
=== tests rules ===
112112

113113
# Test Enforcement
@@ -145,10 +145,6 @@ This project has domain-specific skills available. You MUST activate the relevan
145145

146146
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.
147147

148-
## Deployment
149-
150-
- Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications.
151-
152148
=== livewire/core rules ===
153149

154150
# Livewire

.github/skills/fluxui-development/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Use Flux UI components when available. Fall back to standard Blade components wh
2727

2828
## Available Components (Free Edition)
2929

30-
Available: avatar, badge, brand, breadcrumbs, button, callout, checkbox, dropdown, field, heading, icon, input, modal, navbar, otp-input, profile, radio, select, separator, skeleton, switch, text, textarea, tooltip
30+
Available: avatar, badge, brand, breadcrumbs, button, callout, card, checkbox, dropdown, field, heading, icon, input, modal, navbar, otp-input, pagination, profile, progress, radio, select, separator, skeleton, switch, table, text, textarea, toast, tooltip
3131

3232
## Icons
3333

@@ -78,4 +78,4 @@ php artisan flux:icon crown grip-vertical github
7878
- Trying to use Pro-only components in the free edition
7979
- Not checking if a Flux component exists before creating custom implementations
8080
- Forgetting to use the `search-docs` tool for component-specific documentation
81-
- Not following existing project patterns for Flux usage
81+
- Not following existing project patterns for Flux usage

.github/skills/laravel-best-practices/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ Always use a sub-agent to read rule files and explore this skill's content.
187187

188188
1. Identify the file type and select relevant sections (e.g., migration → §16, controller → §1, §3, §5, §6, §10)
189189
2. Check sibling files for existing patterns — follow those first per Consistency First
190-
3. Verify API syntax with `search-docs` for the installed Laravel version
190+
3. Verify API syntax with `search-docs` for the installed Laravel version

.github/skills/laravel-best-practices/rules/advanced-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ public function scopeOrderByLastLogin($query): void
103103
->take(1)
104104
);
105105
}
106-
```
106+
```

.github/skills/laravel-best-practices/rules/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ class Customer extends Model
199199
return $this->belongsToMany(Role::class);
200200
}
201201
}
202-
```
202+
```

.github/skills/laravel-best-practices/rules/blade-views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ return view('dashboard', compact('users'))
3333

3434
## Use `@aware` for Deeply Nested Component Props
3535

36-
Avoids re-passing parent props through every level of nested components.
36+
Avoids re-passing parent props through every level of nested components.

.github/skills/laravel-best-practices/rules/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ If Redis goes down, the app falls back to a secondary store automatically.
6767

6868
```php
6969
'failover' => ['driver' => 'failover', 'stores' => ['redis', 'database']],
70-
```
70+
```

.github/skills/laravel-best-practices/rules/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ More declarative than overriding `newCollection()`.
4141
```php
4242
#[CollectedBy(UserCollection::class)]
4343
class User extends Model {}
44-
```
44+
```

.github/skills/laravel-best-practices/rules/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ If the application already uses language files for localization, use `__()` for
7070
```php
7171
// Only when lang files already exist in the project
7272
return back()->with('message', __('app.article_added'));
73-
```
73+
```

.github/skills/laravel-best-practices/rules/db-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ return view('users.index', compact('users'));
189189
@foreach ($users as $user)
190190
{{ $user->profile->name }}
191191
@endforeach
192-
```
192+
```

0 commit comments

Comments
 (0)