laravel-refactor
CommunityRefactor Laravel code, boost maintainability.
Software Engineering#code quality#architecture#performance#refactoring#maintainability#technical debt#laravel
Authorcloudstudio
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: laravel-refactor Download link: https://github.com/cloudstudio/claude-squad/archive/main.zip#laravel-refactor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.