nestjs-expert

Generate NestJS modules, controllers, services, DTOs, guards, and interceptors for TypeScript backends.

1|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/svssdeva/agentic-skills --skill nestjs-expert-svssdeva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/svssdeva/agentic-skills/tree/main/nestjs/nestjs-expert
Command: npx skills add https://github.com/svssdeva/agentic-skills --skill nestjs-expert-svssdeva

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents fragile, inconsistent NestJS backends by guiding you through clean module structure, dependency injection wiring, and secure request handling for enterprise-grade REST or GraphQL services.

Core Features & Use Cases

  • Scalable NestJS architecture: Plan and implement modules, controllers, and services with correct DI patterns and exports.
  • Enterprise-grade security and validation: Add guards, validation pipes (class-validator DTOs), and authentication flows (e.g., JWT/Passport).
  • Reliability through testing: Generate unit tests for services and E2E tests for controllers to verify behavior end-to-end.

Quick Start

Use the nestjs-expert skill to implement a NestJS REST API with DTO validation, Swagger documentation, JWT/Passport authentication, TypeORM or Prisma integration, and unit/E2E tests.

Frequently Asked Questions about nestjs-expert

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

FAQPage Schema
How do I set up dependency injection in NestJS for production APIs?

NestJS dependency injection uses @Injectable() decorators and constructor injection to wire modules, controllers, and services. This Skill generates production-ready NestJS architectures with correctly exported providers and secure request handling for enterprise applications.

How do I validate DTOs and generate Swagger documentation in NestJS?

DTO validation in NestJS uses class-validator with ValidationPipe, while Swagger documentation is generated via Swagger-decorated endpoints. This Skill builds DTOs with validation rules and configures Swagger to produce consistent API documentation for REST services.

What's the best way to add JWT authentication and guards to a NestJS API?

JWT authentication in NestJS uses Passport strategies with guards to protect routes. This Skill implements authentication flows with guards, interceptors, and secure configuration via ConfigModule to enforce access control across your API endpoints.

Does NestJS work with TypeORM for persistence and how do I integrate it?

NestJS integrates with TypeORM for database persistence through module configuration and service injection. This Skill generates modules with TypeORM integration, applying dependency injection patterns to connect services with repositories for enterprise data access.

How do I write unit and E2E tests for NestJS controllers and services?

NestJS testing uses the TestingModule to create isolated test contexts for unit tests and E2E tests for controllers. This Skill generates unit tests for services and E2E tests that verify controller behavior end-to-end, ensuring reliability across layers.

Can I use NestJS for GraphQL services or is it only for REST APIs?

NestJS supports both REST APIs and GraphQL services within a modular architecture. This Skill builds enterprise TypeScript backends that apply dependency injection, authentication, and validation across either protocol, ensuring consistent error handling regardless of the API style.