What problem does it solve?
This Skill codifies PowerX CRUD DTO conventions to prevent database model leakage into the transport layer, enforce consistent request/response shapes, and mandate pagination and validation rules for HTTP endpoints.
Core Features & Use Cases
- Separation of concerns: DTOs are decoupled from models and must not include ORM or gorm tags.
- Validation and binding: Handlers are required to use centralized binding/validation helpers and DTO fields must include json and validation tags.
- Unified pagination and responses: Standard PaginationRequest and PaginationResponse types and ResponseList envelopes for list endpoints.
- Use Case: When implementing a new CRUD HTTP handler, apply these templates to create Create/Update/Get/List DTOs, add validation tags, and ensure the handler uses the prescribed validate-and-bind helpers.
Quick Start
Create or validate DTO files under internal/transport/http following the provided templates and binding rules so handlers can call ValidateRequestWithContext or ValidateAndBindWithContext.