nestjs-module-generator

Generate NestJS module skeletons with controllers, services, repositories, DTOs, entities, and interfaces.

Updated Jul 13, 2023
One-click install
npx skills add https://github.com/changgenglu/changgenglu-blog --skill nestjs-module-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-module-generator
Source: https://github.com/changgenglu/changgenglu-blog/tree/main/prompt_engineering/gemini/skills/nestjs-module-generator
Command: npx skills add https://github.com/changgenglu/changgenglu-blog --skill nestjs-module-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

Automatically scaffolds NestJS modules to enforce a clean, scalable project structure.

Core Features & Use Cases

  • Generates a complete module skeleton including module, controller, service, repository, dto, entities, and interfaces.
  • Provides a CLI-driven workflow to collect requirements and produce a standardized file layout.
  • Facilitates rapid feature onboarding by delivering ready-to-adapt code for new modules.

Quick Start

Run the NestJS module generator with a kebab-case module name to produce a full module scaffold.

Frequently Asked Questions about nestjs-module-generator

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

FAQPage Schema
How do I scaffold a new NestJS module with a scalable architecture?

NestJS module scaffolding generates a complete skeleton including module, controller, service, repository, DTOs, entities, and interfaces from a kebab-case module name, enforcing a clean and scalable project structure.

What files are included when generating a NestJS module skeleton?

A generated NestJS module skeleton includes files for the module, controller, service, repository, DTOs, entities, and interfaces, delivering ready-to-adapt code for rapid feature onboarding.

Does the NestJS module generator enforce specific naming conventions?

Yes, the NestJS module generator enforces kebab-case for module names and PascalCase for class names to maintain consistent project structure and clean architecture.

Can I use this scaffolding tool for TypeORM integration in NestJS?

Yes, the generated NestJS module skeleton includes repository and entities layers designed for TypeORM integration, providing a standardized file layout ready for database operations.

What do I need to do after generating a NestJS module scaffold?

After generating a NestJS module scaffold, you must integrate it into your app and set up required database migrations, as the generator explicitly signals these next steps upon completion.