nest-module

Scaffold NestJS modules with entities, DTOs, controllers, services, and tests.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/lety-ai/lety-skill-hub --skill nest-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nest-module
Source: https://github.com/lety-ai/lety-skill-hub/tree/main/plugins/nest-module/skills/nest-module
Command: npx skills add https://github.com/lety-ai/lety-skill-hub --skill nest-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the repetitive, error-prone work of creating boilerplate backend modules in a NestJS microservices monorepo by generating all required files and enforcing project conventions so teams can deliver features faster and with fewer integration issues.

Core Features & Use Cases

  • Complete scaffolding: Generates entity, Create/Update DTOs, module, gRPC controller, service, unit test, and mock factory following Lety 2.0 conventions.
  • Production-ready patterns: Enforces BaseEntity inheritance, snake_case column names, toResponseDto serialization, RequestContextService usage, BaseRpcException with gRPC status codes, and optional RabbitMQ handlers with ack/nack.
  • Use case: Rapidly add a new domain (e.g., Conversation) with relations, validations, and tests that integrate into apps/api and the shared libs folder.

Quick Start

Use the nest-module skill to scaffold a Conversation module with fields title:string, content:jsonb, author:ManyToOne(User), target service apps/api, and enable RequestContextService.

Frequently Asked Questions about nest-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a NestJS module with TypeORM and gRPC in a monorepo?

To scaffold a NestJS module in a monorepo, this tool generates entities, DTOs, controllers, services, and unit tests. It enforces TypeORM 0.3 conventions, gRPC controllers, and RabbitMQ handlers for production-ready microservices.

How do I generate a NestJS entity with snake_case columns and BaseEntity inheritance?

Generating a NestJS entity with BaseEntity inheritance and snake_case columns is handled automatically during scaffolding. The tool enforces these conventions to ensure consistency across your TypeORM 0.3 microservices.

Does this module generator support RabbitMQ ack and nack handlers?

Yes, this NestJS module generator supports RabbitMQ by creating safe ack and nack handlers. It enforces these production-ready patterns to ensure reliable message processing within your microservices.

How do I add gRPC error handling with BaseRpcException in NestJS?

Adding gRPC error handling in NestJS is automated by injecting BaseRpcException with gRPC status codes. The scaffolding process integrates this directly into your generated controllers for robust microservice communication.

Can I generate unit tests and mocks for a NestJS microservice module?

Yes, you can generate unit tests and mock factories for NestJS microservice modules. The scaffolding process creates these alongside your services to ensure your codebase remains stable and fully tested.