nestjs

Enforce NestJS backend standards with thin controllers, rich services, and DTO validation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/reeinharddd/impulsa-monorepo --skill nestjs-reeinharddd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/reeinharddd/impulsa-monorepo/tree/main/.github/skills/nestjs
Command: npx skills add https://github.com/reeinharddd/impulsa-monorepo --skill nestjs-reeinharddd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures adherence to the NestJS architectural patterns, promoting maintainable and scalable backend code by defining clear responsibilities for controllers, services, and DTOs.

Core Features & Use Cases

  • Architectural Enforcement: Guides developers on structuring NestJS applications according to best practices.
  • Code Quality: Promotes the use of DTOs for validation and separates business logic into services.
  • Use Case: When developing new API endpoints in the apps/api directory, use this Skill to ensure controllers remain thin, services encapsulate business logic, and all inputs are validated via DTOs.

Quick Start

Follow the NestJS skill guidelines to create a new resource controller and service.

Frequently Asked Questions about nestjs

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

FAQPage Schema
How do I enforce NestJS backend architecture standards in my API project?

To enforce NestJS backend architecture, apply standards focusing on thin controllers, rich services, and mandatory DTO validation. This ensures structured and maintainable code within your `apps/api` directory by separating business logic and input validation.

Why does my NestJS controller contain too much business logic?

NestJS controllers contain too much business logic when architectural standards are not enforced. Keeping controllers thin and moving logic into services ensures modularity, testability, and maintainability for your backend API development.

What is the best way to structure NestJS DTOs for input validation?

The best way to structure NestJS DTOs for input validation is to make them mandatory for all incoming inputs. This enforces data integrity and maintains clear separation between the controller layer and service layer.

How do I separate business logic from controllers in a NestJS application?

To separate business logic from controllers in a NestJS application, encapsulate the logic within rich services. This architectural pattern keeps controllers thin and satisfies requirements for modularity and testability.

Does this NestJS architecture enforcement apply to my existing API directory?

Yes, this NestJS architecture enforcement is applicable to API development within the `apps/api` directory, ensuring structured and maintainable code for new resource controllers and services.

When do I need mandatory DTO validation in NestJS development?

You need mandatory DTO validation in NestJS development when creating new API endpoints. It ensures structured and maintainable backend services by validating all inputs before they reach the service layer.