nestjs-module-scaffold

Generate NestJS module scaffolds with entity, service, controller, and registration.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/apireaisecurity/apire-ai-security-platform --skill nestjs-module-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-module-scaffold
Source: https://github.com/apireaisecurity/apire-ai-security-platform/tree/main/apire-redteam-kit/.agent/skills/nestjs-module-scaffold
Command: npx skills add https://github.com/apireaisecurity/apire-ai-security-platform --skill nestjs-module-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rapidly generate NestJS module skeletons that follow the project's entity → service → controller → module → registration pattern, ensuring consistency and reducing boilerplate.

Core Features & Use Cases

  • Project-convention enforcement: Generates entity, service, controller, and module files that align with the project's architecture and conventions.
  • Module registration & imports: Provides guidance and structure to register new modules and manage cross-module imports.
  • Best-practice patterns: Ensures UUID primary keys, TypeORM with PostgreSQL, and consistent logging and exports.

Quick Start

Run the nestjs-module-scaffold to generate a new module scaffold in the backend following the project's conventions.

Frequently Asked Questions about nestjs-module-scaffold

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

FAQPage Schema
How do I scaffold a NestJS module with TypeORM and PostgreSQL?

The generator automates creating entity, service, controller, and module files for NestJS modules using TypeORM and PostgreSQL. It enforces UUID primary keys to ensure project consistency and reduce boilerplate.

What is the best way to generate boilerplate for a new NestJS feature like notifications or audit logs?

The best way to generate boilerplate for NestJS features like notifications or audit logs is using a module scaffold. It applies the project's entity to module pattern, automatically registering new components to maintain architectural consistency across feature development.

Does the scaffold enforce specific routing conventions and authentication patterns for NestJS controllers?

Yes, the scaffold enforces specific routing and authentication conventions for NestJS controllers. It omits the api/ prefix in routes and implements header-based x-user-id authentication, ensuring controllers align with project standards out of the box.

How do I ensure my new NestJS module uses UUID primary keys and named exports?

You ensure new NestJS modules use UUID primary keys and named exports by generating them with the scaffold. It automatically applies these project conventions during file creation, enforcing consistent database schema design and module import structures.