nestjs-expert

Assist Nest.js development with architecture, dependency injection, testing, and authentication.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/GrupoUS/gpus --skill nestjs-expert-grupous
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/GrupoUS/gpus/tree/main/.claude/skills/nestjs-expert
Command: npx skills add https://github.com/GrupoUS/gpus --skill nestjs-expert-grupous

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill resolves complex issues within Nest.js applications, from architectural design and dependency injection to testing, database integration, and authentication.

Core Features & Use Cases

  • Architecture & DI: Solves circular dependencies, provider scope conflicts, and injection problems.
  • Testing: Guides on mocking, module testing, and E2E setup with Jest/Supertest.
  • Database & Auth: Assists with TypeORM/Mongoose integration and Passport.js authentication.
  • Use Case: Debug a "Nest can't resolve dependencies" error in a critical service, ensuring your application's core logic functions correctly.

Quick Start

Use the nestjs-expert skill to help resolve a circular dependency issue in the UserService and AuthService.

Frequently Asked Questions about nestjs-expert

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

FAQPage Schema
How do I resolve a Nest.js circular dependency error between two services?

To resolve a Nest.js circular dependency, identify the conflicting providers and apply forward references or refactor module architecture to restructure injection paths, ensuring core application logic functions correctly without scope conflicts.

How do I set up E2E testing with Jest and Supertest in a Nest.js backend?

Set up Jest and Supertest in a Nest.js backend by configuring testing modules, mocking dependencies, and initializing the application instance to execute API endpoint validations and verify core logic behavior.

Does Nest.js work with TypeORM and Mongoose for database integration?

Nest.js works with TypeORM and Mongoose by leveraging dedicated integration modules, allowing you to configure database connections and inject repositories or models directly into your application's service layer.

What is the best way to implement Passport.js authentication in Nest.js?

The best way to implement Passport.js authentication in Nest.js is applying guards and strategies within your module architecture, securing API endpoints by validating requests before they reach route handlers.

Why does Nest.js throw a 'can't resolve dependencies' error in my service?

Nest.js throws a 'can't resolve dependencies' error when the dependency injection container cannot find a required provider; fix it by ensuring the missing provider is registered in the correct module scope.