/laravel:spatie-laravel-phpfrom laravel
Apply Spatie's Laravel and PHP coding standards for any task that creates, edits, reviews, refactors, or formats Laravel/PHP code or Blade templates; use for controllers, Eloquent models, routes, config, validation, migrations, tests, and related files to align with Laravel conventions and PSR-12.
Ships in laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply Spatie's Laravel and PHP guidelines to keep code style consistent and Laravel-native.
.php or .blade.php files, routes, controllers, models, config, validation, migrations, or tests..php, .blade.php, Laravel conventions (routes, controllers, config, validation, migrations, tests).references/spatie-laravel-php-guidelines.md and focus on the relevant sections.void).?string.use statements.-> on a new line; never mix single-line and multi-line chaining.else when possible.Do:
[Controller::class, 'method'].PostsController).config() helper and avoid env() outside config files.config/services.php, not new files.__() for translations instead of @lang.Don't:
final or readonly by default.else when early returns work.// Happy path last with early returns
if (! $user) {
return null;
}
if (! $user->isActive()) {
return null;
}
// Process active user...
// Short ternary
$name = $isFoo ? 'foo' : 'bar';
// Constructor property promotion
class MyClass {
public function __construct(
protected string $firstArgument,
protected string $secondArgument,
) {}
}
@if($condition)
Something
@endif
references/spatie-laravel-php-guidelines.mdWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fcakiroglu16/marketplace --plugin laravel5 skills in this plugin
/laravel-permission-developmentBuild and work with Spatie Laravel Permission features, including roles, permissions, middleware, policies, teams, and Blade directives./laravel-query-builderBuild filtered, sorted, and included API endpoints using spatie/laravel-query-builder. Activates when working with QueryBuilder, AllowedFilter, AllowedSort, AllowedInclude, or when the user mentions query parameters, API filtering, sorting, includes, or spatie/laravel-query-builder./medialibrary-developmentBuild and work with spatie/laravel-medialibrary features including associating files with Eloquent models, defining media collections and conversions, generating responsive images, and retrieving media URLs and paths./spatie-securityApply Spatie's security guidelines when configuring applications, databases, servers, credentials, or signed Git commits, or when reviewing code for security concerns; use for SSL setup, CSRF protection, password hashing, database permissions, and server hardening.