Генерация NestJS-модуля с базой данных

engineering

create-module is a Claude Code skill that scaffolds a complete NestJS module for the MX Space project from a single module name argument. It creates seven files under `apps/core/src/modules/<module-name>/`: module definition, HTTP controller, service, Drizzle ORM repository extending BaseRepository, Zod validation schemas for API DTOs, TypeScript row and input types, and an optional enums file. A PostgreSQL table definition is also added to `apps/core/src/database/schema/` using column helpers such as `pkText()` for Snowflake IDs, `createdAt()`, `updatedAt()`, and `refText()`, with an automatic re-export via `index.ts`. The skill is aimed at developers adding new business entities, API endpoints, or domain modules to a NestJS monorepo backed by PostgreSQL and Drizzle ORM.