From superpowers-laravel
Reduces Laravel controller bloat by moving auth/validation to Form Requests, extracting logic to Actions/Services with DTOs, and using resource/single-action controllers. Useful for refactoring bloated controllers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-laravel:controller-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Keep controllers small and focused on orchestration.
Keep controllers small and focused on orchestration.
StoreUserRequest) and use authorize() + rules()php artisan make:request StoreUserRequest
final class CreateUserAction {
public function __invoke(CreateUserDTO $dto): User { /* ... */ }
}
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelPromotes Laravel route best practices: map requests to controllers only, avoid inline business logic, validation, or DB operations. Includes anti-patterns and refactoring examples for clean routes.
Provides production-grade, idiomatic Laravel solutions with clean architecture, security best practices, performance optimizations, and modern standards for Laravel 10/11+. Use for features, refactoring, APIs, auth, services, DB interactions, and code reviews.
Provides production-grade Laravel architecture patterns for scalable apps: controllers, services, Eloquent, queues, events, caching, and API resources.