What problem does it solve?
This Skill improves the quality, architecture, and maintainability of Laravel code without altering its behavior, reducing technical debt and making it easier to understand and extend. It cleans up your codebase, making it a joy to work with and reducing future development costs.
Core Features & Use Cases
- Architecture Smell Detection: Identifies and refactors fat controllers, Livewire components, and misplaced database queries.
- Code Quality Improvement: Addresses magic strings, long methods, deep nesting, and duplicate code.
- Security & Performance Refactoring: Fixes mass assignment vulnerabilities, raw SQL risks, N+1 queries, and suggests indexing.
- Use Case: You've inherited a legacy Laravel project with complex, tightly coupled logic. Use this Skill to systematically refactor controllers into services, introduce enums for magic strings, and improve query performance, making the codebase more robust.
Quick Start
Refactor the UserController to extract business logic into a dedicated service, ensuring all tests still pass.