symfony:controller-cleanup
CommunityRefine Symfony controllers for production.
AuthorMakFly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the common issue of "fat controllers" in Symfony applications, which can lead to code that is difficult to maintain, test, and scale. It guides users in refactoring controllers to be leaner and more focused.
Core Features & Use Cases
- Service Extraction: Guides the process of moving business logic from controllers into dedicated services.
- DTO Usage: Promotes the use of Data Transfer Objects (DTOs) for cleaner request handling and validation.
- Attribute-Based Routing & Security: Encourages the use of Symfony's attribute system for common tasks like routing and authorization.
- Use Case: Refactor a complex controller action that handles order creation, including validation, business logic, and email sending, into a lean controller that delegates these responsibilities to services and uses DTOs for input.
Quick Start
Use the symfony:controller-cleanup skill to refactor the controller logic for creating a new user.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: symfony:controller-cleanup Download link: https://github.com/MakFly/superpowers-symfony/archive/main.zip#symfony-controller-cleanup 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.