nestjs-expert

Scaffold NestJS modules, controllers, services, DTOs, guards, and interceptors.

1|Updated Aug 12, 2023
One-click install
npx skills add https://github.com/nktfh100/nixos-config --skill nestjs-expert-nktfh100
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-expert
Source: https://github.com/nktfh100/nixos-config/tree/main/claude/skills/nestjs-expert
Command: npx skills add https://github.com/nktfh100/nixos-config --skill nestjs-expert-nktfh100

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enterprise-grade NestJS backends require a coherent modular architecture, DI wiring, and robust patterns; this skill provides guidance and templates to accelerate scalable backend development.

Core Features & Use Cases

  • Scaffold complete NestJS architecture including modules, controllers, services, DTOs, guards, and interceptors.
  • Implement dependency injection, authentication (JWT/Passport), Swagger documentation, and testing strategies (unit and E2E) for REST and GraphQL APIs.
  • Apply best practices for maintainable backend design, including error handling with NestJS exceptions and documented APIs.

Quick Start

Scaffold a complete NestJS module with a controller, service, DTOs, and guards, then wire it into your app.

Frequently Asked Questions about nestjs-expert

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

FAQPage Schema
How do I scaffold a complete NestJS module with controllers and services?

To scaffold a NestJS module, you generate the module, controller, service, DTOs, and guards, then wire them into your app using dependency injection. This establishes a modular architecture for your TypeScript backend.

What is the best way to structure a large NestJS backend for maintainability?

The best way to structure a large NestJS backend is using a modular architecture with dependency injection, dedicated interceptors for error handling, and Swagger documentation. This ensures a maintainable, enterprise-grade TypeScript application.

How do I implement JWT authentication in a NestJS REST API?

You implement JWT authentication in a NestJS REST API by scaffolding guards and applying Passport strategies. This secures your endpoints through type-safe decorated controllers within a modular architecture.

Can I use this approach to generate both unit and E2E tests for NestJS?

Yes, you can generate unit and E2E testing workflows for NestJS. The scaffolding process sets up testable APIs across REST and GraphQL services, satisfying requirements for documented backend testing strategies.

Does NestJS scaffolding support GraphQL services as well as REST?

Yes, NestJS scaffolding supports both REST and GraphQL services. It enables modular architecture and dependency injection wiring across both protocol types, allowing you to build documented, testable APIs for either approach.

Why do I need dependency injection wiring when building NestJS modules?

You need dependency injection wiring in NestJS modules to maintain type-safe relationships between controllers and services. DI wiring enables modular architecture, ensuring enterprise-grade backends remain scalable and testable.