create-query
Installation
SKILL.md
Create Query
This skill generates a Query class for handling read logic, keeping Controllers thin and separating "Writes" (Actions) from "Reads" (Queries).
Instructions
-
Identify Parameters:
- Module: (e.g.,
Academic,Identity). - Entity/Purpose: What data is being retrieved? (e.g.,
Student,MonthlyRevenue). - Type:
List,Get,Find,Report. - Class Name:
{Verb}{Entity}[Context]Query(e.g.,ListStudentsQuery,GetStudentGpaQuery).
- Module: (e.g.,
-
Determine Path:
app/Modules/{Module}/Queries/{ClassName}.php