nestjs-expert

Resolve Nest.js dependency injection, module boundary, and testing issues.

70|42|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/tranhieutt/software_development_department --skill nestjs-expert-tranhieutt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/tranhieutt/software_development_department/tree/main/.claude/skills/nestjs-expert
Command: npx skills add https://github.com/tranhieutt/software_development_department --skill nestjs-expert-tranhieutt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers untangle Nest.js module boundaries, dependency injection errors, middleware misconfiguration, and auth/database wiring so applications stop failing at boot or during runtime.

Core Features & Use Cases

  • Module Architecture & Dependency Injection: Reviews imports, providers, and exports while suggesting forwardRef and consolidation strategies to eliminate circular dependencies and missing providers.
  • Middleware, Guards, Interceptors & Pipes: Validates execution order, context handling, and async flows to ensure request handling behaves predictably, especially for auth and validation scenarios.
  • Testing, Database & Authentication Coverage: Recommends Jest/Supertest setups, TypeORM/Mongoose configurations, and Passport/JWT guard setups so CI pipelines pass and auth flows remain secure.

Quick Start

Use nestjs-expert to review the Nest.js project structure and report actionable fixes for modules, DI, testing, and auth.

Frequently Asked Questions about nestjs-expert

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

FAQPage Schema
How do I fix Nest.js circular dependency and missing provider errors?

Resolve Nest.js circular dependencies by restructuring module imports, providers, and exports. The Skill suggests forwardRef and consolidation strategies to eliminate missing providers and untangle dependency injection failures.

How do I configure Passport JWT guards and authentication in Nest.js?

Set up Passport JWT guards in Nest.js by validating execution context and async flows. The Skill reviews Passport-based authentication configurations to ensure secure and predictable request handling.

What is the best way to set up Jest and Supertest for Nest.js e2e testing?

The best way to set up Jest and Supertest for Nest.js e2e testing is configuring test suites that validate module and configuration changes. The Skill recommends testing setups so CI pipelines pass consistently across enterprise Node applications.

Why does my Nest.js middleware or guard execute in the wrong order?

Nest.js middleware or guards execute in the wrong order due to misconfigured execution context and async flow handling. The Skill validates execution order and context handling to ensure request handling behaves predictably for auth and validation scenarios.

Can I use TypeORM with Nest.js module architecture without breaking dependency injection?

Yes, you can use TypeORM with Nest.js module architecture without breaking dependency injection. The Skill reviews TypeORM configurations alongside module boundaries and provider exports to ensure database integration wiring does not fail at boot or runtime.

Does this approach work for enterprise Node applications using Nest.js interceptors and pipes?

Yes, this approach works for enterprise Node applications using Nest.js interceptors and pipes. The Skill validates execution order, context handling, and async flows across middleware, guards, and interceptors while enforcing logging and security requirements.