scaffold-controller
Installation
SKILL.md
Laravel Controller Pattern Skill
Use this skill when creating or refactoring Controllers.
Rules
1. Verification First
- Always create a Form Request class for validation. Never write validation logic (
$request->validate()) inside the controller. - Always use Resource Classes for API responses.
2. Method Structure
- Controllers should only coordinate flow: Input -> Service/Model -> Output.
- Complex business logic belongs in a Service Class (use
service-patternskill).