What problem does it solve?
This Skill removes the manual, error-prone work of creating TypeORM entities and corresponding Create/Update DTOs for the Lety 2.0 Backend, ensuring consistent column naming, validation, Swagger docs, and serialization methods that follow NestJS and TypeORM best practices.
Core Features & Use Cases
- Guided specification: Prompts for domain name, fields, relations, service scope, and indices before generation to avoid guessing.
- Production-ready entity: Generates an Entity extending BaseEntity with explicit snake_case column names, indices, relations, sensitive-field handling, and a required toResponseDto() method.
- Validated DTOs: Produces a Create DTO with appropriate class-validator and Swagger decorators and an Update DTO implemented via PartialType.
- Best-practice checks: Flags issues such as missing explicit column names, exposed sensitive fields, or invalid validator combinations and recommends fixes.
- Use case: Quickly scaffold a new domain model with relations and validation for a NestJS + TypeORM (Postgres) service while enforcing team conventions.
Quick Start
Generate a TypeORM entity and matching Create and Update DTOs for the provided domain name and field specification following the Lety 2.0 Backend best practices.