From superpowers-laravel
Guides specifying Laravel constraints for performance (Redis caching, indexes), security (policies, rate limiting), testing (feature/unit tests), and architecture (repositories, services, jobs) to align AI-generated code with standards.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelThis skill uses the workspace's default tool permissions.
Constraints guide the AI toward solutions that fit your project. Without them, you get generic code that may not meet your requirements.
Provides production-grade Laravel solutions with clean architecture, security best practices, performance optimizations, and idiomatic patterns for Laravel 10/11+. Use for features, refactoring, APIs, auth, services, DB interactions, and code reviews.
Provides Laravel expertise including Eloquent ORM optimization, service container patterns, queues, events, Sanctum/Passport auth, and Pest testing. Activates on /godmode:laravel or Laravel/eloquent/artisan/blade mentions.
Guides interactive brainstorming for Laravel features and refactors, clarifying goals, domain, data models, APIs, side-effects, testing, and Sail environments.
Share bugs, ideas, or general feedback.
Constraints guide the AI toward solutions that fit your project. Without them, you get generic code that may not meet your requirements.
"Make it fast"
"Optimize product search:
name, category_id, published_at"Query orders with performance constraints:
select() to load only needed columnsitems, customer, shipping_address in one query(user_id, created_at, status)chunk() for batch processing > 1000 records"Make it secure"
"Implement user profile update with security requirements:
ProfilePolicy@updateProfileUpdateRequest$fillable""Secure the payment API:
auth:sanctum middlewareprocess-payments ability"Add tests"
"Test the order processing feature:
"Testing requirements for authentication:
RefreshDatabase trait"Implement payment processing following our architecture:
PaymentRepository for data accessPaymentService for business logicProcessPaymentJobPaymentProcessed, PaymentFailed"Implement user management with these constraints:
"Add image processing feature:
intervention/image ^3.0 (Laravel 11.x compatible)spatie/laravel-medialibrary ^11.0"Choose a package for PDF generation:
barryvdh/laravel-dompdf or spatie/laravel-pdf"- Response time: < X ms
- Throughput: Y requests/second
- Cache strategy: Redis, TTL Z minutes
- Database: indexes on [columns], eager load [relationships]
- Pagination: max X per page
- Authentication: [Sanctum/Passport/Session]
- Authorization: [Policy/Gate]
- Validation: [Form Request class]
- Rate limiting: X requests per Y minutes
- Data protection: [encryption/hashing requirements]
- Audit logging: [what to log]
- Coverage: X% on business logic
- Test types: [feature/unit/integration]
- Mocking: [external services to mock]
- Factories: [models to factory]
- Performance: tests complete in < X seconds
- Edge cases: [specific scenarios to test]
Specify constraints clearly:
Clear constraints = code that fits your project.