create-request
Installation
SKILL.md
Create Request
When To Use
Use this skill for request validation, authorization, input normalization, and reusable HTTP boundary rules.
Inputs Needed
- Request purpose, actor, validated fields, authorization rule, failure behavior, and tests.
Workflow
- Inspect nearby request classes and naming conventions.
- Create the request with Artisan.
- Put authorization in
authorize(). - Put validation in
rules()and custom messages inmessages(). - Use
prepareForValidation()only for input normalization. - Prefer reusable DTOs or Actions after validation when the same data is needed elsewhere.
- Add tests for authorize allow/deny and validation failures.