nestjs

Route NestJS changes through module architecture and dependency-injection conventions.

4|3|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ulpi-io/skills --skill nestjs-ulpi-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/ulpi-io/skills/tree/main/nestjs
Command: npx skills add https://github.com/ulpi-io/skills --skill nestjs-ulpi-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents NestJS changes from bypassing a project's established module boundaries, dependency injection patterns, validation rules, and request lifecycle conventions.

Core Features & Use Cases

  • Architecture Guidance: Organize domain modules with explicit imports, providers, controllers, exports, and co-located DTOs and entities.
  • Framework Workflows: Implement controllers, services, guards, interceptors, pipes, exception filters, queues, WebSockets, microservices, OpenAPI documentation, configuration, and tests.
  • Production Guardrails: Enforce DTO validation, constructor injection, typed responses, transaction boundaries, secure configuration, and focused verification.
  • Use Case: Add a validated, authenticated NestJS endpoint that delegates business logic to an injected service, persists data safely, documents the API, and includes appropriate tests.

Quick Start

Ask the NestJS skill to implement or review a module, endpoint, or subsystem while first reading the stack contract and then loading only the relevant architecture references.

Frequently Asked Questions about nestjs

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

FAQPage Schema
How do I structure a NestJS module with dependency injection and DTO validation?

NestJS module structure requires organizing domain modules with explicit imports, providers, controllers, exports, and co-located DTOs. Use constructor injection for dependencies and validate inputs with DTOs to maintain established architecture boundaries and request lifecycle conventions.

What is the best way to keep NestJS controllers thin while handling business logic?

Keeping NestJS controllers thin requires delegating business logic to injected services. Controllers should handle request mapping and response formatting, while services manage data persistence, transaction boundaries, and domain operations, ensuring separation of concerns and review-ready code.

How do I add an authenticated NestJS endpoint that documents the API automatically?

Adding an authenticated NestJS endpoint involves implementing guards for authentication, validating inputs with DTOs, delegating to injected services, and generating OpenAPI documentation. This ensures the endpoint is secure, validated, and properly documented for API consumers.

Does NestJS dependency injection work with WebSockets and microservices?

NestJS dependency injection works across WebSockets and microservices by routing changes through established module architecture. The framework supports queues, interceptors, pipes, and exception filters within these transport layers while maintaining consistent dependency injection patterns.

Why do my NestJS changes bypass module boundaries and break the request lifecycle?

NestJS changes bypass module boundaries when they skip reading the stack contract, ignore dependency injection conventions, or fail to use DTO validation. Establishing explicit module imports, exports, and provider boundaries prevents breaking the request lifecycle and architecture patterns.