nestjs-expert

Provides expert guidance for designing scalable Nest.js applications and resolving architectural challenges.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/hung14vnn/MedManagerFE --skill nestjs-expert-hung14vnn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/hung14vnn/MedManagerFE/tree/main/.agent/skills/nestjs-expert
Command: npx skills add https://github.com/hung14vnn/MedManagerFE --skill nestjs-expert-hung14vnn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nest.js architecture, wiring, and testing can be complex; this Skill provides expert guidance to design scalable, maintainable server-side applications with robust DI, middleware, guards, interceptors, and authentication flows.

Core Features & Use Cases

  • Module Architecture & DI: Design clean module boundaries, proper provider exports, and forwardRef patterns to avoid circular dependencies.
  • Controllers, Middleware & Guards: Implement request lifecycles, guards, pipes, and interceptors to enforce security and data validation.
  • Testing & Database Integration: Guidance for unit/integration tests with Jest/Supertest, and TypeORM/Mongoose integration strategies including migrations and seeding.

Quick Start

Describe your Nest.js project details and I will propose a production-ready architecture and testing strategy.

Frequently Asked Questions about nestjs-expert

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

FAQPage Schema
How do I resolve circular dependencies in Nest.js modules?

Resolve circular dependencies in Nest.js modules by applying forwardRef patterns and establishing clean module boundaries with explicit provider exports to break the wiring cycle.

What's the best way to structure enterprise Nest.js authentication flows?

Structure enterprise Nest.js authentication flows by implementing Passport.js strategies with guards and interceptors to enforce security and validate data across the request lifecycle.

How do I set up unit and integration testing for Nest.js with Jest and Supertest?

Set up Nest.js testing with Jest and Supertest by writing unit tests for providers and integration tests for API endpoints, mocking dependencies to isolate module behavior.

Does this guidance apply to TypeORM and Mongoose database integration in Nest.js?

Yes, this guidance applies to TypeORM and Mongoose database integration in Nest.js, covering strategies for migrations, seeding, and connecting modules to enterprise databases.

When should I use guards versus middleware in a Nest.js request lifecycle?

Use middleware in Nest.js for generic request processing, but apply guards when you need authorization checks, and use pipes and interceptors for data validation and response transformation.