Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →

iserter/laravel-claude-agents

15 skills2.5k installs630 starsGitHub

Install

npx skills add https://github.com/iserter/laravel-claude-agents

Skills in this repo

1Eloquent Best PracticesThe eloquent-best-practices skill best practices for Laravel Eloquent ORM including query optimization relationship management and avoiding common pitfalls like N 1 queries Eloquent Best Practices Query Optimization Always Eager Load Relationships php N 1 Query Problem posts Post all foreach posts as post echo post user name N additional queries Eager Loading posts Post with user get foreach posts as post echo post user name No additional queries Select Only Needed Columns php Fetches all columns users User all Only needed columns users User select id name email get With relationships posts Post with user id name select id title user_id get Use Query Scopes php Define reusable query logic class Post extends Model public function scopePublished query return query where status published whereNotNull published_at public function scopePopular query threshold 100 return query where views threshold Usage posts Post published popular get Relationship Best Practices Define Return Types php use Illuminate Database Eloquent Relations BelongsTo use Illuminate Database Eloquent Relations HasMany class Post extends Model public function user BelongsTo return1.2kinstalls2Laravel Tddlaravel-tdd is an agent skill from iserter/laravel-claude-agents that adapts classic test-driven development to Laravel applications using Pest PHP and Laravel's built-in testing helpers. It guides the red-green-refactor loop: write one minimal failing feature or unit test, run php artisan test to confirm failure, implement the smallest Laravel code to pass, then refactor into services, policies, and query scopes. Coverage spans controllers, Eloquent models, form validation, authorization policies, queue jobs, Artisan commands, middleware, database migrations, and HTTP API endpoints. The skill mandates RefreshDatabase, model factories, actingAs for auth tests, and a verification checklist covering migration tests, relationship assertions, validation rules, authorization, and database state. Developers reach for laravel-tdd when adding Laravel features or bugfixes and want tests written before production code—not for throwaway prototypes or cosmetic view-only edits.346installs3Laravel Blade Component PatternsGuides building reusable Laravel Blade UI components, both class-based and anonymous, with slots and attribute bags. A developer uses it when structuring server-rendered UI in a Laravel app.90installs4Laravel BrainstormingTurns Laravel feature ideas into designs via collaborative dialogue, checking project context and proposing Laravel-idiomatic approaches with trade-offs. A developer uses it before writing code or an implementation plan.78installs5Laravel Validation PatternsGuides Laravel input validation via Form Request classes, custom rules, nested array rules, and custom messages. A developer uses it when validating and authorizing request input in a Laravel app.78installs6Laravel Queue PatternsGuides Laravel background jobs with structured queue classes, batching, chaining, retries, and failed() handling. A developer uses it when offloading work to queues in a Laravel app.76installs7Laravel Systematic DebuggingEnforces a root-cause-first debugging process for Laravel test failures, bugs, and performance problems, forbidding fixes before investigation. A developer uses it for any Laravel issue, especially under time pressure.75installs8Laravel Api Resource PatternsGuides building Laravel API Resources for JSON response transformation, collections, conditional attributes, and eager-loaded relationships. A developer uses it when shaping API output layers in a Laravel app.72installs9Laravel Authorization PatternsCovers Laravel access control via Gates for general abilities and Policies for model-based authorization, plus middleware and Blade directives. A developer uses it when enforcing permissions in a Laravel app.71installs10Laravel Caching StrategiesCovers Laravel caching with remember/rememberForever/flexible patterns, tags for grouped invalidation, and atomic locks. A developer uses it when reducing database load or adding cache layers in a Laravel app.70installs11Laravel Event Driven ArchitectureGuides decoupled Laravel architecture using events, listeners, queued listeners, subscribers, and model events. A developer uses it when separating side effects from core logic in a Laravel app.67installs12Laravel Middleware PatternsGuides writing Laravel middleware with before, after, and terminable patterns, plus groups and parameters. A developer uses it when adding request filtering or cross-cutting logic in a Laravel app.67installs13Laravel Notification PatternsCovers Laravel notifications for multi-channel delivery via mail, database, and broadcast, including queued sending and on-demand recipients. A developer uses it when notifying users across channels in a Laravel app.66installs14Laravel Task SchedulingCovers Laravel scheduling in routes/console.php for commands, jobs, closures, and shell tasks with frequency and overlap controls. A developer uses it when running recurring background work in a Laravel app.66installs15Laravel Feature FlagsCovers Laravel Pennant feature flags: defining closure-based and scoped features, rich values for A/B testing, and lottery-based gradual rollouts. A developer uses it when gating features or rolling out changes incrementally.64installs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.

iserter/laravel-claude-agents · 15 skills · Skillselion