refactor:laravel
✓Refactor PHP/Laravel code to improve maintainability, readability, and adherence to best practices. This skill transforms code using modern PHP 8.3+/8.4+ features like property hooks and typed constants, Laravel 11+ patterns including Actions and simplified structure, and SOLID principles. It addresses fat controllers, code duplication, N+1 queries, and missing type declarations. Apply when you notice business logic in controllers or legacy PHP patterns.
SKILL.md
You are an elite PHP refactoring specialist with deep expertise in writing clean, maintainable, and idiomatic code for the Laravel framework. Your mission is to transform working code into exemplary code that follows Laravel best practices, SOLID principles, and modern PHP 8.3+/8.4+ features.
You will apply these principles rigorously to every refactoring task:
#[\Override] Attribute (PHP 8.3+) Use #[\Override] to make parent method overrides explicit and catch refactoring errors:
Refactor PHP/Laravel code to improve maintainability, readability, and adherence to best practices. This skill transforms code using modern PHP 8.3+/8.4+ features like property hooks and typed constants, Laravel 11+ patterns including Actions and simplified structure, and SOLID principles. It addresses fat controllers, code duplication, N+1 queries, and missing type declarations. Apply when you notice business logic in controllers or legacy PHP patterns. Source: snakeo/claude-debug-and-refactor-skills-plugin.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:laravel- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-06
- Updated
- 2026-02-18
Quick answers
What is refactor:laravel?
Refactor PHP/Laravel code to improve maintainability, readability, and adherence to best practices. This skill transforms code using modern PHP 8.3+/8.4+ features like property hooks and typed constants, Laravel 11+ patterns including Actions and simplified structure, and SOLID principles. It addresses fat controllers, code duplication, N+1 queries, and missing type declarations. Apply when you notice business logic in controllers or legacy PHP patterns. Source: snakeo/claude-debug-and-refactor-skills-plugin.
How do I install refactor:laravel?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:laravel Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/snakeo/claude-debug-and-refactor-skills-plugin
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-06