scaffold-nestjs-module

Scaffolds NestJS feature modules with Prisma, Zod DTOs, RBAC, and barrel exports.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/lethuan127/agent-pro-max --skill scaffold-nestjs-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-nestjs-module
Source: https://github.com/lethuan127/agent-pro-max/tree/main/skills/scaffold-nestjs-module
Command: npx skills add https://github.com/lethuan127/agent-pro-max --skill scaffold-nestjs-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds a complete NestJS feature module in apps/api with controller, service, module, Zod DTOs, Prisma model, and barrel export, saving setup time and ensuring consistency across projects.

Core Features & Use Cases

  • Bootstrap a full feature module with controller, service, module, Zod DTOs, Prisma model, and barrel export.
  • Create Prisma models and update related Workspace relations following project conventions, then migrate.
  • Generate Zod schemas in packages/types for DTOs and models, with appropriate request validation.
  • Create module files (module, service, controller) and a barrel index, then register the module in apps/api/src/app.module.ts.
  • Provide RBAC scaffolding and an API reference pattern to align with existing security guards and decorators.
  • Ensure standard response format and error handling patterns are in place.

Quick Start

Scaffold a complete NestJS feature module in apps/api by adding Prisma models, Zod schemas, module files, and the RBAC configuration, then register the module in app.module.ts.

Frequently Asked Questions about scaffold-nestjs-module

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

FAQPage Schema
How do I scaffold a NestJS module with Prisma and Zod?

To scaffold a NestJS module with Prisma and Zod, this tool generates the controller, service, module files, Zod DTOs, and Prisma model, then registers the module in app.module.ts automatically.

What is the best way to generate NestJS boilerplate with RBAC configuration?

Generating NestJS boilerplate with RBAC configuration is streamlined by scaffolding module files alongside API reference patterns that align with existing security guards and decorators.

Can I use this to add a Prisma model and Zod schemas to an existing NestJS API?

Yes, you can use this to add a Prisma model and Zod schemas to an existing NestJS API, as it creates Prisma models, updates Workspace relations, and generates Zod schemas in packages/types.

How do I ensure consistent project structure when creating new API resources in NestJS?

Ensuring consistent project structure when creating new API resources in NestJS involves scaffolding standard module files, barrel exports, and standard response formats to maintain codebase uniformity.

Does scaffolding a NestJS feature module handle database migrations and module wiring?

Scaffolding a NestJS feature module handles database migrations and module wiring by creating Prisma models, migrating the schema, and registering the new feature module in the central app.module.ts.