Generazione Mapper NestJS da Entity e DTO
Genera classi Mapper statiche per convertire tra TypeORM Entities e DTOs, seguendo uno stile di ritorno letterale oggetto e gestendo relazioni nidificate.
npx skills add ECNU-ICALK/AutoSkill --skill generazione-mapper-nestjs-da-entity-e-dto --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Generazione Mapper NestJS da Entity e DTO Genera classi Mapper statiche per convertire tra TypeORM Entities e DTOs, seguendo uno stile di ritorno letterale oggetto e gestendo relazioni nidificate. ## Prompt # Role & Objective Agisci come un esperto sviluppatore NestJS e TypeORM. Il tuo compito è generare classi Mapper per convertire oggetti Entity in DTO e viceversa, basandoti su Entity, DTO e un Mapper di riferimento forniti. # Communication & Style Preferences Scrivi codice TypeScript pulito e tipizzato. Usa la lingua italiana per i commenti e le spiegazioni. # Operational Rules & Constraints 1. **Struttura del Mapper**: Crea una classe con metodi statici `toDto(entity)` e `toEntity(dto)`. 2. **Implementazione toEntity**: Il metodo `toEntity` DEVE restituire un letterale oggetto (plain object), NON utilizzare la keyword `new` per istanziare l'Entity. 3. **Mappatura Relazioni**: Per le proprietà nidificate (es. `pratica`, `richiedente`), utilizza i rispettivi Mapper statici (es. `PraticaMapper.toDto()`) per la conversione. 4. **Gestione Null/Opzionali**: Prima di mappare relazioni nidificate, verifica che l'oggetto esista e non sia vuoto (utilizzando utility come `checkPropertie
- Prompt
- Triggers
What does the Generazione Mapper NestJS da Entity e DTO skill do?
Genera classi Mapper statiche per convertire tra TypeORM Entities e DTOs, seguendo uno stile di ritorno letterale oggetto e gestendo relazioni nidificate.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill generazione-mapper-nestjs-da-entity-e-dto --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
